commit:     dfee59c49ba0777016d00950db85521fd40c0d38
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Mon May 30 15:59:57 2022 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Mon May 30 15:59:57 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfee59c4

net-proxy/torsocks: version bump to 2.4.0

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>

 net-proxy/torsocks/Manifest              |  1 +
 net-proxy/torsocks/torsocks-2.4.0.ebuild | 45 ++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/net-proxy/torsocks/Manifest b/net-proxy/torsocks/Manifest
index 8c6d485bcea3..f63e08613936 100644
--- a/net-proxy/torsocks/Manifest
+++ b/net-proxy/torsocks/Manifest
@@ -1,2 +1,3 @@
 DIST torsocks-2.2.0.tar.gz 115269 BLAKE2B 
e6e376dbe9b248bcb51fb0c3c16346f4888310abd6e84942acca69f67ae15afe5dfeba9a6b3a8d1fa562f87548450af93cea3bea4d899980ca6acb651658cfaa
 SHA512 
903d11d58ece76eaf75ff8fc11a27e4a29f94be530f2d77d1a6f0982d556a4b9c78677a43eed88f2451054d0e985672900ecf73b360fa09e80195c3b9006622b
 DIST torsocks-2.3.0.tar.gz 118033 BLAKE2B 
a4329ffa5e20204024c4f7dda8619ba2d3e2a5f370727acdc720527688bdb3f8735b0386dfa07758fe59e1890f9ce88bb148a1b0c401bbb5966d2fe17934ca61
 SHA512 
139f4cf60191632add8bc845b2d68d25a0285e9746988167d832e50cedb8083f2765571429d3a11350fa2d327a1ff0a0ead9b464dac90d897b13ab948f609114
+DIST torsocks-2.4.0.tar.gz 118991 BLAKE2B 
e1817c3bbf10f83431292c644d7187e40b62c5f223784074b3f9c082d8d75243090e226ffebb6fd81805fbd887588790833adc4ab8923e8116585c0a29255ad0
 SHA512 
7d625ce3a4600f87b86ae9ac79dfd206e7709cb0bafe0b7afcf33a6f1825f968cc63ad3e23c584582b244647bdeafbfdbfc54f7c81e521b0a3d278a1483ce86e

diff --git a/net-proxy/torsocks/torsocks-2.4.0.ebuild 
b/net-proxy/torsocks/torsocks-2.4.0.ebuild
new file mode 100644
index 000000000000..4b2ee2aea47a
--- /dev/null
+++ b/net-proxy/torsocks/torsocks-2.4.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+UPSTREAM_PF="${PN}-v${PV}"
+S=${WORKDIR}/${UPSTREAM_PF}
+
+DESCRIPTION="Use most socks-friendly applications with Tor"
+HOMEPAGE="https://gitlab.torproject.org/tpo/core/torsocks";
+SRC_URI="https://gitlab.torproject.org/tpo/core/torsocks/-/archive/v${PV}/${UPSTREAM_PF}.tar.gz
 -> ${PF}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="static-libs"
+
+# We do not depend on tor which might be running on a different box
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       # Disable tests requiring network access.
+       local test
+       for test in dns fd_passing getpeername; do
+               sed -i -e "/^   test_${test} \\\\\$/d" tests/Makefile.am || \
+                       die "failed to disable network tests"
+       done
+
+       default
+       eautoreconf
+}
+
+src_configure() {
+       econf $(use_enable static-libs static)
+}
+
+src_install() {
+       default
+
+       # Remove libtool .la files
+       find "${D}" -name '*.la' -delete || die
+}

Reply via email to