From: Michał Górny Date: Mon, 3 Oct 2016 08:42:29 +0000 (+0200) Subject: sys-devel/clang-runtime: Introduce the runtime metapackage X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=4819e144ca29b2a49eac242f8418880c10435543;p=gentoo.git sys-devel/clang-runtime: Introduce the runtime metapackage --- diff --git a/sys-devel/clang-runtime/clang-runtime-3.9.0.ebuild b/sys-devel/clang-runtime/clang-runtime-3.9.0.ebuild new file mode 100644 index 000000000000..0388e2c324ff --- /dev/null +++ b/sys-devel/clang-runtime/clang-runtime-3.9.0.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Meta-ebuild for clang runtime libraries" +HOMEPAGE="http://clang.llvm.org/" +SRC_URI="" + +LICENSE="metapackage" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="libcxx openmp" + +# compiler-rt is installed unconditionally +RDEPEND=" + libcxx? ( ~sys-libs/libcxx-${PV} ) + openmp? ( ~sys-libs/libomp-${PV} )" diff --git a/sys-devel/clang-runtime/clang-runtime-9999.ebuild b/sys-devel/clang-runtime/clang-runtime-9999.ebuild new file mode 100644 index 000000000000..a29a5419eb1b --- /dev/null +++ b/sys-devel/clang-runtime/clang-runtime-9999.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Meta-ebuild for clang runtime libraries" +HOMEPAGE="http://clang.llvm.org/" +SRC_URI="" + +LICENSE="metapackage" +SLOT="0" +KEYWORDS="" +IUSE="+compiler-rt libcxx openmp +sanitize" + +RDEPEND=" + compiler-rt? ( + ~sys-libs/compiler-rt-${PV} + sanitize? ( ~sys-libs/compiler-rt-sanitizers-${PV} ) + ) + libcxx? ( ~sys-libs/libcxx-${PV} ) + openmp? ( ~sys-libs/libomp-${PV} )" + +REQUIRED_USE="sanitize? ( compiler-rt )" diff --git a/sys-devel/clang-runtime/metadata.xml b/sys-devel/clang-runtime/metadata.xml new file mode 100644 index 000000000000..f761b620168e --- /dev/null +++ b/sys-devel/clang-runtime/metadata.xml @@ -0,0 +1,13 @@ + + + + + llvm@gentoo.org + + + Install sys-libs/compiler-rt for -rtlib=compiler-rt + Install sys-libs/libcxx for -stdlib=libc++ + Install sys-libs/libomp for -fopenmp support + Enable compiler-rt sanitizer (-fsanitize*) support + +