Gentoo Archives: gentoo-commits

From: John Helmert III <ajak@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/arti/
Date: Tue, 06 Sep 2022 15:48:30
Message-Id: 1662479241.f97b7cf8a9cc9ab3ed7c3d5f6f55e4a9c557888d.ajak@gentoo
1 commit: f97b7cf8a9cc9ab3ed7c3d5f6f55e4a9c557888d
2 Author: John Helmert III <ajak <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 6 15:44:22 2022 +0000
4 Commit: John Helmert III <ajak <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 6 15:47:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f97b7cf8
7
8 net-p2p/arti: add 9999
9
10 Signed-off-by: John Helmert III <ajak <AT> gentoo.org>
11
12 net-p2p/arti/arti-9999.ebuild | 66 +++++++++++++++++++++++++++++++++++++++++++
13 1 file changed, 66 insertions(+)
14
15 diff --git a/net-p2p/arti/arti-9999.ebuild b/net-p2p/arti/arti-9999.ebuild
16 new file mode 100644
17 index 000000000000..8a8e33f3433e
18 --- /dev/null
19 +++ b/net-p2p/arti/arti-9999.ebuild
20 @@ -0,0 +1,66 @@
21 +# Copyright 2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +CRATES=""
27 +
28 +inherit cargo
29 +
30 +MY_P="${PN}-${PN}-v${PV}"
31 +
32 +DESCRIPTION="An implementation of Tor, in Rust."
33 +HOMEPAGE="https://gitlab.torproject.org/tpo/core/arti/"
34 +
35 +if [[ "${PV}" == *9999 ]]; then
36 + inherit git-r3
37 + EGIT_REPO_URI="https://gitlab.torproject.org/tpo/core/arti"
38 +else
39 + SRC_URI="https://gitlab.torproject.org/tpo/core/${PN}/-/archive/${PN}-v${PV}/${PN}-${PN}-v${PV}.tar.gz -> ${P}.tar.gz
40 + $(cargo_crate_uris ${CRATES})"
41 + KEYWORDS="~amd64"
42 + S="${WORKDIR}/${MY_P}"
43 +fi
44 +
45 +LICENSE="MIT Apache-2.0"
46 +SLOT="0"
47 +
48 +DEPEND="app-arch/xz-utils
49 + dev-db/sqlite:3
50 + dev-libs/openssl:="
51 +RDEPEND="${DEPEND}"
52 +
53 +QA_FLAGS_IGNORED="usr/bin/arti"
54 +
55 +src_unpack() {
56 + if [[ "${PV}" == *9999 ]]; then
57 + git-r3_src_unpack
58 + cargo_live_src_unpack
59 + else
60 + cargo_src_unpack
61 + fi
62 +}
63 +
64 +src_compile() {
65 + pushd crates/arti || die
66 + cargo_src_compile
67 +}
68 +
69 +src_test() {
70 + for crate in crates/*; do
71 + pushd "${crate}" >/dev/null || die
72 + cargo_src_test
73 + popd >/dev/null || die
74 + done
75 +}
76 +
77 +src_install() {
78 + pushd crates/arti >/dev/null || due
79 +
80 + cargo_src_install
81 + newdoc src/arti-example-config.toml arti.toml
82 +
83 + popd >/dev/null || die
84 +
85 + dodoc -r doc/*
86 +}