diff --git a/net-irc/znc/znc-9999.ebuild b/net-irc/znc/znc-9999.ebuild index 1bb0a13..5884b05 100644 --- a/net-irc/znc/znc-9999.ebuild +++ b/net-irc/znc/znc-9999.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit cmake python-single-r1 @@ -33,7 +33,11 @@ SLOT="0/${PV}" IUSE="+icu nls perl python +ssl sasl tcl test +zlib" RESTRICT="!test? ( test )" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} icu )" +# tests run znc-buildmod which is a Python script +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} icu ) + test? ( ${PYTHON_REQUIRED_USE} ) +" # perl is a build-time dependency of modpython BDEPEND=" @@ -53,6 +57,7 @@ BDEPEND=" ) " DEPEND=" + app-crypt/argon2 dev-cpp/cctz icu? ( dev-libs/icu:= ) nls? ( dev-libs/boost:=[nls] ) @@ -69,7 +74,7 @@ PATCHES=( ) pkg_setup() { - if use python; then + if use python || use test; then python-single-r1_pkg_setup fi }