commit: 9bc4f85609c4c642717d5d93ddb0ae47772d9a51
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 3 19:00:51 2018 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Apr 3 19:39:17 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bc4f856
sys-devel/clang-runtime: Add USE=crt for (non-GCC) crt*.o files
...lang-runtime-6.0.0.ebuild => clang-runtime-4.0.1-r1.ebuild} | 10 ++++++++--
...lang-runtime-6.0.0.ebuild => clang-runtime-5.0.1-r1.ebuild} | 10 ++++++++--
...lang-runtime-6.0.0.ebuild => clang-runtime-6.0.0-r1.ebuild} | 8 +++++++-
sys-devel/clang-runtime/clang-runtime-6.0.9999.ebuild | 8 +++++++-
sys-devel/clang-runtime/clang-runtime-9999.ebuild | 8 +++++++-
sys-devel/clang-runtime/metadata.xml | 2 ++
6 files changed, 39 insertions(+), 7 deletions(-)
diff --git a/sys-devel/clang-runtime/clang-runtime-6.0.0.ebuild
b/sys-devel/clang-runtime/clang-runtime-4.0.1-r1.ebuild
similarity index 74%
copy from sys-devel/clang-runtime/clang-runtime-6.0.0.ebuild
copy to sys-devel/clang-runtime/clang-runtime-4.0.1-r1.ebuild
index da0933c9b99..34393f3f5c3 100644
--- a/sys-devel/clang-runtime/clang-runtime-6.0.0.ebuild
+++ b/sys-devel/clang-runtime/clang-runtime-4.0.1-r1.ebuild
@@ -11,14 +11,20 @@ SRC_URI=""
LICENSE="metapackage"
SLOT="${PV%_*}"
-KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-fbsd ~amd64-linux ~ppc-macos ~x64-macos
~x86-macos"
-IUSE="+compiler-rt libcxx openmp +sanitize"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="+compiler-rt crt libcxx openmp +sanitize"
RDEPEND="
compiler-rt? (
~sys-libs/compiler-rt-${PV}:${SLOT}
sanitize? ( ~sys-libs/compiler-rt-sanitizers-${PV}:${SLOT} )
)
+ crt? (
+ || (
+ sys-libs/netbsd-csu[${MULTILIB_USEDEP}]
+ sys-freebsd/freebsd-lib[${MULTILIB_USEDEP}]
+ )
+ )
libcxx? ( >=sys-libs/libcxx-${PV}[${MULTILIB_USEDEP}] )
openmp? ( >=sys-libs/libomp-${PV}[${MULTILIB_USEDEP}] )"
diff --git a/sys-devel/clang-runtime/clang-runtime-6.0.0.ebuild
b/sys-devel/clang-runtime/clang-runtime-5.0.1-r1.ebuild
similarity index 70%
copy from sys-devel/clang-runtime/clang-runtime-6.0.0.ebuild
copy to sys-devel/clang-runtime/clang-runtime-5.0.1-r1.ebuild
index da0933c9b99..38aa2c0fe1f 100644
--- a/sys-devel/clang-runtime/clang-runtime-6.0.0.ebuild
+++ b/sys-devel/clang-runtime/clang-runtime-5.0.1-r1.ebuild
@@ -11,14 +11,20 @@ SRC_URI=""
LICENSE="metapackage"
SLOT="${PV%_*}"
-KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-fbsd ~amd64-linux ~ppc-macos ~x64-macos
~x86-macos"
-IUSE="+compiler-rt libcxx openmp +sanitize"
+KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="+compiler-rt crt libcxx openmp +sanitize"
RDEPEND="
compiler-rt? (
~sys-libs/compiler-rt-${PV}:${SLOT}
sanitize? ( ~sys-libs/compiler-rt-sanitizers-${PV}:${SLOT} )
)
+ crt? (
+ || (
+ sys-libs/netbsd-csu[${MULTILIB_USEDEP}]
+ sys-freebsd/freebsd-lib[${MULTILIB_USEDEP}]
+ )
+ )
libcxx? ( >=sys-libs/libcxx-${PV}[${MULTILIB_USEDEP}] )
openmp? ( >=sys-libs/libomp-${PV}[${MULTILIB_USEDEP}] )"
diff --git a/sys-devel/clang-runtime/clang-runtime-6.0.0.ebuild
b/sys-devel/clang-runtime/clang-runtime-6.0.0-r1.ebuild
similarity index 80%
rename from sys-devel/clang-runtime/clang-runtime-6.0.0.ebuild
rename to sys-devel/clang-runtime/clang-runtime-6.0.0-r1.ebuild
index da0933c9b99..5fdd2d6b0a9 100644
--- a/sys-devel/clang-runtime/clang-runtime-6.0.0.ebuild
+++ b/sys-devel/clang-runtime/clang-runtime-6.0.0-r1.ebuild
@@ -12,13 +12,19 @@ SRC_URI=""
LICENSE="metapackage"
SLOT="${PV%_*}"
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-fbsd ~amd64-linux ~ppc-macos ~x64-macos
~x86-macos"
-IUSE="+compiler-rt libcxx openmp +sanitize"
+IUSE="+compiler-rt crt libcxx openmp +sanitize"
RDEPEND="
compiler-rt? (
~sys-libs/compiler-rt-${PV}:${SLOT}
sanitize? ( ~sys-libs/compiler-rt-sanitizers-${PV}:${SLOT} )
)
+ crt? (
+ || (
+ sys-libs/netbsd-csu[${MULTILIB_USEDEP}]
+ sys-freebsd/freebsd-lib[${MULTILIB_USEDEP}]
+ )
+ )
libcxx? ( >=sys-libs/libcxx-${PV}[${MULTILIB_USEDEP}] )
openmp? ( >=sys-libs/libomp-${PV}[${MULTILIB_USEDEP}] )"
diff --git a/sys-devel/clang-runtime/clang-runtime-6.0.9999.ebuild
b/sys-devel/clang-runtime/clang-runtime-6.0.9999.ebuild
index 333b352d98b..65baa4349d6 100644
--- a/sys-devel/clang-runtime/clang-runtime-6.0.9999.ebuild
+++ b/sys-devel/clang-runtime/clang-runtime-6.0.9999.ebuild
@@ -13,13 +13,19 @@ LICENSE="metapackage"
# Note: keep it matching clang-9999 version
SLOT="6.0.0"
KEYWORDS=""
-IUSE="+compiler-rt libcxx openmp +sanitize"
+IUSE="+compiler-rt crt libcxx openmp +sanitize"
RDEPEND="
compiler-rt? (
~sys-libs/compiler-rt-${PV}:${SLOT}
sanitize? ( ~sys-libs/compiler-rt-sanitizers-${PV}:${SLOT} )
)
+ crt? (
+ || (
+ sys-libs/netbsd-csu[${MULTILIB_USEDEP}]
+ sys-freebsd/freebsd-lib[${MULTILIB_USEDEP}]
+ )
+ )
libcxx? ( >=sys-libs/libcxx-${PV}[${MULTILIB_USEDEP}] )
openmp? ( >=sys-libs/libomp-${PV}[${MULTILIB_USEDEP}] )"
diff --git a/sys-devel/clang-runtime/clang-runtime-9999.ebuild
b/sys-devel/clang-runtime/clang-runtime-9999.ebuild
index 5586ba0ef77..dcd22734f00 100644
--- a/sys-devel/clang-runtime/clang-runtime-9999.ebuild
+++ b/sys-devel/clang-runtime/clang-runtime-9999.ebuild
@@ -13,13 +13,19 @@ LICENSE="metapackage"
# Note: keep it matching clang-9999 version
SLOT="7.0.0"
KEYWORDS=""
-IUSE="+compiler-rt libcxx openmp +sanitize"
+IUSE="+compiler-rt crt libcxx openmp +sanitize"
RDEPEND="
compiler-rt? (
~sys-libs/compiler-rt-${PV}:${SLOT}
sanitize? ( ~sys-libs/compiler-rt-sanitizers-${PV}:${SLOT} )
)
+ crt? (
+ || (
+ sys-libs/netbsd-csu[${MULTILIB_USEDEP}]
+ sys-freebsd/freebsd-lib[${MULTILIB_USEDEP}]
+ )
+ )
libcxx? ( >=sys-libs/libcxx-${PV}[${MULTILIB_USEDEP}] )
openmp? ( >=sys-libs/libomp-${PV}[${MULTILIB_USEDEP}] )"
diff --git a/sys-devel/clang-runtime/metadata.xml
b/sys-devel/clang-runtime/metadata.xml
index f761b620168..bf616d36427 100644
--- a/sys-devel/clang-runtime/metadata.xml
+++ b/sys-devel/clang-runtime/metadata.xml
@@ -6,6 +6,8 @@
</maintainer>
<use>
<flag name="compiler-rt">Install
<pkg>sys-libs/compiler-rt</pkg> for -rtlib=compiler-rt</flag>
+ <flag name="crt">Require a package providing crt*.o files to
make it possible to build
+ software without GCC installed</flag>
<flag name="libcxx">Install <pkg>sys-libs/libcxx</pkg> for
-stdlib=libc++</flag>
<flag name="openmp">Install <pkg>sys-libs/libomp</pkg> for
-fopenmp support</flag>
<flag name="sanitize">Enable compiler-rt sanitizer
(-fsanitize*) support</flag>