net-proxy/snowflake: add 2.7.0, drop 2.6.1

Closes: https://bugs.gentoo.org/915517
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova 2023-11-07 19:45:50 +05:00
parent f88cc4ef67
commit 2a4fea398e
No known key found for this signature in database
GPG Key ID: E7B76EDC50864BB1
2 changed files with 28 additions and 7 deletions

View File

@ -1 +1 @@
DIST snowflake-v2.6.1.tar.gz 20711818 BLAKE2B 47a0d1b34b598b58d840402bd65316f80e54fa2ff13a824fbd4bd7481751558ab4e724ae7bddfd7b47427d3a1fa23f976e5f7ff64f544cdd59cabfc878b4a9fc SHA512 2d93c34d5b984864de2189df5c8a0e04473ffdac74b704948ca70cb265f9f163f58225d8496d5087355a15e0f9f57a2dfd536dce6bca7a8bf27a72b594ef6a47
DIST snowflake-v2.7.0.tar.gz 21617453 BLAKE2B c91835ffee5faef705fb45ddf7280cbff3016de027b790837f1ac459de108a9f5809c6fc42149332aab88750fb8f24b9e4cd0c04a2d8958d4157d487af0a76e6 SHA512 1bc65efdcc92e201df1e533fcb09c3c20803b7f97dec941f511f6d8d86597c0b4a2618edb2de9c1266d46dad26a51893f2918fcc4af161ec7032496aab76d483

View File

@ -5,28 +5,49 @@ EAPI=8
inherit go-module systemd
MY_PV="v${PV}"
MY_P="${PN}-${MY_PV}"
JOB_ID="363325"
MY_P="${PN}-v${PV}"
JOB_ID="389000"
DESCRIPTION="Pluggable Transport using WebRTC, inspired by Flashproxy"
HOMEPAGE="
https://snowflake.torproject.org/
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake
"
SRC_URI="https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/${PN}/-/jobs/${JOB_ID}/artifacts/raw/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
COMPONENTS=( broker client probetest proxy server )
BDEPEND="test? ( >=dev-lang/go-1.21 )"
src_configure() {
COMPONENTS=(
broker
probetest
proxy
)
if has_version -b ">=dev-lang/go-1.21"; then
COMPONENTS+=(
client
server
)
else
ewarn "The following components have been disabled:"
ewarn " client server"
ewarn
ewarn "You need >=dev-lang/go-1.21 to build them."
fi
}
src_compile() {
for component in "${COMPONENTS[@]}"; do
pushd ${component} || die
einfo "Building ${component}"
ego build
nonfatal ego build || die "${component}: build failed"
popd || die
done
}