app-misc/pax-utils: drop PYTHON_TARGETS check for USE=-python
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 10 Aug 2018 07:31:45 +0000 (08:31 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Fri, 10 Aug 2018 07:33:51 +0000 (08:33 +0100)
Before the change dependency resolution passed successfully
but pkg_setup() failed as:

$ USE=-python PYTHON_TARGETS=python3_7 emerge -v1 app-misc/pax-utils

 * ERROR: app-misc/pax-utils-1.2.3-r1::gentoo failed (setup phase):
 *   Build target (python3_6) not in PYTHON_TARGETS.

Move PYTHON_TARGETS checking under 'use python'.

Closes: https://bugs.gentoo.org/662120
Package-Manager: Portage-2.3.45, Repoman-2.3.10

app-misc/pax-utils/pax-utils-1.2.3-r2.ebuild [moved from app-misc/pax-utils/pax-utils-1.2.3-r1.ebuild with 95% similarity]

similarity index 95%
rename from app-misc/pax-utils/pax-utils-1.2.3-r1.ebuild
rename to app-misc/pax-utils/pax-utils-1.2.3-r2.ebuild
index 4d57eedb1532beb0df70a837105b740413829d69..f0127f587d24825d938f2bbaee8f22b8358c21c1 100644 (file)
@@ -38,6 +38,12 @@ _emake() {
                "$@"
 }
 
+pkg_setup() {
+       if use python; then
+               python-single-r1_pkg_setup
+       fi
+}
+
 src_configure() {
        # Avoid slow configure+gnulib+make if on an up-to-date Linux system
        if use prefix || ! use kernel_linux ||