From 9dbaee7488a852b823c4afa7b109b4a924787b4f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 6 Jan 2020 21:58:04 +0100 Subject: [PATCH] sys-libs/compiler-rt: Fix Python branches more MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Suggested by Arfrever. Signed-off-by: Michał Górny --- sys-libs/compiler-rt/compiler-rt-10.0.0.9999.ebuild | 3 ++- sys-libs/compiler-rt/compiler-rt-7.1.0.ebuild | 3 ++- sys-libs/compiler-rt/compiler-rt-8.0.1.ebuild | 3 ++- sys-libs/compiler-rt/compiler-rt-9.0.1.ebuild | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sys-libs/compiler-rt/compiler-rt-10.0.0.9999.ebuild b/sys-libs/compiler-rt/compiler-rt-10.0.0.9999.ebuild index abb81deafce9..7a7778ae76b9 100644 --- a/sys-libs/compiler-rt/compiler-rt-10.0.0.9999.ebuild +++ b/sys-libs/compiler-rt/compiler-rt-10.0.0.9999.ebuild @@ -33,6 +33,7 @@ BDEPEND=" CMAKE_BUILD_TYPE=RelWithDebInfo python_check_deps() { + use test || return 0 has_version "dev-python/lit[${PYTHON_USEDEP}]" } @@ -45,7 +46,7 @@ pkg_pretend() { pkg_setup() { llvm_pkg_setup - use test && python-any-r1_pkg_setup + python-any-r1_pkg_setup } test_compiler() { diff --git a/sys-libs/compiler-rt/compiler-rt-7.1.0.ebuild b/sys-libs/compiler-rt/compiler-rt-7.1.0.ebuild index dc06a171993f..8339d3420ba3 100644 --- a/sys-libs/compiler-rt/compiler-rt-7.1.0.ebuild +++ b/sys-libs/compiler-rt/compiler-rt-7.1.0.ebuild @@ -37,6 +37,7 @@ S=${WORKDIR}/${P/_/}.src CMAKE_BUILD_TYPE=RelWithDebInfo python_check_deps() { + use test || return 0 has_version "dev-python/lit[${PYTHON_USEDEP}]" } @@ -49,7 +50,7 @@ pkg_pretend() { pkg_setup() { llvm_pkg_setup - use test && python-any-r1_pkg_setup + python-any-r1_pkg_setup } test_compiler() { diff --git a/sys-libs/compiler-rt/compiler-rt-8.0.1.ebuild b/sys-libs/compiler-rt/compiler-rt-8.0.1.ebuild index bad82273c129..5049bf3761b8 100644 --- a/sys-libs/compiler-rt/compiler-rt-8.0.1.ebuild +++ b/sys-libs/compiler-rt/compiler-rt-8.0.1.ebuild @@ -38,6 +38,7 @@ S=${WORKDIR}/${MY_P} CMAKE_BUILD_TYPE=RelWithDebInfo python_check_deps() { + use test || return 0 has_version "dev-python/lit[${PYTHON_USEDEP}]" } @@ -50,7 +51,7 @@ pkg_pretend() { pkg_setup() { llvm_pkg_setup - use test && python-any-r1_pkg_setup + python-any-r1_pkg_setup } test_compiler() { diff --git a/sys-libs/compiler-rt/compiler-rt-9.0.1.ebuild b/sys-libs/compiler-rt/compiler-rt-9.0.1.ebuild index fb6ce9998fa7..55650e04a52c 100644 --- a/sys-libs/compiler-rt/compiler-rt-9.0.1.ebuild +++ b/sys-libs/compiler-rt/compiler-rt-9.0.1.ebuild @@ -33,6 +33,7 @@ BDEPEND=" CMAKE_BUILD_TYPE=RelWithDebInfo python_check_deps() { + use test || return 0 has_version "dev-python/lit[${PYTHON_USEDEP}]" } @@ -45,7 +46,7 @@ pkg_pretend() { pkg_setup() { llvm_pkg_setup - use test && python-any-r1_pkg_setup + python-any-r1_pkg_setup } test_compiler() { -- 2.26.2