diff options
Diffstat (limited to 'net-vpn/tor/tor-0.4.5.7.ebuild')
-rw-r--r-- | net-vpn/tor/tor-0.4.5.7.ebuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/net-vpn/tor/tor-0.4.5.7.ebuild b/net-vpn/tor/tor-0.4.5.7.ebuild index afb37f6b7f7d..82738f38a284 100644 --- a/net-vpn/tor/tor-0.4.5.7.ebuild +++ b/net-vpn/tor/tor-0.4.5.7.ebuild @@ -3,7 +3,8 @@ EAPI="7" -inherit flag-o-matic readme.gentoo-r1 systemd verify-sig +PYTHON_COMPAT=( python3_{7,8,9} ) +inherit flag-o-matic python-any-r1 readme.gentoo-r1 systemd verify-sig MY_PV="$(ver_rs 4 -)" MY_PF="${PN}-${MY_PV}" @@ -40,6 +41,13 @@ RDEPEND=" ${DEPEND} selinux? ( sec-policy/selinux-tor )" +# bug #764260 +DEPEND+=" + test? ( + ${DEPEND} + ${PYTHON_DEPS} + )" + PATCHES=( "${FILESDIR}"/${PN}-0.2.7.4-torrc.sample.patch "${FILESDIR}"/${PN}-0.4.5.5_rc1-LDFLAGS-typo.patch @@ -49,6 +57,10 @@ DOCS=() RESTRICT="!test? ( test )" +pkg_setup() { + use test && python-any-r1_pkg_setup +} + src_configure() { use doc && DOCS+=( README ChangeLog ReleaseNotes doc/HACKING ) export ac_cv_lib_cap_cap_init=$(usex caps) |