sys-libs/compiler-rt-sanitizers: Fix Python branches more
authorMichał Górny <mgorny@gentoo.org>
Mon, 6 Jan 2020 20:59:00 +0000 (21:59 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 6 Jan 2020 21:00:47 +0000 (22:00 +0100)
Suggested by Arfrever.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-10.0.0.9999.ebuild
sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-7.1.0.ebuild
sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-8.0.1.ebuild
sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9.0.1.ebuild

index a12bc71b611fad8d78e5b50cfdeb289be7fc0f33..72ee582f5c26e741e62c5214d6bb140155941ae3 100644 (file)
@@ -39,6 +39,7 @@ BDEPEND="
 CMAKE_BUILD_TYPE=RelWithDebInfo
 
 python_check_deps() {
+       use test || return 0
        has_version "dev-python/lit[${PYTHON_USEDEP}]"
 }
 
@@ -56,7 +57,7 @@ pkg_pretend() {
 pkg_setup() {
        check_space
        llvm_pkg_setup
-       use test && python-any-r1_pkg_setup
+       python-any-r1_pkg_setup
 }
 
 src_prepare() {
index a82a1960430b856fe53f4f4033390cc30406564d..ca11e3a590b6038268caf7e69e5e0be33312a9ce 100644 (file)
@@ -46,6 +46,7 @@ S=${WORKDIR}/${MY_P}
 CMAKE_BUILD_TYPE=RelWithDebInfo
 
 python_check_deps() {
+       use test || return 0
        has_version "dev-python/lit[${PYTHON_USEDEP}]"
 }
 
@@ -63,7 +64,7 @@ pkg_pretend() {
 pkg_setup() {
        check_space
        llvm_pkg_setup
-       use test && python-any-r1_pkg_setup
+       python-any-r1_pkg_setup
 }
 
 src_unpack() {
index 5e186ea0405b51e7849e18eeeaf274aca091f704..a02fbc489eb80329b56d4ad929edaf22e7bfe390 100644 (file)
@@ -46,6 +46,7 @@ S=${WORKDIR}/${MY_P}
 CMAKE_BUILD_TYPE=RelWithDebInfo
 
 python_check_deps() {
+       use test || return 0
        has_version "dev-python/lit[${PYTHON_USEDEP}]"
 }
 
@@ -63,7 +64,7 @@ pkg_pretend() {
 pkg_setup() {
        check_space
        llvm_pkg_setup
-       use test && python-any-r1_pkg_setup
+       python-any-r1_pkg_setup
 }
 
 src_unpack() {
index 6d3618d9efd14fd33559751a7b1e672172cddbfd..224903af109c2e5212b70b3a3e268e8666fa7107 100644 (file)
@@ -39,6 +39,7 @@ BDEPEND="
 CMAKE_BUILD_TYPE=RelWithDebInfo
 
 python_check_deps() {
+       use test || return 0
        has_version "dev-python/lit[${PYTHON_USEDEP}]"
 }
 
@@ -56,7 +57,7 @@ pkg_pretend() {
 pkg_setup() {
        check_space
        llvm_pkg_setup
-       use test && python-any-r1_pkg_setup
+       python-any-r1_pkg_setup
 }
 
 src_prepare() {