commit:     ce35aeb47da153e005a819afa9aeb0e84586f436
Author:     Michal Rostecki <vadorovsky <AT> protonmail <DOT> com>
AuthorDate: Thu Oct 30 15:40:03 2025 +0000
Commit:     John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Thu Jan  1 00:04:24 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce35aeb4

net-p2p/arti: add 1.8.0

Signed-off-by: Michal Rostecki <vadorovsky <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44432
Closes: https://github.com/gentoo/gentoo/pull/44432
Signed-off-by: John Helmert III <ajak <AT> gentoo.org>

 net-p2p/arti/Manifest          |  2 ++
 net-p2p/arti/arti-1.8.0.ebuild | 65 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/net-p2p/arti/Manifest b/net-p2p/arti/Manifest
index 73fae753e583..61870a149417 100644
--- a/net-p2p/arti/Manifest
+++ b/net-p2p/arti/Manifest
@@ -4,3 +4,5 @@ DIST arti-1.4.6-crates.tar.xz 46536728 BLAKE2B 
cc936c3a6ea0119889c2381d84c7b40b4
 DIST arti-1.4.6.tar.bz2 4515456 BLAKE2B 
0b877fb167cb7e986e93ed56511d71efd1f6e135cd0989e0a2c7b965ef1f97b1983dbbadb7744378bc06234c538cd78068b85f3db0a63c4140bc8e3bc1bc5626
 SHA512 
84ef931bbd74c3fe0a12ffaaa93ad9aa9930f1a5727b66a7436072ff6894b083a3edeb068bca0ad227f9adcbb54cd1453675cb5dac251eb4a3bcaa0292517fbd
 DIST arti-1.5.0-crates.tar.xz 46775504 BLAKE2B 
9fb8b9d96ceaca305bb00d8205f735ef223e6ab2a49205937d349ae5820342f576aa2b5f6c44166819e23efb70663e908f0eb1ecc255238dac3fb86ccb0615ae
 SHA512 
b33f791a3a239f41b708a907bad15a8750da2fbdc5a8e61affaf398fec4c3d54a353de8402ad1be8d20f53b742b43841f0243aff289748fd47d87dcf5841923e
 DIST arti-1.5.0.tar.bz2 4620829 BLAKE2B 
07b794d94331cc610f331b5805d86bcffacfdc3376582d3a1f1cc564486e9e249e555aa8a71eb398e7e5e771d4f088c745333e285486b2910cd647391604e770
 SHA512 
2472803d91aefc883a2af389529ac6e111484ffcfa24e733cbc3e91e9332bfe02bd9985301428a26403b7e083006a0b1bee858bb88ba75dfdc99dad2bc11b010
+DIST arti-1.8.0-crates.tar.xz 45638316 BLAKE2B 
616966ae42195b5f6889c99840ed320f3f199f0c4a00d6be54ea3a1a015613a0f3df593f2bbfb7238e13d5d0dd95609f4f693d48b5b20285d6ffe7863fd77cdd
 SHA512 
12c314aa419ebf6e1751829c8c36582208c655c9a5c12f6acfa30344d00cb742b4d044f125b99a9a46e7ba453df3a553834b24fc3cb461da8eaf38a991ded898
+DIST arti-1.8.0.tar.bz2 4791812 BLAKE2B 
8cfe8459acd64fab98ab4692256bc7de2895eecf2ecf4ad44cb5dd277fd209009019c340a14e2b93987188463f77ccd563f743f5258d003f5fd351e6321180f8
 SHA512 
30fc5481b4486b7397c9fabceb33a6f29a5a16e23506962655c92584efa336716c0c2572dcbc3f8c67bc58a8c60cebf2d07eed745c79a4f3cc375416328a24ee

diff --git a/net-p2p/arti/arti-1.8.0.ebuild b/net-p2p/arti/arti-1.8.0.ebuild
new file mode 100644
index 000000000000..1e911ea9c1f2
--- /dev/null
+++ b/net-p2p/arti/arti-1.8.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES=""
+inherit cargo
+
+DESCRIPTION="Implementation of Tor in Rust"
+HOMEPAGE="https://tpo.pages.torproject.net/core/arti/ 
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.bz2
 -> ${P}.tar.bz2"
+       SRC_URI+=" 
https://github.com/gentoo-crate-dist/arti/releases/download/${PN}-v${PV}/${P}-crates.tar.xz";
+       S="${WORKDIR}/${PN}-${PN}-v${PV}"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="|| ( Apache-2.0 MIT )"
+# Dependent crate licenses
+LICENSE+="
+       Apache-2.0 BSD Boost-1.0 CC0-1.0 ISC MIT MPL-2.0 openssl Unicode-3.0
+       Unlicense ZLIB
+"
+SLOT="0"
+
+DEPEND="app-arch/xz-utils
+       app-arch/zstd:=
+       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() {
+       export ZSTD_SYS_USE_PKG_CONFIG=1
+       for crate in crates/*; do
+               pushd "${crate}" || die
+               cargo_src_compile
+               popd >/dev/null || die
+       done
+}
+
+src_install() {
+       pushd crates/arti >/dev/null || die
+
+       cargo_src_install
+       newdoc src/arti-example-config.toml arti.toml
+
+       popd >/dev/null || die
+
+       dodoc -r doc/*
+}

Reply via email to