summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-11-01 18:43:03 +0100
committerMichał Górny <mgorny@gentoo.org>2019-11-03 12:46:16 +0100
commit4c9a0ca41b5d96cd54731a67cee910f08b3504ae (patch)
tree6b9a96eb5d766caff0a7eff92f1b13f21f992f17 /dev-python/clang-python/clang-python-9.0.0.ebuild
parentsys-devel/lld: Port 9+ to llvm.org.eclass (diff)
downloadgentoo-4c9a0ca41b5d96cd54731a67cee910f08b3504ae.tar.gz
gentoo-4c9a0ca41b5d96cd54731a67cee910f08b3504ae.tar.bz2
gentoo-4c9a0ca41b5d96cd54731a67cee910f08b3504ae.zip
dev-python/clang-python: Port to llvm.org eclass
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/clang-python/clang-python-9.0.0.ebuild')
-rw-r--r--dev-python/clang-python/clang-python-9.0.0.ebuild12
1 files changed, 3 insertions, 9 deletions
diff --git a/dev-python/clang-python/clang-python-9.0.0.ebuild b/dev-python/clang-python/clang-python-9.0.0.ebuild
index ad10831f6e23..6796e58d1b11 100644
--- a/dev-python/clang-python/clang-python-9.0.0.ebuild
+++ b/dev-python/clang-python/clang-python-9.0.0.ebuild
@@ -4,13 +4,12 @@
EAPI=7
PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
-inherit python-r1
+inherit llvm.org python-r1
-MY_P=cfe-${PV/_/}.src
DESCRIPTION="Python bindings for sys-devel/clang"
HOMEPAGE="https://llvm.org/"
-SRC_URI="https://releases.llvm.org/${PV}/${MY_P}.tar.xz"
-S=${WORKDIR}/${MY_P}/bindings/python
+LLVM_COMPONENTS=( clang/bindings/python )
+llvm.org_set_globals
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
SLOT="0"
@@ -28,11 +27,6 @@ RDEPEND="
${PYTHON_DEPS}"
DEPEND="${RDEPEND}"
-src_unpack() {
- einfo "Unpacking parts of ${MY_P}.tar.xz ..."
- tar -xJf "${DISTDIR}/${MY_P}.tar.xz" "${MY_P}/bindings/python" || die
-}
-
python_test() {
"${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}"
}