1 |
commit: c17d66455c263c226a808037be2f39c758cd341e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 15 20:37:37 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 15 20:44:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c17d6645 |
7 |
|
8 |
dev-ml/llvm-ocaml: Remove 12.0.0 RCs |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-ml/llvm-ocaml/Manifest | 4 - |
13 |
dev-ml/llvm-ocaml/llvm-ocaml-12.0.0_rc2.ebuild | 124 ------------------------- |
14 |
dev-ml/llvm-ocaml/llvm-ocaml-12.0.0_rc3.ebuild | 124 ------------------------- |
15 |
dev-ml/llvm-ocaml/llvm-ocaml-12.0.0_rc4.ebuild | 124 ------------------------- |
16 |
dev-ml/llvm-ocaml/llvm-ocaml-12.0.0_rc5.ebuild | 124 ------------------------- |
17 |
5 files changed, 500 deletions(-) |
18 |
|
19 |
diff --git a/dev-ml/llvm-ocaml/Manifest b/dev-ml/llvm-ocaml/Manifest |
20 |
index 087d75cb29b..09cfebc2769 100644 |
21 |
--- a/dev-ml/llvm-ocaml/Manifest |
22 |
+++ b/dev-ml/llvm-ocaml/Manifest |
23 |
@@ -2,8 +2,4 @@ DIST llvmorg-10.0.1.tar.gz 120880730 BLAKE2B 30f19f56c4d1f6abcda5fec76256219d1e3 |
24 |
DIST llvmorg-11.0.0.tar.gz 122743665 BLAKE2B 3f95570240789fd68ddb747df817f5c6cdc9da40911bbe9ee3531c15ada9165e5002b1c2f778cf8735858485ea05a8754e3d3a5f4b15bdd6cb33d64a14692984 SHA512 b6d38871ccce0e086e27d35e42887618d68e57d8274735c59e3eabc42dee352412489296293f8d5169fe0044936345915ee7da61ebdc64ec10f7737f6ecd90f2 |
25 |
DIST llvmorg-11.0.1.tar.gz 122790338 BLAKE2B 0130996b4a8c4d9f757136fd7fb318068c9bfdc565060dec0d4336480c4ab66c4ae3185a7fdb05f13cf9ee8fd4123b09df938881b75d6e5d3689595114b7e32a SHA512 f5e6ef0b3111aae08a89cd01adb2ff4abfa9ef779c68b9190421d0447efd25c2cc00e5aae9f4764805f5fa31434866043d1510ae7389817e28ae53a5442e2fdf |
26 |
DIST llvmorg-11.1.0.tar.gz 122776532 BLAKE2B ca842ff4afff8f44c82b5e7383962a9c45ca1c93b64fa4c6ebcd70a1d3849dbad2b8e4e24fba02d144c6266d7fab3607ebc6999b28c229cb35256cf40f26a985 SHA512 9a8ce022a935eed42fa71a224f2a207122aadcbef58ee855fdb4825f879e7d028e4dcff22c19b9d336db1c8bf63fb84372d44981acf84615f757e54306c92b81 |
27 |
-DIST llvmorg-12.0.0-rc2.tar.gz 134242619 BLAKE2B bb741a311db608fc2ba7eeaab71c5c9f2a430f7fee3f0c5c4334e5c14caa19738d18c87b568de963d57d9b53e808ac412cf8554eca7fcae9ecca65aa4442e197 SHA512 d8f9b3dfeb0fe9b91eb7f49da393784333044db2653373fbb168afd3c8d50f3e3ec7a7b8f44df522d0facafbfe4cfc4d9e2906d19f1e6feb0bdc569b6c10a17d |
28 |
-DIST llvmorg-12.0.0-rc3.tar.gz 134244008 BLAKE2B ed09aa361b264387711ba1ee2e4b01c0c78ad97391df95e2542d4edc31f657cc33c8a2a45de63eb421908d5dadd9392a736610fbb04b3ecbd336d6514a649da8 SHA512 1fae53c6f255160cf4be53848b8b92c8b162ddcfbddf1bf0017faf249859040c15c862c4b52bc3ba894149139afb814e0674da88793ddebfc0756ba3aa7626ce |
29 |
-DIST llvmorg-12.0.0-rc4.tar.gz 134245842 BLAKE2B 860a0551a42e2c6a28f213c151076c5ae64a9d85f7bfb2e2df4737acd5fe968f29d368a689d9a857e01038587e872722d216f044b3f665857d7ed71122fe334e SHA512 20e4440664227c9ea7af84df3643599cd7c96f5e2b6404c42be0ce0f0d7f989f5c7b8df1f1ba93d1473d3a30325cda5a53d3900c0229ccb042b365583b5aa846 |
30 |
-DIST llvmorg-12.0.0-rc5.tar.gz 134247991 BLAKE2B 9721e211d39611f9c48b57386fb57c1dcf964c39ff5f32c593a6390c06659fcd5a1f76063004d2ecd3d1af32281a69994c7478b7fdfacd9f50ebf5fbb2050a71 SHA512 a289fdc55c25454e8cbfd370387fdd11c7555d03b3c479213e37dd01189c077d67bd04b8cab62ce82f3746877f5f02619afb3a5110191048511efee38c191d16 |
31 |
DIST llvmorg-12.0.0.tar.gz 134226215 BLAKE2B f9c3ba8c58571855caa4f206fd285c9b5be66672fb0814cb8bc0964a051f57f5d35013aa1e27cbda502652b37df1ec23474129109e76a42066847860db441dbe SHA512 0cff02155c5ac0d6db2b72d60d9819d5b5dd859663b45f721b1c7540239c2fceb1f57d9173f6870c49de851c242ed8e85c5c6d6577a1f8092a7c5dcd12513b26 |
32 |
|
33 |
diff --git a/dev-ml/llvm-ocaml/llvm-ocaml-12.0.0_rc2.ebuild b/dev-ml/llvm-ocaml/llvm-ocaml-12.0.0_rc2.ebuild |
34 |
deleted file mode 100644 |
35 |
index 3fc4ee845be..00000000000 |
36 |
--- a/dev-ml/llvm-ocaml/llvm-ocaml-12.0.0_rc2.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,124 +0,0 @@ |
39 |
-# Copyright 1999-2021 Gentoo Authors |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
- |
42 |
-EAPI=7 |
43 |
- |
44 |
-PYTHON_COMPAT=( python3_{7..9} ) |
45 |
-inherit cmake llvm llvm.org python-any-r1 |
46 |
- |
47 |
-DESCRIPTION="OCaml bindings for LLVM" |
48 |
-HOMEPAGE="https://llvm.org/" |
49 |
- |
50 |
-# Keep in sync with sys-devel/llvm |
51 |
-ALL_LLVM_EXPERIMENTAL_TARGETS=( ARC CSKY VE ) |
52 |
-ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM AVR BPF Hexagon Lanai Mips MSP430 |
53 |
- NVPTX PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore |
54 |
- "${ALL_LLVM_EXPERIMENTAL_TARGETS[@]}" ) |
55 |
-ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" ) |
56 |
- |
57 |
-LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
58 |
-SLOT="0/${PV}" |
59 |
-KEYWORDS="" |
60 |
-IUSE="debug test ${ALL_LLVM_TARGETS[*]}" |
61 |
-REQUIRED_USE="|| ( ${ALL_LLVM_TARGETS[*]} )" |
62 |
-RESTRICT="!test? ( test )" |
63 |
- |
64 |
-RDEPEND=" |
65 |
- >=dev-lang/ocaml-4.00.0:0= |
66 |
- dev-ml/ocaml-ctypes:= |
67 |
- ~sys-devel/llvm-${PV}:=[debug?] |
68 |
- !sys-devel/llvm[ocaml(-)]" |
69 |
-for x in "${ALL_LLVM_TARGETS[@]}"; do |
70 |
- RDEPEND+=" |
71 |
- ${x}? ( ~sys-devel/llvm-${PV}[${x}] )" |
72 |
-done |
73 |
-unset x |
74 |
- |
75 |
-DEPEND="${RDEPEND}" |
76 |
-BDEPEND=" |
77 |
- dev-lang/perl |
78 |
- dev-ml/findlib |
79 |
- >=dev-util/cmake-3.16 |
80 |
- test? ( dev-ml/ounit2 ) |
81 |
- ${PYTHON_DEPS}" |
82 |
- |
83 |
-LLVM_COMPONENTS=( llvm ) |
84 |
-llvm.org_set_globals |
85 |
- |
86 |
-pkg_setup() { |
87 |
- LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup |
88 |
- python-any-r1_pkg_setup |
89 |
-} |
90 |
- |
91 |
-src_configure() { |
92 |
- local libdir=$(get_libdir) |
93 |
- local mycmakeargs=( |
94 |
- -DLLVM_LIBDIR_SUFFIX=${libdir#lib} |
95 |
- |
96 |
- -DBUILD_SHARED_LIBS=OFF |
97 |
- -DLLVM_BUILD_LLVM_DYLIB=ON |
98 |
- -DLLVM_LINK_LLVM_DYLIB=ON |
99 |
- -DLLVM_OCAML_OUT_OF_TREE=ON |
100 |
- |
101 |
- # cheap hack: LLVM combines both anyway, and the only difference |
102 |
- # is that the former list is explicitly verified at cmake time |
103 |
- -DLLVM_TARGETS_TO_BUILD="" |
104 |
- -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}" |
105 |
- -DLLVM_BUILD_TESTS=$(usex test) |
106 |
- |
107 |
- # disable various irrelevant deps and settings |
108 |
- -DLLVM_ENABLE_FFI=OFF |
109 |
- -DLLVM_ENABLE_TERMINFO=OFF |
110 |
- -DHAVE_HISTEDIT_H=NO |
111 |
- -DLLVM_ENABLE_ASSERTIONS=$(usex debug) |
112 |
- -DLLVM_ENABLE_EH=ON |
113 |
- -DLLVM_ENABLE_RTTI=ON |
114 |
- |
115 |
- -DLLVM_HOST_TRIPLE="${CHOST}" |
116 |
- |
117 |
- -DPython3_EXECUTABLE="${PYTHON}" |
118 |
- |
119 |
- # disable go bindings |
120 |
- -DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND |
121 |
- |
122 |
- # TODO: ocamldoc |
123 |
- ) |
124 |
- |
125 |
- use test && mycmakeargs+=( |
126 |
- -DLLVM_LIT_ARGS="$(get_lit_flags)" |
127 |
- ) |
128 |
- |
129 |
- # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
130 |
- # also: custom rules for OCaml do not work for CPPFLAGS |
131 |
- use debug || local -x CFLAGS="${CFLAGS} -DNDEBUG" |
132 |
- cmake_src_configure |
133 |
- |
134 |
- local llvm_libdir=$(llvm-config --libdir) |
135 |
- # an ugly hack; TODO: figure out a way to pass -L to ocaml... |
136 |
- cd "${BUILD_DIR}/${libdir}" || die |
137 |
- ln -s "${llvm_libdir}"/*.so . || die |
138 |
- |
139 |
- if use test; then |
140 |
- local llvm_bindir=$(llvm-config --bindir) |
141 |
- # Force using system-installed tools. |
142 |
- sed -i -e "/llvm_tools_dir/s@\".*\"@\"${llvm_bindir}\"@" \ |
143 |
- "${BUILD_DIR}"/test/lit.site.cfg.py || die |
144 |
- fi |
145 |
-} |
146 |
- |
147 |
-src_compile() { |
148 |
- cmake_build ocaml_all |
149 |
-} |
150 |
- |
151 |
-src_test() { |
152 |
- # respect TMPDIR! |
153 |
- local -x LIT_PRESERVES_TMP=1 |
154 |
- cmake_build check-llvm-bindings-ocaml |
155 |
-} |
156 |
- |
157 |
-src_install() { |
158 |
- DESTDIR="${D}" \ |
159 |
- cmake -P "${BUILD_DIR}"/bindings/ocaml/cmake_install.cmake || die |
160 |
- |
161 |
- dodoc bindings/ocaml/README.txt |
162 |
-} |
163 |
|
164 |
diff --git a/dev-ml/llvm-ocaml/llvm-ocaml-12.0.0_rc3.ebuild b/dev-ml/llvm-ocaml/llvm-ocaml-12.0.0_rc3.ebuild |
165 |
deleted file mode 100644 |
166 |
index 3fc4ee845be..00000000000 |
167 |
--- a/dev-ml/llvm-ocaml/llvm-ocaml-12.0.0_rc3.ebuild |
168 |
+++ /dev/null |
169 |
@@ -1,124 +0,0 @@ |
170 |
-# Copyright 1999-2021 Gentoo Authors |
171 |
-# Distributed under the terms of the GNU General Public License v2 |
172 |
- |
173 |
-EAPI=7 |
174 |
- |
175 |
-PYTHON_COMPAT=( python3_{7..9} ) |
176 |
-inherit cmake llvm llvm.org python-any-r1 |
177 |
- |
178 |
-DESCRIPTION="OCaml bindings for LLVM" |
179 |
-HOMEPAGE="https://llvm.org/" |
180 |
- |
181 |
-# Keep in sync with sys-devel/llvm |
182 |
-ALL_LLVM_EXPERIMENTAL_TARGETS=( ARC CSKY VE ) |
183 |
-ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM AVR BPF Hexagon Lanai Mips MSP430 |
184 |
- NVPTX PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore |
185 |
- "${ALL_LLVM_EXPERIMENTAL_TARGETS[@]}" ) |
186 |
-ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" ) |
187 |
- |
188 |
-LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
189 |
-SLOT="0/${PV}" |
190 |
-KEYWORDS="" |
191 |
-IUSE="debug test ${ALL_LLVM_TARGETS[*]}" |
192 |
-REQUIRED_USE="|| ( ${ALL_LLVM_TARGETS[*]} )" |
193 |
-RESTRICT="!test? ( test )" |
194 |
- |
195 |
-RDEPEND=" |
196 |
- >=dev-lang/ocaml-4.00.0:0= |
197 |
- dev-ml/ocaml-ctypes:= |
198 |
- ~sys-devel/llvm-${PV}:=[debug?] |
199 |
- !sys-devel/llvm[ocaml(-)]" |
200 |
-for x in "${ALL_LLVM_TARGETS[@]}"; do |
201 |
- RDEPEND+=" |
202 |
- ${x}? ( ~sys-devel/llvm-${PV}[${x}] )" |
203 |
-done |
204 |
-unset x |
205 |
- |
206 |
-DEPEND="${RDEPEND}" |
207 |
-BDEPEND=" |
208 |
- dev-lang/perl |
209 |
- dev-ml/findlib |
210 |
- >=dev-util/cmake-3.16 |
211 |
- test? ( dev-ml/ounit2 ) |
212 |
- ${PYTHON_DEPS}" |
213 |
- |
214 |
-LLVM_COMPONENTS=( llvm ) |
215 |
-llvm.org_set_globals |
216 |
- |
217 |
-pkg_setup() { |
218 |
- LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup |
219 |
- python-any-r1_pkg_setup |
220 |
-} |
221 |
- |
222 |
-src_configure() { |
223 |
- local libdir=$(get_libdir) |
224 |
- local mycmakeargs=( |
225 |
- -DLLVM_LIBDIR_SUFFIX=${libdir#lib} |
226 |
- |
227 |
- -DBUILD_SHARED_LIBS=OFF |
228 |
- -DLLVM_BUILD_LLVM_DYLIB=ON |
229 |
- -DLLVM_LINK_LLVM_DYLIB=ON |
230 |
- -DLLVM_OCAML_OUT_OF_TREE=ON |
231 |
- |
232 |
- # cheap hack: LLVM combines both anyway, and the only difference |
233 |
- # is that the former list is explicitly verified at cmake time |
234 |
- -DLLVM_TARGETS_TO_BUILD="" |
235 |
- -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}" |
236 |
- -DLLVM_BUILD_TESTS=$(usex test) |
237 |
- |
238 |
- # disable various irrelevant deps and settings |
239 |
- -DLLVM_ENABLE_FFI=OFF |
240 |
- -DLLVM_ENABLE_TERMINFO=OFF |
241 |
- -DHAVE_HISTEDIT_H=NO |
242 |
- -DLLVM_ENABLE_ASSERTIONS=$(usex debug) |
243 |
- -DLLVM_ENABLE_EH=ON |
244 |
- -DLLVM_ENABLE_RTTI=ON |
245 |
- |
246 |
- -DLLVM_HOST_TRIPLE="${CHOST}" |
247 |
- |
248 |
- -DPython3_EXECUTABLE="${PYTHON}" |
249 |
- |
250 |
- # disable go bindings |
251 |
- -DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND |
252 |
- |
253 |
- # TODO: ocamldoc |
254 |
- ) |
255 |
- |
256 |
- use test && mycmakeargs+=( |
257 |
- -DLLVM_LIT_ARGS="$(get_lit_flags)" |
258 |
- ) |
259 |
- |
260 |
- # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
261 |
- # also: custom rules for OCaml do not work for CPPFLAGS |
262 |
- use debug || local -x CFLAGS="${CFLAGS} -DNDEBUG" |
263 |
- cmake_src_configure |
264 |
- |
265 |
- local llvm_libdir=$(llvm-config --libdir) |
266 |
- # an ugly hack; TODO: figure out a way to pass -L to ocaml... |
267 |
- cd "${BUILD_DIR}/${libdir}" || die |
268 |
- ln -s "${llvm_libdir}"/*.so . || die |
269 |
- |
270 |
- if use test; then |
271 |
- local llvm_bindir=$(llvm-config --bindir) |
272 |
- # Force using system-installed tools. |
273 |
- sed -i -e "/llvm_tools_dir/s@\".*\"@\"${llvm_bindir}\"@" \ |
274 |
- "${BUILD_DIR}"/test/lit.site.cfg.py || die |
275 |
- fi |
276 |
-} |
277 |
- |
278 |
-src_compile() { |
279 |
- cmake_build ocaml_all |
280 |
-} |
281 |
- |
282 |
-src_test() { |
283 |
- # respect TMPDIR! |
284 |
- local -x LIT_PRESERVES_TMP=1 |
285 |
- cmake_build check-llvm-bindings-ocaml |
286 |
-} |
287 |
- |
288 |
-src_install() { |
289 |
- DESTDIR="${D}" \ |
290 |
- cmake -P "${BUILD_DIR}"/bindings/ocaml/cmake_install.cmake || die |
291 |
- |
292 |
- dodoc bindings/ocaml/README.txt |
293 |
-} |
294 |
|
295 |
diff --git a/dev-ml/llvm-ocaml/llvm-ocaml-12.0.0_rc4.ebuild b/dev-ml/llvm-ocaml/llvm-ocaml-12.0.0_rc4.ebuild |
296 |
deleted file mode 100644 |
297 |
index 3fc4ee845be..00000000000 |
298 |
--- a/dev-ml/llvm-ocaml/llvm-ocaml-12.0.0_rc4.ebuild |
299 |
+++ /dev/null |
300 |
@@ -1,124 +0,0 @@ |
301 |
-# Copyright 1999-2021 Gentoo Authors |
302 |
-# Distributed under the terms of the GNU General Public License v2 |
303 |
- |
304 |
-EAPI=7 |
305 |
- |
306 |
-PYTHON_COMPAT=( python3_{7..9} ) |
307 |
-inherit cmake llvm llvm.org python-any-r1 |
308 |
- |
309 |
-DESCRIPTION="OCaml bindings for LLVM" |
310 |
-HOMEPAGE="https://llvm.org/" |
311 |
- |
312 |
-# Keep in sync with sys-devel/llvm |
313 |
-ALL_LLVM_EXPERIMENTAL_TARGETS=( ARC CSKY VE ) |
314 |
-ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM AVR BPF Hexagon Lanai Mips MSP430 |
315 |
- NVPTX PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore |
316 |
- "${ALL_LLVM_EXPERIMENTAL_TARGETS[@]}" ) |
317 |
-ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" ) |
318 |
- |
319 |
-LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
320 |
-SLOT="0/${PV}" |
321 |
-KEYWORDS="" |
322 |
-IUSE="debug test ${ALL_LLVM_TARGETS[*]}" |
323 |
-REQUIRED_USE="|| ( ${ALL_LLVM_TARGETS[*]} )" |
324 |
-RESTRICT="!test? ( test )" |
325 |
- |
326 |
-RDEPEND=" |
327 |
- >=dev-lang/ocaml-4.00.0:0= |
328 |
- dev-ml/ocaml-ctypes:= |
329 |
- ~sys-devel/llvm-${PV}:=[debug?] |
330 |
- !sys-devel/llvm[ocaml(-)]" |
331 |
-for x in "${ALL_LLVM_TARGETS[@]}"; do |
332 |
- RDEPEND+=" |
333 |
- ${x}? ( ~sys-devel/llvm-${PV}[${x}] )" |
334 |
-done |
335 |
-unset x |
336 |
- |
337 |
-DEPEND="${RDEPEND}" |
338 |
-BDEPEND=" |
339 |
- dev-lang/perl |
340 |
- dev-ml/findlib |
341 |
- >=dev-util/cmake-3.16 |
342 |
- test? ( dev-ml/ounit2 ) |
343 |
- ${PYTHON_DEPS}" |
344 |
- |
345 |
-LLVM_COMPONENTS=( llvm ) |
346 |
-llvm.org_set_globals |
347 |
- |
348 |
-pkg_setup() { |
349 |
- LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup |
350 |
- python-any-r1_pkg_setup |
351 |
-} |
352 |
- |
353 |
-src_configure() { |
354 |
- local libdir=$(get_libdir) |
355 |
- local mycmakeargs=( |
356 |
- -DLLVM_LIBDIR_SUFFIX=${libdir#lib} |
357 |
- |
358 |
- -DBUILD_SHARED_LIBS=OFF |
359 |
- -DLLVM_BUILD_LLVM_DYLIB=ON |
360 |
- -DLLVM_LINK_LLVM_DYLIB=ON |
361 |
- -DLLVM_OCAML_OUT_OF_TREE=ON |
362 |
- |
363 |
- # cheap hack: LLVM combines both anyway, and the only difference |
364 |
- # is that the former list is explicitly verified at cmake time |
365 |
- -DLLVM_TARGETS_TO_BUILD="" |
366 |
- -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}" |
367 |
- -DLLVM_BUILD_TESTS=$(usex test) |
368 |
- |
369 |
- # disable various irrelevant deps and settings |
370 |
- -DLLVM_ENABLE_FFI=OFF |
371 |
- -DLLVM_ENABLE_TERMINFO=OFF |
372 |
- -DHAVE_HISTEDIT_H=NO |
373 |
- -DLLVM_ENABLE_ASSERTIONS=$(usex debug) |
374 |
- -DLLVM_ENABLE_EH=ON |
375 |
- -DLLVM_ENABLE_RTTI=ON |
376 |
- |
377 |
- -DLLVM_HOST_TRIPLE="${CHOST}" |
378 |
- |
379 |
- -DPython3_EXECUTABLE="${PYTHON}" |
380 |
- |
381 |
- # disable go bindings |
382 |
- -DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND |
383 |
- |
384 |
- # TODO: ocamldoc |
385 |
- ) |
386 |
- |
387 |
- use test && mycmakeargs+=( |
388 |
- -DLLVM_LIT_ARGS="$(get_lit_flags)" |
389 |
- ) |
390 |
- |
391 |
- # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
392 |
- # also: custom rules for OCaml do not work for CPPFLAGS |
393 |
- use debug || local -x CFLAGS="${CFLAGS} -DNDEBUG" |
394 |
- cmake_src_configure |
395 |
- |
396 |
- local llvm_libdir=$(llvm-config --libdir) |
397 |
- # an ugly hack; TODO: figure out a way to pass -L to ocaml... |
398 |
- cd "${BUILD_DIR}/${libdir}" || die |
399 |
- ln -s "${llvm_libdir}"/*.so . || die |
400 |
- |
401 |
- if use test; then |
402 |
- local llvm_bindir=$(llvm-config --bindir) |
403 |
- # Force using system-installed tools. |
404 |
- sed -i -e "/llvm_tools_dir/s@\".*\"@\"${llvm_bindir}\"@" \ |
405 |
- "${BUILD_DIR}"/test/lit.site.cfg.py || die |
406 |
- fi |
407 |
-} |
408 |
- |
409 |
-src_compile() { |
410 |
- cmake_build ocaml_all |
411 |
-} |
412 |
- |
413 |
-src_test() { |
414 |
- # respect TMPDIR! |
415 |
- local -x LIT_PRESERVES_TMP=1 |
416 |
- cmake_build check-llvm-bindings-ocaml |
417 |
-} |
418 |
- |
419 |
-src_install() { |
420 |
- DESTDIR="${D}" \ |
421 |
- cmake -P "${BUILD_DIR}"/bindings/ocaml/cmake_install.cmake || die |
422 |
- |
423 |
- dodoc bindings/ocaml/README.txt |
424 |
-} |
425 |
|
426 |
diff --git a/dev-ml/llvm-ocaml/llvm-ocaml-12.0.0_rc5.ebuild b/dev-ml/llvm-ocaml/llvm-ocaml-12.0.0_rc5.ebuild |
427 |
deleted file mode 100644 |
428 |
index 3fc4ee845be..00000000000 |
429 |
--- a/dev-ml/llvm-ocaml/llvm-ocaml-12.0.0_rc5.ebuild |
430 |
+++ /dev/null |
431 |
@@ -1,124 +0,0 @@ |
432 |
-# Copyright 1999-2021 Gentoo Authors |
433 |
-# Distributed under the terms of the GNU General Public License v2 |
434 |
- |
435 |
-EAPI=7 |
436 |
- |
437 |
-PYTHON_COMPAT=( python3_{7..9} ) |
438 |
-inherit cmake llvm llvm.org python-any-r1 |
439 |
- |
440 |
-DESCRIPTION="OCaml bindings for LLVM" |
441 |
-HOMEPAGE="https://llvm.org/" |
442 |
- |
443 |
-# Keep in sync with sys-devel/llvm |
444 |
-ALL_LLVM_EXPERIMENTAL_TARGETS=( ARC CSKY VE ) |
445 |
-ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM AVR BPF Hexagon Lanai Mips MSP430 |
446 |
- NVPTX PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore |
447 |
- "${ALL_LLVM_EXPERIMENTAL_TARGETS[@]}" ) |
448 |
-ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" ) |
449 |
- |
450 |
-LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
451 |
-SLOT="0/${PV}" |
452 |
-KEYWORDS="" |
453 |
-IUSE="debug test ${ALL_LLVM_TARGETS[*]}" |
454 |
-REQUIRED_USE="|| ( ${ALL_LLVM_TARGETS[*]} )" |
455 |
-RESTRICT="!test? ( test )" |
456 |
- |
457 |
-RDEPEND=" |
458 |
- >=dev-lang/ocaml-4.00.0:0= |
459 |
- dev-ml/ocaml-ctypes:= |
460 |
- ~sys-devel/llvm-${PV}:=[debug?] |
461 |
- !sys-devel/llvm[ocaml(-)]" |
462 |
-for x in "${ALL_LLVM_TARGETS[@]}"; do |
463 |
- RDEPEND+=" |
464 |
- ${x}? ( ~sys-devel/llvm-${PV}[${x}] )" |
465 |
-done |
466 |
-unset x |
467 |
- |
468 |
-DEPEND="${RDEPEND}" |
469 |
-BDEPEND=" |
470 |
- dev-lang/perl |
471 |
- dev-ml/findlib |
472 |
- >=dev-util/cmake-3.16 |
473 |
- test? ( dev-ml/ounit2 ) |
474 |
- ${PYTHON_DEPS}" |
475 |
- |
476 |
-LLVM_COMPONENTS=( llvm ) |
477 |
-llvm.org_set_globals |
478 |
- |
479 |
-pkg_setup() { |
480 |
- LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup |
481 |
- python-any-r1_pkg_setup |
482 |
-} |
483 |
- |
484 |
-src_configure() { |
485 |
- local libdir=$(get_libdir) |
486 |
- local mycmakeargs=( |
487 |
- -DLLVM_LIBDIR_SUFFIX=${libdir#lib} |
488 |
- |
489 |
- -DBUILD_SHARED_LIBS=OFF |
490 |
- -DLLVM_BUILD_LLVM_DYLIB=ON |
491 |
- -DLLVM_LINK_LLVM_DYLIB=ON |
492 |
- -DLLVM_OCAML_OUT_OF_TREE=ON |
493 |
- |
494 |
- # cheap hack: LLVM combines both anyway, and the only difference |
495 |
- # is that the former list is explicitly verified at cmake time |
496 |
- -DLLVM_TARGETS_TO_BUILD="" |
497 |
- -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}" |
498 |
- -DLLVM_BUILD_TESTS=$(usex test) |
499 |
- |
500 |
- # disable various irrelevant deps and settings |
501 |
- -DLLVM_ENABLE_FFI=OFF |
502 |
- -DLLVM_ENABLE_TERMINFO=OFF |
503 |
- -DHAVE_HISTEDIT_H=NO |
504 |
- -DLLVM_ENABLE_ASSERTIONS=$(usex debug) |
505 |
- -DLLVM_ENABLE_EH=ON |
506 |
- -DLLVM_ENABLE_RTTI=ON |
507 |
- |
508 |
- -DLLVM_HOST_TRIPLE="${CHOST}" |
509 |
- |
510 |
- -DPython3_EXECUTABLE="${PYTHON}" |
511 |
- |
512 |
- # disable go bindings |
513 |
- -DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND |
514 |
- |
515 |
- # TODO: ocamldoc |
516 |
- ) |
517 |
- |
518 |
- use test && mycmakeargs+=( |
519 |
- -DLLVM_LIT_ARGS="$(get_lit_flags)" |
520 |
- ) |
521 |
- |
522 |
- # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
523 |
- # also: custom rules for OCaml do not work for CPPFLAGS |
524 |
- use debug || local -x CFLAGS="${CFLAGS} -DNDEBUG" |
525 |
- cmake_src_configure |
526 |
- |
527 |
- local llvm_libdir=$(llvm-config --libdir) |
528 |
- # an ugly hack; TODO: figure out a way to pass -L to ocaml... |
529 |
- cd "${BUILD_DIR}/${libdir}" || die |
530 |
- ln -s "${llvm_libdir}"/*.so . || die |
531 |
- |
532 |
- if use test; then |
533 |
- local llvm_bindir=$(llvm-config --bindir) |
534 |
- # Force using system-installed tools. |
535 |
- sed -i -e "/llvm_tools_dir/s@\".*\"@\"${llvm_bindir}\"@" \ |
536 |
- "${BUILD_DIR}"/test/lit.site.cfg.py || die |
537 |
- fi |
538 |
-} |
539 |
- |
540 |
-src_compile() { |
541 |
- cmake_build ocaml_all |
542 |
-} |
543 |
- |
544 |
-src_test() { |
545 |
- # respect TMPDIR! |
546 |
- local -x LIT_PRESERVES_TMP=1 |
547 |
- cmake_build check-llvm-bindings-ocaml |
548 |
-} |
549 |
- |
550 |
-src_install() { |
551 |
- DESTDIR="${D}" \ |
552 |
- cmake -P "${BUILD_DIR}"/bindings/ocaml/cmake_install.cmake || die |
553 |
- |
554 |
- dodoc bindings/ocaml/README.txt |
555 |
-} |