summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-11-29 09:54:30 +0100
committerMichał Górny <mgorny@gentoo.org>2020-11-29 09:58:53 +0100
commit4b2655ac560d03840565bc86a175f064d29c8e9b (patch)
treeb68acaabc96b4cca9432a7193b505b4180ef9052 /dev-python/clang-python
parentsys-devel/clang: Delay llvm.org_set_globals after vars (diff)
downloadgentoo-4b2655ac560d03840565bc86a175f064d29c8e9b.tar.gz
gentoo-4b2655ac560d03840565bc86a175f064d29c8e9b.tar.bz2
gentoo-4b2655ac560d03840565bc86a175f064d29c8e9b.zip
dev-python/clang-python: Delay llvm.org_set_globals after vars
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/clang-python')
-rw-r--r--dev-python/clang-python/clang-python-11.0.0.9999.ebuild5
-rw-r--r--dev-python/clang-python/clang-python-12.0.0.9999.ebuild5
2 files changed, 6 insertions, 4 deletions
diff --git a/dev-python/clang-python/clang-python-11.0.0.9999.ebuild b/dev-python/clang-python/clang-python-11.0.0.9999.ebuild
index 6d7cb294e651..36c6ba65c994 100644
--- a/dev-python/clang-python/clang-python-11.0.0.9999.ebuild
+++ b/dev-python/clang-python/clang-python-11.0.0.9999.ebuild
@@ -8,8 +8,6 @@ inherit llvm.org python-r1
DESCRIPTION="Python bindings for sys-devel/clang"
HOMEPAGE="https://llvm.org/"
-LLVM_COMPONENTS=( clang/bindings/python )
-llvm.org_set_globals
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
SLOT="0"
@@ -27,6 +25,9 @@ RDEPEND="
${PYTHON_DEPS}"
DEPEND="${RDEPEND}"
+LLVM_COMPONENTS=( clang/bindings/python )
+llvm.org_set_globals
+
python_test() {
"${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}"
}
diff --git a/dev-python/clang-python/clang-python-12.0.0.9999.ebuild b/dev-python/clang-python/clang-python-12.0.0.9999.ebuild
index 6d7cb294e651..36c6ba65c994 100644
--- a/dev-python/clang-python/clang-python-12.0.0.9999.ebuild
+++ b/dev-python/clang-python/clang-python-12.0.0.9999.ebuild
@@ -8,8 +8,6 @@ inherit llvm.org python-r1
DESCRIPTION="Python bindings for sys-devel/clang"
HOMEPAGE="https://llvm.org/"
-LLVM_COMPONENTS=( clang/bindings/python )
-llvm.org_set_globals
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
SLOT="0"
@@ -27,6 +25,9 @@ RDEPEND="
${PYTHON_DEPS}"
DEPEND="${RDEPEND}"
+LLVM_COMPONENTS=( clang/bindings/python )
+llvm.org_set_globals
+
python_test() {
"${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}"
}