media-sound/csound: [QA] Add missing python metadata variables
authorDavid Seifert <soap@gentoo.org>
Sun, 23 Apr 2017 10:30:05 +0000 (12:30 +0200)
committerDavid Seifert <soap@gentoo.org>
Sun, 23 Apr 2017 11:27:37 +0000 (13:27 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.2

media-sound/csound/csound-6.08.0.ebuild
media-sound/csound/csound-9999.ebuild

index a28fec3c57ee073b11fed2a4ba4393c26c8f636f..8cc84ab08b7ae157cff28497d76b3c21833fad81 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -25,7 +25,7 @@ REQUIRED_USE="
        java? ( cxx )
        linear? ( double-precision )
        lua? ( cxx )
-       python? ( cxx )
+       python? ( ${PYTHON_REQUIRED_USE} cxx )
 "
 
 RDEPEND="
@@ -82,12 +82,12 @@ DEPEND="${RDEPEND}
 RESTRICT="test"
 
 pkg_pretend() {
-       if use openmp ; then
-               tc-has-openmp || die "Please switch to an openmp compatible compiler"
-       fi
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 }
 
 pkg_setup() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+
        if use python || use test ; then
                python-single-r1_pkg_setup
        fi
index 06c09139e74e1130fd5cb4a30c45d40d454d2f19..b67f5ec5779f270deb86e0d666f7ff7787a6dc4d 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -31,7 +31,7 @@ REQUIRED_USE="
        java? ( cxx )
        linear? ( double-precision )
        lua? ( cxx )
-       python? ( cxx )
+       python? ( ${PYTHON_REQUIRED_USE} cxx )
 "
 
 RDEPEND="
@@ -88,12 +88,12 @@ DEPEND="${RDEPEND}
 RESTRICT="test"
 
 pkg_pretend() {
-       if use openmp ; then
-               tc-has-openmp || die "Please switch to an openmp compatible compiler"
-       fi
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 }
 
 pkg_setup() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+
        if use python || use test ; then
                python-single-r1_pkg_setup
        fi