sys-devel/clang-runtime: Add multilib propagation flags
authorMichał Górny <mgorny@gentoo.org>
Sun, 20 Nov 2016 09:09:17 +0000 (10:09 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 20 Nov 2016 10:09:06 +0000 (11:09 +0100)
Add multilib flags and use them to propagate ABI support to runtime
packages. This makes it possible to reliably enforce support for
a particular ABI via the central package.

sys-devel/clang-runtime/clang-runtime-3.9.0.ebuild
sys-devel/clang-runtime/clang-runtime-9999.ebuild

index 29c4a2dc6dd9ed7348d776ad037aa9d8434ba701..d2b06e96283d4a3338cd1bf7f815f27eb96a3909 100644 (file)
@@ -4,6 +4,8 @@
 
 EAPI=6
 
+inherit multilib-build
+
 DESCRIPTION="Meta-ebuild for clang runtime libraries"
 HOMEPAGE="http://clang.llvm.org/"
 SRC_URI=""
@@ -15,5 +17,5 @@ IUSE="libcxx openmp"
 
 # compiler-rt is installed unconditionally
 RDEPEND="
-       libcxx? ( ~sys-libs/libcxx-${PV} )
-       openmp? ( ~sys-libs/libomp-${PV} )"
+       libcxx? ( ~sys-libs/libcxx-${PV}[${MULTILIB_USEDEP}] )
+       openmp? ( ~sys-libs/libomp-${PV}[${MULTILIB_USEDEP}] )"
index a29a5419eb1b664c6f4ab56c9e11bdcf164713e8..d224ca01584b932cbbc2c38ae1acfa73b444e909 100644 (file)
@@ -4,6 +4,8 @@
 
 EAPI=6
 
+inherit multilib-build
+
 DESCRIPTION="Meta-ebuild for clang runtime libraries"
 HOMEPAGE="http://clang.llvm.org/"
 SRC_URI=""
@@ -18,7 +20,7 @@ RDEPEND="
                ~sys-libs/compiler-rt-${PV}
                sanitize? ( ~sys-libs/compiler-rt-sanitizers-${PV} )
        )
-       libcxx? ( ~sys-libs/libcxx-${PV} )
-       openmp? ( ~sys-libs/libomp-${PV} )"
+       libcxx? ( ~sys-libs/libcxx-${PV}[${MULTILIB_USEDEP}] )
+       openmp? ( ~sys-libs/libomp-${PV}[${MULTILIB_USEDEP}] )"
 
 REQUIRED_USE="sanitize? ( compiler-rt )"