mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-p2p/arti: add 1.4.6
Signed-off-by: Michal Rostecki <vadorovsky@protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43348 Closes: https://github.com/gentoo/gentoo/pull/43348 Signed-off-by: John Helmert III <ajak@gentoo.org>
This commit is contained in:
committed by
John Helmert III
parent
dfa3ca8416
commit
cd836287e2
@@ -1,2 +1,4 @@
|
||||
DIST arti-1.4.2-crates.tar.xz 48304592 BLAKE2B 79b996e60cd425d217aeab42c8e6fd23983fb475a6daed3db029af0c0c8da9681951d5504bd478b67a8905bea7284b3a66e34aa05415f2671353473bc82be473 SHA512 fc5bacd7d4a126bbe9c8132a33d5f590401878dce10db0a50d5dae1e46a3154913019b05a39ba961ae1175e431d0b85654d32f5ceb593e4540bbd12f47f0c785
|
||||
DIST arti-1.4.2.tar.bz2 4309898 BLAKE2B e18a4850c5de529a61ea0615f84b9611c8fba304e4f9b8798a07659c89bb4d1425b443cc72e92ea5820a3af15ca32f5bc1e1df6d05a8e038d17c73fc7cd5580b SHA512 b402894c9402f83e68e1805ff1b99e684a5f946abd502313aac74dcbbc0812693dce74b2641507176f963cdafdcbf3ad919b1235e0f884b5f33106cce665579b
|
||||
DIST arti-1.4.6-crates.tar.xz 46536728 BLAKE2B cc936c3a6ea0119889c2381d84c7b40b40c214680e9c093dc10fc5d884572aac86607ab17bdac7a9d21ff66e2baf57270e0610d1ed80483c92742aae1b7a53f6 SHA512 4ea516372cc3ebad7c2105acbcfd1745e5cc6a8fbf961c51abe54c476698a4874e40f44f722f567a8a5a67b3d92d6b6569bce72e18cbb8fa7566bea7d76b8cb1
|
||||
DIST arti-1.4.6.tar.bz2 4515456 BLAKE2B 0b877fb167cb7e986e93ed56511d71efd1f6e135cd0989e0a2c7b965ef1f97b1983dbbadb7744378bc06234c538cd78068b85f3db0a63c4140bc8e3bc1bc5626 SHA512 84ef931bbd74c3fe0a12ffaaa93ad9aa9930f1a5727b66a7436072ff6894b083a3edeb068bca0ad227f9adcbb54cd1453675cb5dac251eb4a3bcaa0292517fbd
|
||||
|
||||
65
net-p2p/arti/arti-1.4.6.ebuild
Normal file
65
net-p2p/arti/arti-1.4.6.ebuild
Normal file
@@ -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/*
|
||||
}
|
||||
Reference in New Issue
Block a user