From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 33F97158094 for ; Tue, 6 Sep 2022 15:48:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5ED30E0636; Tue, 6 Sep 2022 15:48:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 495E0E0636 for ; Tue, 6 Sep 2022 15:48:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6A612340CC9 for ; Tue, 6 Sep 2022 15:48:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D05E959F for ; Tue, 6 Sep 2022 15:48:26 +0000 (UTC) From: "John Helmert III" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "John Helmert III" Message-ID: <1662479241.f97b7cf8a9cc9ab3ed7c3d5f6f55e4a9c557888d.ajak@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/arti/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-p2p/arti/arti-9999.ebuild X-VCS-Directories: net-p2p/arti/ X-VCS-Committer: ajak X-VCS-Committer-Name: John Helmert III X-VCS-Revision: f97b7cf8a9cc9ab3ed7c3d5f6f55e4a9c557888d X-VCS-Branch: master Date: Tue, 6 Sep 2022 15:48:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 31145518-14a7-4022-9020-7f6fc7fd1d88 X-Archives-Hash: fcffbf21a2ce0594079adaf3912ee660 commit: f97b7cf8a9cc9ab3ed7c3d5f6f55e4a9c557888d Author: John Helmert III gentoo org> AuthorDate: Tue Sep 6 15:44:22 2022 +0000 Commit: John Helmert III gentoo org> CommitDate: Tue Sep 6 15:47:21 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f97b7cf8 net-p2p/arti: add 9999 Signed-off-by: John Helmert III gentoo.org> net-p2p/arti/arti-9999.ebuild | 66 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/net-p2p/arti/arti-9999.ebuild b/net-p2p/arti/arti-9999.ebuild new file mode 100644 index 000000000000..8a8e33f3433e --- /dev/null +++ b/net-p2p/arti/arti-9999.ebuild @@ -0,0 +1,66 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES="" + +inherit cargo + +MY_P="${PN}-${PN}-v${PV}" + +DESCRIPTION="An implementation of Tor, in Rust." +HOMEPAGE="https://gitlab.torproject.org/tpo/core/arti/" + +if [[ "${PV}" == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.torproject.org/tpo/core/arti" +else + SRC_URI="https://gitlab.torproject.org/tpo/core/${PN}/-/archive/${PN}-v${PV}/${PN}-${PN}-v${PV}.tar.gz -> ${P}.tar.gz + $(cargo_crate_uris ${CRATES})" + KEYWORDS="~amd64" + S="${WORKDIR}/${MY_P}" +fi + +LICENSE="MIT Apache-2.0" +SLOT="0" + +DEPEND="app-arch/xz-utils + dev-db/sqlite:3 + dev-libs/openssl:=" +RDEPEND="${DEPEND}" + +QA_FLAGS_IGNORED="usr/bin/arti" + +src_unpack() { + if [[ "${PV}" == *9999 ]]; then + git-r3_src_unpack + cargo_live_src_unpack + else + cargo_src_unpack + fi +} + +src_compile() { + pushd crates/arti || die + cargo_src_compile +} + +src_test() { + for crate in crates/*; do + pushd "${crate}" >/dev/null || die + cargo_src_test + popd >/dev/null || die + done +} + +src_install() { + pushd crates/arti >/dev/null || due + + cargo_src_install + newdoc src/arti-example-config.toml arti.toml + + popd >/dev/null || die + + dodoc -r doc/* +}