summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2022-09-06 10:44:22 -0500
committerJohn Helmert III <ajak@gentoo.org>2022-09-06 10:47:21 -0500
commitf97b7cf8a9cc9ab3ed7c3d5f6f55e4a9c557888d (patch)
treed742283d4ff9f2bb3e635b36fb1023e86928116c /net-p2p/arti
parentnet-p2p/arti: add 1.0.0 (diff)
downloadgentoo-f97b7cf8a9cc9ab3ed7c3d5f6f55e4a9c557888d.tar.gz
gentoo-f97b7cf8a9cc9ab3ed7c3d5f6f55e4a9c557888d.tar.bz2
gentoo-f97b7cf8a9cc9ab3ed7c3d5f6f55e4a9c557888d.zip
net-p2p/arti: add 9999
Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'net-p2p/arti')
-rw-r--r--net-p2p/arti/arti-9999.ebuild66
1 files changed, 66 insertions, 0 deletions
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/*
+}