summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-03-14 23:00:47 +0100
committerMichał Górny <mgorny@gentoo.org>2017-03-14 23:22:22 +0100
commit2c6d60a736a66a541e299f07df4079cf664b411c (patch)
tree77ba21b786a3b4b2db94c23a0cb71700053e65ad /sys-libs
parentsys-libs/compiler-rt: Use llvm.eclass for reliable upgrade from :0 (diff)
downloadgentoo-2c6d60a736a66a541e299f07df4079cf664b411c.tar.gz
gentoo-2c6d60a736a66a541e299f07df4079cf664b411c.tar.bz2
gentoo-2c6d60a736a66a541e299f07df4079cf664b411c.zip
sys-libs/compiler-rt-sanitizers: Use llvm.eclass for reliable upgrade
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0.ebuild7
-rw-r--r--sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild7
2 files changed, 12 insertions, 2 deletions
diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0.ebuild
index dd945844c548..e5e2db2c1e4a 100644
--- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0.ebuild
+++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0.ebuild
@@ -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
diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild
index 166dfdabd410..ca1c0b648928 100644
--- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild
+++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild
@@ -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