commit:     fb848d2b5a5e59da49a816c075d7b35e09528063
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Fri Feb 17 16:30:20 2023 +0000
Commit:     Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
CommitDate: Tue Feb 21 23:51:25 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=fb848d2b

net-vpn/tor: Add 0.4.7.13-r1 + Remove 0.4.7.13

Signed-off-by: orbea <orbea <AT> riseup.net>
Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>

 net-vpn/tor/metadata.xml                           |  8 +-
 ...{tor-0.4.7.13.ebuild => tor-0.4.7.13-r1.ebuild} | 95 ++++++++++++----------
 2 files changed, 59 insertions(+), 44 deletions(-)

diff --git a/net-vpn/tor/metadata.xml b/net-vpn/tor/metadata.xml
index c1b2764..fcc4644 100644
--- a/net-vpn/tor/metadata.xml
+++ b/net-vpn/tor/metadata.xml
@@ -2,8 +2,12 @@
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
        <maintainer type="person">
-               <email>[email protected]</email>
-               <name>Anthony G. Basile</name>
+               <email>[email protected]</email>
+               <name>John Helmert III</name>
+       </maintainer>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Sam James</name>
        </maintainer>
        <use>
                <flag name="scrypt">Use <pkg>app-crypt/libscrypt</pkg> for the 
scrypt algorithm</flag>

diff --git a/net-vpn/tor/tor-0.4.7.13.ebuild 
b/net-vpn/tor/tor-0.4.7.13-r1.ebuild
similarity index 61%
rename from net-vpn/tor/tor-0.4.7.13.ebuild
rename to net-vpn/tor/tor-0.4.7.13-r1.ebuild
index 0c8b16e..f9b6f8e 100644
--- a/net-vpn/tor/tor-0.4.7.13.ebuild
+++ b/net-vpn/tor/tor-0.4.7.13-r1.ebuild
@@ -1,21 +1,24 @@
 # Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="8"
+EAPI=8
 
-PYTHON_COMPAT=( python3_{9..10} )
+PYTHON_COMPAT=( python3_{9..11} )
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/torproject.org.asc
 inherit python-any-r1 readme.gentoo-r1 systemd verify-sig
 
 MY_PV="$(ver_rs 4 -)"
 MY_PF="${PN}-${MY_PV}"
 DESCRIPTION="Anonymizing overlay network for TCP"
-HOMEPAGE="https://www.torproject.org/";
-SRC_URI="https://www.torproject.org/dist/${MY_PF}.tar.gz
+HOMEPAGE="https://www.torproject.org/ 
https://gitlab.torproject.org/tpo/core/tor/";
+SRC_URI="
+       https://www.torproject.org/dist/${MY_PF}.tar.gz
        https://archive.torproject.org/tor-package-archive/${MY_PF}.tar.gz
        verify-sig? (
                https://dist.torproject.org/${MY_PF}.tar.gz.sha256sum
                https://dist.torproject.org/${MY_PF}.tar.gz.sha256sum.asc
-       )"
+       )
+"
 S="${WORKDIR}/${MY_PF}"
 
 LICENSE="BSD GPL-2"
@@ -26,32 +29,31 @@ fi
 IUSE="caps doc lzma +man scrypt seccomp selinux +server systemd tor-hardening 
test zstd"
 RESTRICT="!test? ( test )"
 
-VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/torproject.org.asc
-
-BDEPEND="verify-sig? ( >=sec-keys/openpgp-keys-tor-20221213 )"
 DEPEND="
-       dev-libs/libevent:=[ssl]
+       >=dev-libs/libevent-2.1.12-r1:=[ssl]
        sys-libs/zlib
        caps? ( sys-libs/libcap )
        man? ( app-text/asciidoc )
-       dev-libs/openssl:0=[-bindist(-)]
+       dev-libs/openssl:=[-bindist(-)]
        lzma? ( app-arch/xz-utils )
        scrypt? ( app-crypt/libscrypt )
        seccomp? ( >=sys-libs/libseccomp-2.4.1 )
        systemd? ( sys-apps/systemd )
-       zstd? ( app-arch/zstd )"
+       zstd? ( app-arch/zstd )
+"
 RDEPEND="
        acct-user/tor
        acct-group/tor
        ${DEPEND}
-       selinux? ( sec-policy/selinux-tor )"
-
-# bug #764260
+       selinux? ( sec-policy/selinux-tor )
+"
 DEPEND+="
        test? (
                ${DEPEND}
                ${PYTHON_DEPS}
-       )"
+       )
+"
+BDEPEND="verify-sig? ( >=sec-keys/openpgp-keys-tor-20221213 )"
 
 DOCS=()
 
@@ -60,10 +62,6 @@ PATCHES=(
        "${FILESDIR}"/${PN}-0.2.7.4-torrc.sample.patch
 )
 
-# EAPI 8 tries to append it but it doesn't exist here
-# bug #831311 etc
-QA_CONFIGURE_OPTIONS="--disable-static"
-
 pkg_setup() {
        use test && python-any-r1_pkg_setup
 }
@@ -80,33 +78,46 @@ src_unpack() {
        default
 }
 
+src_prepare() {
+       default
+
+       # Running shellcheck automagically isn't useful for ebuild testing.
+       echo "exit 0" > scripts/maint/checkShellScripts.sh || die
+}
+
 src_configure() {
        use doc && DOCS+=( README.md ChangeLog ReleaseNotes doc/HACKING )
+
        export ac_cv_lib_cap_cap_init=$(usex caps)
-       econf \
-               --localstatedir="${EPREFIX}/var" \
-               --disable-all-bugs-are-fatal \
-               --enable-system-torrc \
-               --disable-android \
-               --disable-html-manual \
-               --disable-libfuzzer \
-               --enable-missing-doc-warnings \
-               --disable-module-dirauth \
-               --enable-pic \
-               --disable-restart-debugging \
-               --disable-zstd-advanced-apis  \
-               $(use_enable man asciidoc) \
-               $(use_enable man manpage) \
-               $(use_enable lzma) \
-               $(use_enable scrypt libscrypt) \
-               $(use_enable seccomp) \
-               $(use_enable server module-relay) \
-               $(use_enable systemd) \
-               $(use_enable tor-hardening gcc-hardening) \
-               $(use_enable tor-hardening linker-hardening) \
-               $(use_enable test unittests) \
-               $(use_enable test coverage) \
+       export tor_cv_PYTHON="${EPYTHON}"
+
+       local myeconfargs=(
+               --localstatedir="${EPREFIX}/var"
+               --disable-all-bugs-are-fatal
+               --enable-system-torrc
+               --disable-android
+               --disable-coverage
+               --disable-html-manual
+               --disable-libfuzzer
+               --enable-missing-doc-warnings
+               --disable-module-dirauth
+               --enable-pic
+               --disable-restart-debugging
+               --disable-zstd-advanced-apis
+               $(use_enable man asciidoc)
+               $(use_enable man manpage)
+               $(use_enable lzma)
+               $(use_enable scrypt libscrypt)
+               $(use_enable seccomp)
+               $(use_enable server module-relay)
+               $(use_enable systemd)
+               $(use_enable tor-hardening gcc-hardening)
+               $(use_enable tor-hardening linker-hardening)
+               $(use_enable test unittests)
                $(use_enable zstd)
+       )
+
+       econf "${myeconfargs[@]}"
 }
 
 src_install() {

Reply via email to