commit: 4819e144ca29b2a49eac242f8418880c10435543 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Mon Oct 3 08:42:29 2016 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Oct 3 09:38:32 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4819e144
sys-devel/clang-runtime: Introduce the runtime metapackage sys-devel/clang-runtime/clang-runtime-3.9.0.ebuild | 19 +++++++++++++++++ sys-devel/clang-runtime/clang-runtime-9999.ebuild | 24 ++++++++++++++++++++++ sys-devel/clang-runtime/metadata.xml | 13 ++++++++++++ 3 files changed, 56 insertions(+) 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 00000000..0388e2c --- /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 00000000..a29a541 --- /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 00000000..f761b62 --- /dev/null +++ b/sys-devel/clang-runtime/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>[email protected]</email> + </maintainer> + <use> + <flag name="compiler-rt">Install <pkg>sys-libs/compiler-rt</pkg> for -rtlib=compiler-rt</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> + </use> +</pkgmetadata>
