net-im/spectrum2: use correct python eclass
authorConrad Kostecki <conrad@kostecki.com>
Sun, 21 Jul 2019 08:48:53 +0000 (10:48 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 21 Jul 2019 21:46:12 +0000 (23:46 +0200)
Switching from python-single-r1 eclass to python-any-r1 eclass,
since python is only used for tests and not during runtime.

Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Conrad Kostecki <conrad@kostecki.com>
Closes: https://github.com/gentoo/gentoo/pull/12485
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
net-im/spectrum2/spectrum2-2.0.10.1-r2.ebuild [moved from net-im/spectrum2/spectrum2-2.0.10.1-r1.ebuild with 90% similarity]

similarity index 90%
rename from net-im/spectrum2/spectrum2-2.0.10.1-r1.ebuild
rename to net-im/spectrum2/spectrum2-2.0.10.1-r2.ebuild
index d528d24607920a82c3b9d3b1952b0efc51bdead6..be621d22a7013a674fcaa303830e4eed10235f8a 100644 (file)
@@ -5,7 +5,7 @@ EAPI=7
 
 PYTHON_COMPAT=( python2_7 )
 
-inherit cmake-utils python-single-r1 systemd user
+inherit cmake-utils python-any-r1 systemd user
 
 DESCRIPTION="An open source instant messaging transport"
 HOMEPAGE="https://www.spectrum.im"
@@ -49,11 +49,11 @@ RDEPEND="
        whatsapp? ( net-im/transwhat )"
 
 DEPEND="
-       ${PYTHON_DEPS}
        ${RDEPEND}
        doc? ( app-doc/doxygen )
        test? (
-               dev-python/sleekxmpp[${PYTHON_USEDEP}]
+               ${PYTHON_DEPS}
+               $(python_gen_any_dep 'dev-python/sleekxmpp[${PYTHON_USEDEP}]')
                dev-util/cppunit
                net-irc/ngircd
        )
@@ -62,11 +62,15 @@ DEPEND="
 # Tests are currently restricted, as they do completly fail
 RESTRICT="test"
 
+python_check_deps() {
+       has_version "dev-python/sleekxmpp[${PYTHON_USEDEP}]"
+}
+
 pkg_setup() {
        enewgroup spectrum
        enewuser spectrum -1 -1 /var/lib/spectrum2 spectrum
 
-       use test && python-single-r1_pkg_setup
+       use test && python-any-r1_pkg_setup
 }
 
 src_prepare() {