Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/clang-runtime/
Date: Mon, 03 Oct 2016 09:38:53
Message-Id: 1475487512.4819e144ca29b2a49eac242f8418880c10435543.mgorny@gentoo
1 commit: 4819e144ca29b2a49eac242f8418880c10435543
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 3 08:42:29 2016 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 3 09:38:32 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4819e144
7
8 sys-devel/clang-runtime: Introduce the runtime metapackage
9
10 sys-devel/clang-runtime/clang-runtime-3.9.0.ebuild | 19 +++++++++++++++++
11 sys-devel/clang-runtime/clang-runtime-9999.ebuild | 24 ++++++++++++++++++++++
12 sys-devel/clang-runtime/metadata.xml | 13 ++++++++++++
13 3 files changed, 56 insertions(+)
14
15 diff --git a/sys-devel/clang-runtime/clang-runtime-3.9.0.ebuild b/sys-devel/clang-runtime/clang-runtime-3.9.0.ebuild
16 new file mode 100644
17 index 00000000..0388e2c
18 --- /dev/null
19 +++ b/sys-devel/clang-runtime/clang-runtime-3.9.0.ebuild
20 @@ -0,0 +1,19 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=6
26 +
27 +DESCRIPTION="Meta-ebuild for clang runtime libraries"
28 +HOMEPAGE="http://clang.llvm.org/"
29 +SRC_URI=""
30 +
31 +LICENSE="metapackage"
32 +SLOT="0"
33 +KEYWORDS="~amd64 ~x86"
34 +IUSE="libcxx openmp"
35 +
36 +# compiler-rt is installed unconditionally
37 +RDEPEND="
38 + libcxx? ( ~sys-libs/libcxx-${PV} )
39 + openmp? ( ~sys-libs/libomp-${PV} )"
40
41 diff --git a/sys-devel/clang-runtime/clang-runtime-9999.ebuild b/sys-devel/clang-runtime/clang-runtime-9999.ebuild
42 new file mode 100644
43 index 00000000..a29a541
44 --- /dev/null
45 +++ b/sys-devel/clang-runtime/clang-runtime-9999.ebuild
46 @@ -0,0 +1,24 @@
47 +# Copyright 1999-2016 Gentoo Foundation
48 +# Distributed under the terms of the GNU General Public License v2
49 +# $Id$
50 +
51 +EAPI=6
52 +
53 +DESCRIPTION="Meta-ebuild for clang runtime libraries"
54 +HOMEPAGE="http://clang.llvm.org/"
55 +SRC_URI=""
56 +
57 +LICENSE="metapackage"
58 +SLOT="0"
59 +KEYWORDS=""
60 +IUSE="+compiler-rt libcxx openmp +sanitize"
61 +
62 +RDEPEND="
63 + compiler-rt? (
64 + ~sys-libs/compiler-rt-${PV}
65 + sanitize? ( ~sys-libs/compiler-rt-sanitizers-${PV} )
66 + )
67 + libcxx? ( ~sys-libs/libcxx-${PV} )
68 + openmp? ( ~sys-libs/libomp-${PV} )"
69 +
70 +REQUIRED_USE="sanitize? ( compiler-rt )"
71
72 diff --git a/sys-devel/clang-runtime/metadata.xml b/sys-devel/clang-runtime/metadata.xml
73 new file mode 100644
74 index 00000000..f761b62
75 --- /dev/null
76 +++ b/sys-devel/clang-runtime/metadata.xml
77 @@ -0,0 +1,13 @@
78 +<?xml version="1.0" encoding="UTF-8"?>
79 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
80 +<pkgmetadata>
81 + <maintainer type="project">
82 + <email>llvm@g.o</email>
83 + </maintainer>
84 + <use>
85 + <flag name="compiler-rt">Install <pkg>sys-libs/compiler-rt</pkg> for -rtlib=compiler-rt</flag>
86 + <flag name="libcxx">Install <pkg>sys-libs/libcxx</pkg> for -stdlib=libc++</flag>
87 + <flag name="openmp">Install <pkg>sys-libs/libomp</pkg> for -fopenmp support</flag>
88 + <flag name="sanitize">Enable compiler-rt sanitizer (-fsanitize*) support</flag>
89 + </use>
90 +</pkgmetadata>