commit: 2a4fea398ea5975995befd0d68552f38318b9f0f Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> AuthorDate: Tue Nov 7 14:45:50 2023 +0000 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> CommitDate: Tue Nov 7 15:03:31 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2a4fea39
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 <AT> sysrq.in> net-proxy/snowflake/Manifest | 2 +- ...owflake-2.6.1.ebuild => snowflake-2.7.0.ebuild} | 33 ++++++++++++++++++---- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/net-proxy/snowflake/Manifest b/net-proxy/snowflake/Manifest index 49968dd4c6..fde9990674 100644 --- a/net-proxy/snowflake/Manifest +++ b/net-proxy/snowflake/Manifest @@ -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 diff --git a/net-proxy/snowflake/snowflake-2.6.1.ebuild b/net-proxy/snowflake/snowflake-2.7.0.ebuild similarity index 68% rename from net-proxy/snowflake/snowflake-2.6.1.ebuild rename to net-proxy/snowflake/snowflake-2.7.0.ebuild index 47763037a8..d2b75ce4aa 100644 --- a/net-proxy/snowflake/snowflake-2.6.1.ebuild +++ b/net-proxy/snowflake/snowflake-2.7.0.ebuild @@ -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 )" + +BDEPEND="test? ( >=dev-lang/go-1.21 )" -COMPONENTS=( broker client probetest proxy server ) +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 }
