summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-11-29 09:52:09 +0100
committerMichał Górny <mgorny@gentoo.org>2020-11-29 09:52:09 +0100
commite2ef809fb26fc3ba1b40677f0a0ff59fc8157c7d (patch)
tree96e4fa0fef838535d380b696d2f43b6ccb6ce628 /sys-devel/lld
parentdev-ml/llvm-ocaml: Delay llvm.org_set_globals after vars (diff)
downloadgentoo-e2ef809fb26fc3ba1b40677f0a0ff59fc8157c7d.tar.gz
gentoo-e2ef809fb26fc3ba1b40677f0a0ff59fc8157c7d.tar.bz2
gentoo-e2ef809fb26fc3ba1b40677f0a0ff59fc8157c7d.zip
sys-devel/lld: Delay llvm.org_set_globals after vars
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-devel/lld')
-rw-r--r--sys-devel/lld/lld-11.0.0.9999.ebuild10
-rw-r--r--sys-devel/lld/lld-12.0.0.9999.ebuild10
2 files changed, 12 insertions, 8 deletions
diff --git a/sys-devel/lld/lld-11.0.0.9999.ebuild b/sys-devel/lld/lld-11.0.0.9999.ebuild
index 05be08d3d096..4b86a2bdffef 100644
--- a/sys-devel/lld/lld-11.0.0.9999.ebuild
+++ b/sys-devel/lld/lld-11.0.0.9999.ebuild
@@ -8,9 +8,6 @@ inherit cmake llvm llvm.org python-any-r1
DESCRIPTION="The LLVM linker (link editor)"
HOMEPAGE="https://llvm.org/"
-LLVM_COMPONENTS=( lld )
-LLVM_TEST_COMPONENTS=( llvm/utils/{lit,unittest} )
-llvm.org_set_globals
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
SLOT="0"
@@ -20,11 +17,16 @@ RESTRICT="!test? ( test )"
RDEPEND="~sys-devel/llvm-${PV}"
DEPEND="${RDEPEND}"
-BDEPEND="test? (
+BDEPEND="
+ test? (
>=dev-util/cmake-3.16
$(python_gen_any_dep "~dev-python/lit-${PV}[\${PYTHON_USEDEP}]")
)"
+LLVM_COMPONENTS=( lld )
+LLVM_TEST_COMPONENTS=( llvm/utils/{lit,unittest} )
+llvm.org_set_globals
+
python_check_deps() {
has_version -b "dev-python/lit[${PYTHON_USEDEP}]"
}
diff --git a/sys-devel/lld/lld-12.0.0.9999.ebuild b/sys-devel/lld/lld-12.0.0.9999.ebuild
index 61159e289d5a..3cf868e55cb7 100644
--- a/sys-devel/lld/lld-12.0.0.9999.ebuild
+++ b/sys-devel/lld/lld-12.0.0.9999.ebuild
@@ -8,9 +8,6 @@ inherit cmake llvm llvm.org python-any-r1
DESCRIPTION="The LLVM linker (link editor)"
HOMEPAGE="https://llvm.org/"
-LLVM_COMPONENTS=( lld libunwind/include/mach-o )
-LLVM_TEST_COMPONENTS=( llvm/utils/{lit,unittest} )
-llvm.org_set_globals
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
SLOT="0"
@@ -20,11 +17,16 @@ RESTRICT="!test? ( test )"
RDEPEND="~sys-devel/llvm-${PV}"
DEPEND="${RDEPEND}"
-BDEPEND="test? (
+BDEPEND="
+ test? (
>=dev-util/cmake-3.16
$(python_gen_any_dep "~dev-python/lit-${PV}[\${PYTHON_USEDEP}]")
)"
+LLVM_COMPONENTS=( lld libunwind/include/mach-o )
+LLVM_TEST_COMPONENTS=( llvm/utils/{lit,unittest} )
+llvm.org_set_globals
+
python_check_deps() {
has_version -b "dev-python/lit[${PYTHON_USEDEP}]"
}