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-libs/compiler-rt/
Date: Sun, 03 Nov 2019 11:46:38
Message-Id: 1572781578.1447f6b293b1f20ecc721a4e4b4a4eb3c5d00eba.mgorny@gentoo
1 commit: 1447f6b293b1f20ecc721a4e4b4a4eb3c5d00eba
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 1 17:56:03 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 3 11:46:18 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1447f6b2
7
8 sys-libs/compiler-rt: Port to llvm.org eclass
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-libs/compiler-rt/compiler-rt-10.0.0.9999.ebuild | 12 +++---------
13 sys-libs/compiler-rt/compiler-rt-9.0.0-r1.ebuild | 7 +++----
14 sys-libs/compiler-rt/compiler-rt-9.0.1.9999.ebuild | 13 +++----------
15 3 files changed, 9 insertions(+), 23 deletions(-)
16
17 diff --git a/sys-libs/compiler-rt/compiler-rt-10.0.0.9999.ebuild b/sys-libs/compiler-rt/compiler-rt-10.0.0.9999.ebuild
18 index fee62ad9c75..1c0ee0530af 100644
19 --- a/sys-libs/compiler-rt/compiler-rt-10.0.0.9999.ebuild
20 +++ b/sys-libs/compiler-rt/compiler-rt-10.0.0.9999.ebuild
21 @@ -4,14 +4,13 @@
22 EAPI=7
23
24 PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
25 -inherit cmake-utils flag-o-matic git-r3 llvm multiprocessing \
26 +inherit cmake-utils flag-o-matic llvm llvm.org multiprocessing \
27 python-any-r1 toolchain-funcs
28
29 DESCRIPTION="Compiler runtime library for clang (built-in part)"
30 HOMEPAGE="https://llvm.org/"
31 -SRC_URI=""
32 -EGIT_REPO_URI="https://github.com/llvm/llvm-project.git"
33 -S=${WORKDIR}/${P}/compiler-rt
34 +LLVM_COMPONENTS=( compiler-rt )
35 +llvm.org_set_globals
36
37 LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
38 SLOT="$(ver_cut 1-3)"
39 @@ -45,11 +44,6 @@ pkg_setup() {
40 python-any-r1_pkg_setup
41 }
42
43 -src_unpack() {
44 - git-r3_fetch
45 - git-r3_checkout '' '' '' compiler-rt
46 -}
47 -
48 test_compiler() {
49 $(tc-getCC) ${CFLAGS} ${LDFLAGS} "${@}" -o /dev/null -x c - \
50 <<<'int main() { return 0; }' &>/dev/null
51
52 diff --git a/sys-libs/compiler-rt/compiler-rt-9.0.0-r1.ebuild b/sys-libs/compiler-rt/compiler-rt-9.0.0-r1.ebuild
53 index 658306b72f4..ed72a058928 100644
54 --- a/sys-libs/compiler-rt/compiler-rt-9.0.0-r1.ebuild
55 +++ b/sys-libs/compiler-rt/compiler-rt-9.0.0-r1.ebuild
56 @@ -4,14 +4,13 @@
57 EAPI=7
58
59 PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
60 -inherit cmake-utils flag-o-matic llvm multiprocessing \
61 +inherit cmake-utils flag-o-matic llvm llvm.org multiprocessing \
62 python-any-r1 toolchain-funcs
63
64 -MY_P=${P}.src
65 DESCRIPTION="Compiler runtime library for clang (built-in part)"
66 HOMEPAGE="https://llvm.org/"
67 -SRC_URI="https://releases.llvm.org/${PV}/${MY_P}.tar.xz"
68 -S=${WORKDIR}/${MY_P}
69 +LLVM_COMPONENTS=( compiler-rt )
70 +llvm.org_set_globals
71
72 LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
73 SLOT="$(ver_cut 1-3)"
74
75 diff --git a/sys-libs/compiler-rt/compiler-rt-9.0.1.9999.ebuild b/sys-libs/compiler-rt/compiler-rt-9.0.1.9999.ebuild
76 index 1d00f77cdca..1c0ee0530af 100644
77 --- a/sys-libs/compiler-rt/compiler-rt-9.0.1.9999.ebuild
78 +++ b/sys-libs/compiler-rt/compiler-rt-9.0.1.9999.ebuild
79 @@ -4,15 +4,13 @@
80 EAPI=7
81
82 PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
83 -inherit cmake-utils flag-o-matic git-r3 llvm multiprocessing \
84 +inherit cmake-utils flag-o-matic llvm llvm.org multiprocessing \
85 python-any-r1 toolchain-funcs
86
87 DESCRIPTION="Compiler runtime library for clang (built-in part)"
88 HOMEPAGE="https://llvm.org/"
89 -SRC_URI=""
90 -EGIT_REPO_URI="https://github.com/llvm/llvm-project.git"
91 -EGIT_BRANCH="release/9.x"
92 -S=${WORKDIR}/${P}/compiler-rt
93 +LLVM_COMPONENTS=( compiler-rt )
94 +llvm.org_set_globals
95
96 LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
97 SLOT="$(ver_cut 1-3)"
98 @@ -46,11 +44,6 @@ pkg_setup() {
99 python-any-r1_pkg_setup
100 }
101
102 -src_unpack() {
103 - git-r3_fetch
104 - git-r3_checkout '' '' '' compiler-rt
105 -}
106 -
107 test_compiler() {
108 $(tc-getCC) ${CFLAGS} ${LDFLAGS} "${@}" -o /dev/null -x c - \
109 <<<'int main() { return 0; }' &>/dev/null