Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 05/18] sys-devel/llvm: Dedupe with new eclass code
Date: Sat, 20 Jun 2020 21:18:40
Message-Id: 20200620211624.427466-6-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 00/18] llvm.org.eclass: more deduplication with packages by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 sys-devel/llvm/llvm-10.0.1.9999.ebuild | 14 ++++----------
4 sys-devel/llvm/llvm-10.0.1_rc1.ebuild | 14 ++++----------
5 sys-devel/llvm/llvm-11.0.0.9999.ebuild | 14 ++++----------
6 3 files changed, 12 insertions(+), 30 deletions(-)
7
8 diff --git a/sys-devel/llvm/llvm-10.0.1.9999.ebuild b/sys-devel/llvm/llvm-10.0.1.9999.ebuild
9 index 27af603d49b5..6bf2a545f962 100644
10 --- a/sys-devel/llvm/llvm-10.0.1.9999.ebuild
11 +++ b/sys-devel/llvm/llvm-10.0.1.9999.ebuild
12 @@ -4,8 +4,8 @@
13 EAPI=7
14
15 PYTHON_COMPAT=( python3_{6..9} )
16 -inherit cmake llvm.org multilib-minimal multiprocessing pax-utils \
17 - python-any-r1 toolchain-funcs
18 +inherit cmake llvm.org multilib-minimal pax-utils python-any-r1 \
19 + toolchain-funcs
20
21 DESCRIPTION="Low Level Virtual Machine"
22 HOMEPAGE="https://llvm.org/"
23 @@ -70,9 +70,6 @@ RDEPEND="${RDEPEND}
24 PDEPEND="sys-devel/llvm-common
25 gold? ( >=sys-devel/llvmgold-${SLOT} )"
26
27 -# least intrusive of all
28 -CMAKE_BUILD_TYPE=RelWithDebInfo
29 -
30 PATCHES=(
31 # Fix linking to dylib and .a libs simultaneously
32 "${FILESDIR}"/10.0.1/0001-llvm-Avoid-linking-llvm-cfi-verify-to-duplicate-libs.patch
33 @@ -198,10 +195,7 @@ src_prepare() {
34 # Verify that the live ebuild is up-to-date
35 check_live_ebuild
36
37 - # cmake eclasses suck by forcing ${S} here
38 - CMAKE_USE_DIR=${S} \
39 - S=${WORKDIR} \
40 - cmake_src_prepare
41 + llvm.org_src_prepare
42 }
43
44 # Is LLVM being linked against libc++?
45 @@ -399,7 +393,7 @@ multilib_src_configure() {
46 # fi
47
48 use test && mycmakeargs+=(
49 - -DLLVM_LIT_ARGS="-vv;-j;${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")}"
50 + -DLLVM_LIT_ARGS="$(get_lit_flags)"
51 )
52
53 if multilib_is_native_abi; then
54 diff --git a/sys-devel/llvm/llvm-10.0.1_rc1.ebuild b/sys-devel/llvm/llvm-10.0.1_rc1.ebuild
55 index 36ee1f6d95dc..5ac7c6e2a8c3 100644
56 --- a/sys-devel/llvm/llvm-10.0.1_rc1.ebuild
57 +++ b/sys-devel/llvm/llvm-10.0.1_rc1.ebuild
58 @@ -4,8 +4,8 @@
59 EAPI=7
60
61 PYTHON_COMPAT=( python3_{6..9} )
62 -inherit cmake llvm.org multilib-minimal multiprocessing pax-utils \
63 - python-any-r1 toolchain-funcs
64 +inherit cmake llvm.org multilib-minimal pax-utils python-any-r1 \
65 + toolchain-funcs
66
67 DESCRIPTION="Low Level Virtual Machine"
68 HOMEPAGE="https://llvm.org/"
69 @@ -70,9 +70,6 @@ RDEPEND="${RDEPEND}
70 PDEPEND="sys-devel/llvm-common
71 gold? ( >=sys-devel/llvmgold-${SLOT} )"
72
73 -# least intrusive of all
74 -CMAKE_BUILD_TYPE=RelWithDebInfo
75 -
76 PATCHES=(
77 # Fix linking to dylib and .a libs simultaneously
78 "${FILESDIR}"/10.0.1/0001-llvm-Avoid-linking-llvm-cfi-verify-to-duplicate-libs.patch
79 @@ -163,10 +160,7 @@ src_prepare() {
80 sed -i -e '/source_parsers/d' docs/conf.py || die
81 fi
82
83 - # cmake eclasses suck by forcing ${S} here
84 - CMAKE_USE_DIR=${S} \
85 - S=${WORKDIR} \
86 - cmake_src_prepare
87 + llvm.org_src_prepare
88 }
89
90 # Is LLVM being linked against libc++?
91 @@ -364,7 +358,7 @@ multilib_src_configure() {
92 # fi
93
94 use test && mycmakeargs+=(
95 - -DLLVM_LIT_ARGS="-vv;-j;${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")}"
96 + -DLLVM_LIT_ARGS="$(get_lit_flags)"
97 )
98
99 if multilib_is_native_abi; then
100 diff --git a/sys-devel/llvm/llvm-11.0.0.9999.ebuild b/sys-devel/llvm/llvm-11.0.0.9999.ebuild
101 index 5af65c0f4a0d..e005e516f322 100644
102 --- a/sys-devel/llvm/llvm-11.0.0.9999.ebuild
103 +++ b/sys-devel/llvm/llvm-11.0.0.9999.ebuild
104 @@ -4,8 +4,8 @@
105 EAPI=7
106
107 PYTHON_COMPAT=( python3_{6..9} )
108 -inherit cmake llvm.org multilib-minimal multiprocessing pax-utils \
109 - python-any-r1 toolchain-funcs
110 +inherit cmake llvm.org multilib-minimal pax-utils python-any-r1 \
111 + toolchain-funcs
112
113 DESCRIPTION="Low Level Virtual Machine"
114 HOMEPAGE="https://llvm.org/"
115 @@ -70,9 +70,6 @@ RDEPEND="${RDEPEND}
116 PDEPEND="sys-devel/llvm-common
117 gold? ( >=sys-devel/llvmgold-${SLOT} )"
118
119 -# least intrusive of all
120 -CMAKE_BUILD_TYPE=RelWithDebInfo
121 -
122 python_check_deps() {
123 if use doc; then
124 has_version -b "dev-python/recommonmark[${PYTHON_USEDEP}]" ||
125 @@ -192,10 +189,7 @@ src_prepare() {
126 # Verify that the live ebuild is up-to-date
127 check_live_ebuild
128
129 - # cmake eclasses suck by forcing ${S} here
130 - CMAKE_USE_DIR=${S} \
131 - S=${WORKDIR} \
132 - cmake_src_prepare
133 + llvm.org_src_prepare
134 }
135
136 # Is LLVM being linked against libc++?
137 @@ -395,7 +389,7 @@ multilib_src_configure() {
138 # fi
139
140 use test && mycmakeargs+=(
141 - -DLLVM_LIT_ARGS="-vv;-j;${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")}"
142 + -DLLVM_LIT_ARGS="$(get_lit_flags)"
143 )
144
145 if multilib_is_native_abi; then
146 --
147 2.27.0