sys-libs/compiler-rt-sanitizers: Use llvm.eclass for reliable upgrade
authorMichał Górny <mgorny@gentoo.org>
Tue, 14 Mar 2017 22:00:47 +0000 (23:00 +0100)
committerMichał Górny <mgorny@gentoo.org>
Tue, 14 Mar 2017 22:22:22 +0000 (23:22 +0100)
sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0.ebuild
sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild

index dd945844c5488f3bb3041e873741ed3cf9944fe4..e5e2db2c1e4a50c8fc9e73932e3e7c9bfcde7505 100644 (file)
@@ -8,7 +8,7 @@ EAPI=6
 CMAKE_MIN_VERSION=3.7.0-r1
 PYTHON_COMPAT=( python2_7 )
 
-inherit cmake-utils flag-o-matic python-any-r1 versionator
+inherit cmake-utils flag-o-matic llvm python-any-r1 versionator
 
 DESCRIPTION="Compiler runtime libraries for clang (sanitizers & xray)"
 HOMEPAGE="http://llvm.org/"
@@ -37,6 +37,11 @@ S=${WORKDIR}/compiler-rt-${PV/_/}.src
 # least intrusive of all
 CMAKE_BUILD_TYPE=RelWithDebInfo
 
+pkg_setup() {
+       llvm_pkg_setup
+       python-any-r1_pkg_setup
+}
+
 src_unpack() {
        default
 
index 166dfdabd410e653eb8ef14de16fadbfd3a12719..ca1c0b6489285f703766f00dc2cc8b2bf55c2baf 100644 (file)
@@ -8,7 +8,7 @@ EAPI=6
 CMAKE_MIN_VERSION=3.7.0-r1
 PYTHON_COMPAT=( python2_7 )
 
-inherit cmake-utils flag-o-matic git-r3 python-any-r1 versionator
+inherit cmake-utils flag-o-matic git-r3 llvm python-any-r1 versionator
 
 DESCRIPTION="Compiler runtime libraries for clang (sanitizers & xray)"
 HOMEPAGE="http://llvm.org/"
@@ -36,6 +36,11 @@ DEPEND="
 # least intrusive of all
 CMAKE_BUILD_TYPE=RelWithDebInfo
 
+pkg_setup() {
+       llvm_pkg_setup
+       python-any-r1_pkg_setup
+}
+
 src_unpack() {
        if use test; then
                # needed for patched gtest