1 |
commit: f32d8824d65763f6c62601106ccf5d1b7715e786 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 6 17:18:43 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 6 21:23:32 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f32d8824 |
7 |
|
8 |
dev-ml/llvm-ocaml: Remove 11.0.1 RCs and live |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-ml/llvm-ocaml/Manifest | 2 - |
13 |
dev-ml/llvm-ocaml/llvm-ocaml-11.0.1.9999.ebuild | 124 ------------------------ |
14 |
dev-ml/llvm-ocaml/llvm-ocaml-11.0.1_rc1.ebuild | 124 ------------------------ |
15 |
dev-ml/llvm-ocaml/llvm-ocaml-11.0.1_rc2.ebuild | 124 ------------------------ |
16 |
4 files changed, 374 deletions(-) |
17 |
|
18 |
diff --git a/dev-ml/llvm-ocaml/Manifest b/dev-ml/llvm-ocaml/Manifest |
19 |
index 29b0efe3c21..47a7ff9f78f 100644 |
20 |
--- a/dev-ml/llvm-ocaml/Manifest |
21 |
+++ b/dev-ml/llvm-ocaml/Manifest |
22 |
@@ -1,6 +1,4 @@ |
23 |
DIST llvmorg-10.0.1.tar.gz 120880730 BLAKE2B 30f19f56c4d1f6abcda5fec76256219d1e3c8a6ff1a1f152f94bfe362c07884339fe571ff7fe903ed3b3deb150b2fa868c387887a0dea2930dc08b81db71a5b1 SHA512 48078fff9293a87f1a973f3348f79506f04c3da774295f5eb67d74dd2d1aa94f0973f8ced3f4ab9e8339902071f82c603b43d5608ad7227046c4da769c5d2151 |
24 |
DIST llvmorg-11.0.0.tar.gz 122743665 BLAKE2B 3f95570240789fd68ddb747df817f5c6cdc9da40911bbe9ee3531c15ada9165e5002b1c2f778cf8735858485ea05a8754e3d3a5f4b15bdd6cb33d64a14692984 SHA512 b6d38871ccce0e086e27d35e42887618d68e57d8274735c59e3eabc42dee352412489296293f8d5169fe0044936345915ee7da61ebdc64ec10f7737f6ecd90f2 |
25 |
-DIST llvmorg-11.0.1-rc1.tar.gz 122777435 BLAKE2B 23b520d33cf4b641027ee52bb10c6171d60356c9167d5b94012929e6e547c526cda1a6177c295ed19592dfb83b020f63b2cef4cabc70ce9a2a8e098fe654a3cd SHA512 605c7bbff1610f335be8ea4f1204df797fed21185a54c77565f6ff2d00794d1967e9c5fab7c87633e242f2f999bdffb76da83f756d261c1ca476114599409ae1 |
26 |
-DIST llvmorg-11.0.1-rc2.tar.gz 122793330 BLAKE2B 5d42f7bd7ba253ac3ca08cf9901c79db5b51b86f0f66c8e63f4f9808ca5fb72cacccfad098b4f6701a34b0d77bdd66fe3839a3962a251eae53776240a2e13b06 SHA512 acda5a5be38cc8aae730c34cd1bb8f29a82e2ed3dd9734ca293ff092d5b30c8c255ab3054245b8f6ed541d5dbf8bc674b744bb2f81788db8826f69a204dda0c3 |
27 |
DIST llvmorg-11.0.1.tar.gz 122790338 BLAKE2B 0130996b4a8c4d9f757136fd7fb318068c9bfdc565060dec0d4336480c4ab66c4ae3185a7fdb05f13cf9ee8fd4123b09df938881b75d6e5d3689595114b7e32a SHA512 f5e6ef0b3111aae08a89cd01adb2ff4abfa9ef779c68b9190421d0447efd25c2cc00e5aae9f4764805f5fa31434866043d1510ae7389817e28ae53a5442e2fdf |
28 |
DIST llvmorg-9.0.1.tar.gz 113193320 BLAKE2B b86e405f2b8e00436045fd409fe19cdde75c797b1192c62a22b5ec75e6b4dc8e874a0f33008dc31562445e4cbe53a992b6f48c684255a6a1ef261e595b8b161f SHA512 fa88beeaae94b6d0cd9b5ba38658d0ffed8004035d7d8a4f95c3d31a709b88b581ae9bd7761333c8e5375c44b8f6be01768b5a3be901163159d7e6c43b71da59 |
29 |
|
30 |
diff --git a/dev-ml/llvm-ocaml/llvm-ocaml-11.0.1.9999.ebuild b/dev-ml/llvm-ocaml/llvm-ocaml-11.0.1.9999.ebuild |
31 |
deleted file mode 100644 |
32 |
index 40fb0676b74..00000000000 |
33 |
--- a/dev-ml/llvm-ocaml/llvm-ocaml-11.0.1.9999.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,124 +0,0 @@ |
36 |
-# Copyright 1999-2020 Gentoo Authors |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI=7 |
40 |
- |
41 |
-PYTHON_COMPAT=( python3_{6..9} ) |
42 |
-inherit cmake llvm llvm.org python-any-r1 |
43 |
- |
44 |
-DESCRIPTION="OCaml bindings for LLVM" |
45 |
-HOMEPAGE="https://llvm.org/" |
46 |
- |
47 |
-# Keep in sync with sys-devel/llvm |
48 |
-ALL_LLVM_EXPERIMENTAL_TARGETS=( ARC VE ) |
49 |
-ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM AVR BPF Hexagon Lanai Mips MSP430 |
50 |
- NVPTX PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore |
51 |
- "${ALL_LLVM_EXPERIMENTAL_TARGETS[@]}" ) |
52 |
-ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" ) |
53 |
- |
54 |
-LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
55 |
-SLOT="0/${PV}" |
56 |
-KEYWORDS="" |
57 |
-IUSE="debug test ${ALL_LLVM_TARGETS[*]}" |
58 |
-REQUIRED_USE="|| ( ${ALL_LLVM_TARGETS[*]} )" |
59 |
-RESTRICT="!test? ( test )" |
60 |
- |
61 |
-RDEPEND=" |
62 |
- >=dev-lang/ocaml-4.00.0:0= |
63 |
- dev-ml/ocaml-ctypes:= |
64 |
- ~sys-devel/llvm-${PV}:=[debug?] |
65 |
- !sys-devel/llvm[ocaml(-)]" |
66 |
-for x in "${ALL_LLVM_TARGETS[@]}"; do |
67 |
- RDEPEND+=" |
68 |
- ${x}? ( ~sys-devel/llvm-${PV}[${x}] )" |
69 |
-done |
70 |
-unset x |
71 |
- |
72 |
-DEPEND="${RDEPEND}" |
73 |
-BDEPEND=" |
74 |
- dev-lang/perl |
75 |
- dev-ml/findlib |
76 |
- >=dev-util/cmake-3.16 |
77 |
- test? ( dev-ml/ounit ) |
78 |
- ${PYTHON_DEPS}" |
79 |
- |
80 |
-LLVM_COMPONENTS=( llvm ) |
81 |
-llvm.org_set_globals |
82 |
- |
83 |
-pkg_setup() { |
84 |
- LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup |
85 |
- python-any-r1_pkg_setup |
86 |
-} |
87 |
- |
88 |
-src_configure() { |
89 |
- local libdir=$(get_libdir) |
90 |
- local mycmakeargs=( |
91 |
- -DLLVM_LIBDIR_SUFFIX=${libdir#lib} |
92 |
- |
93 |
- -DBUILD_SHARED_LIBS=OFF |
94 |
- -DLLVM_BUILD_LLVM_DYLIB=ON |
95 |
- -DLLVM_LINK_LLVM_DYLIB=ON |
96 |
- -DLLVM_OCAML_OUT_OF_TREE=ON |
97 |
- |
98 |
- # cheap hack: LLVM combines both anyway, and the only difference |
99 |
- # is that the former list is explicitly verified at cmake time |
100 |
- -DLLVM_TARGETS_TO_BUILD="" |
101 |
- -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}" |
102 |
- -DLLVM_BUILD_TESTS=$(usex test) |
103 |
- |
104 |
- # disable various irrelevant deps and settings |
105 |
- -DLLVM_ENABLE_FFI=OFF |
106 |
- -DLLVM_ENABLE_TERMINFO=OFF |
107 |
- -DHAVE_HISTEDIT_H=NO |
108 |
- -DLLVM_ENABLE_ASSERTIONS=$(usex debug) |
109 |
- -DLLVM_ENABLE_EH=ON |
110 |
- -DLLVM_ENABLE_RTTI=ON |
111 |
- |
112 |
- -DLLVM_HOST_TRIPLE="${CHOST}" |
113 |
- |
114 |
- -DPython3_EXECUTABLE="${PYTHON}" |
115 |
- |
116 |
- # disable go bindings |
117 |
- -DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND |
118 |
- |
119 |
- # TODO: ocamldoc |
120 |
- ) |
121 |
- |
122 |
- use test && mycmakeargs+=( |
123 |
- -DLLVM_LIT_ARGS="$(get_lit_flags)" |
124 |
- ) |
125 |
- |
126 |
- # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
127 |
- # also: custom rules for OCaml do not work for CPPFLAGS |
128 |
- use debug || local -x CFLAGS="${CFLAGS} -DNDEBUG" |
129 |
- cmake_src_configure |
130 |
- |
131 |
- local llvm_libdir=$(llvm-config --libdir) |
132 |
- # an ugly hack; TODO: figure out a way to pass -L to ocaml... |
133 |
- cd "${BUILD_DIR}/${libdir}" || die |
134 |
- ln -s "${llvm_libdir}"/*.so . || die |
135 |
- |
136 |
- if use test; then |
137 |
- local llvm_bindir=$(llvm-config --bindir) |
138 |
- # Force using system-installed tools. |
139 |
- sed -i -e "/llvm_tools_dir/s@\".*\"@\"${llvm_bindir}\"@" \ |
140 |
- "${BUILD_DIR}"/test/lit.site.cfg.py || die |
141 |
- fi |
142 |
-} |
143 |
- |
144 |
-src_compile() { |
145 |
- cmake_build ocaml_all |
146 |
-} |
147 |
- |
148 |
-src_test() { |
149 |
- # respect TMPDIR! |
150 |
- local -x LIT_PRESERVES_TMP=1 |
151 |
- cmake_build check-llvm-bindings-ocaml |
152 |
-} |
153 |
- |
154 |
-src_install() { |
155 |
- DESTDIR="${D}" \ |
156 |
- cmake -P "${BUILD_DIR}"/bindings/ocaml/cmake_install.cmake || die |
157 |
- |
158 |
- dodoc bindings/ocaml/README.txt |
159 |
-} |
160 |
|
161 |
diff --git a/dev-ml/llvm-ocaml/llvm-ocaml-11.0.1_rc1.ebuild b/dev-ml/llvm-ocaml/llvm-ocaml-11.0.1_rc1.ebuild |
162 |
deleted file mode 100644 |
163 |
index 40fb0676b74..00000000000 |
164 |
--- a/dev-ml/llvm-ocaml/llvm-ocaml-11.0.1_rc1.ebuild |
165 |
+++ /dev/null |
166 |
@@ -1,124 +0,0 @@ |
167 |
-# Copyright 1999-2020 Gentoo Authors |
168 |
-# Distributed under the terms of the GNU General Public License v2 |
169 |
- |
170 |
-EAPI=7 |
171 |
- |
172 |
-PYTHON_COMPAT=( python3_{6..9} ) |
173 |
-inherit cmake llvm llvm.org python-any-r1 |
174 |
- |
175 |
-DESCRIPTION="OCaml bindings for LLVM" |
176 |
-HOMEPAGE="https://llvm.org/" |
177 |
- |
178 |
-# Keep in sync with sys-devel/llvm |
179 |
-ALL_LLVM_EXPERIMENTAL_TARGETS=( ARC VE ) |
180 |
-ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM AVR BPF Hexagon Lanai Mips MSP430 |
181 |
- NVPTX PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore |
182 |
- "${ALL_LLVM_EXPERIMENTAL_TARGETS[@]}" ) |
183 |
-ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" ) |
184 |
- |
185 |
-LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
186 |
-SLOT="0/${PV}" |
187 |
-KEYWORDS="" |
188 |
-IUSE="debug test ${ALL_LLVM_TARGETS[*]}" |
189 |
-REQUIRED_USE="|| ( ${ALL_LLVM_TARGETS[*]} )" |
190 |
-RESTRICT="!test? ( test )" |
191 |
- |
192 |
-RDEPEND=" |
193 |
- >=dev-lang/ocaml-4.00.0:0= |
194 |
- dev-ml/ocaml-ctypes:= |
195 |
- ~sys-devel/llvm-${PV}:=[debug?] |
196 |
- !sys-devel/llvm[ocaml(-)]" |
197 |
-for x in "${ALL_LLVM_TARGETS[@]}"; do |
198 |
- RDEPEND+=" |
199 |
- ${x}? ( ~sys-devel/llvm-${PV}[${x}] )" |
200 |
-done |
201 |
-unset x |
202 |
- |
203 |
-DEPEND="${RDEPEND}" |
204 |
-BDEPEND=" |
205 |
- dev-lang/perl |
206 |
- dev-ml/findlib |
207 |
- >=dev-util/cmake-3.16 |
208 |
- test? ( dev-ml/ounit ) |
209 |
- ${PYTHON_DEPS}" |
210 |
- |
211 |
-LLVM_COMPONENTS=( llvm ) |
212 |
-llvm.org_set_globals |
213 |
- |
214 |
-pkg_setup() { |
215 |
- LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup |
216 |
- python-any-r1_pkg_setup |
217 |
-} |
218 |
- |
219 |
-src_configure() { |
220 |
- local libdir=$(get_libdir) |
221 |
- local mycmakeargs=( |
222 |
- -DLLVM_LIBDIR_SUFFIX=${libdir#lib} |
223 |
- |
224 |
- -DBUILD_SHARED_LIBS=OFF |
225 |
- -DLLVM_BUILD_LLVM_DYLIB=ON |
226 |
- -DLLVM_LINK_LLVM_DYLIB=ON |
227 |
- -DLLVM_OCAML_OUT_OF_TREE=ON |
228 |
- |
229 |
- # cheap hack: LLVM combines both anyway, and the only difference |
230 |
- # is that the former list is explicitly verified at cmake time |
231 |
- -DLLVM_TARGETS_TO_BUILD="" |
232 |
- -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}" |
233 |
- -DLLVM_BUILD_TESTS=$(usex test) |
234 |
- |
235 |
- # disable various irrelevant deps and settings |
236 |
- -DLLVM_ENABLE_FFI=OFF |
237 |
- -DLLVM_ENABLE_TERMINFO=OFF |
238 |
- -DHAVE_HISTEDIT_H=NO |
239 |
- -DLLVM_ENABLE_ASSERTIONS=$(usex debug) |
240 |
- -DLLVM_ENABLE_EH=ON |
241 |
- -DLLVM_ENABLE_RTTI=ON |
242 |
- |
243 |
- -DLLVM_HOST_TRIPLE="${CHOST}" |
244 |
- |
245 |
- -DPython3_EXECUTABLE="${PYTHON}" |
246 |
- |
247 |
- # disable go bindings |
248 |
- -DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND |
249 |
- |
250 |
- # TODO: ocamldoc |
251 |
- ) |
252 |
- |
253 |
- use test && mycmakeargs+=( |
254 |
- -DLLVM_LIT_ARGS="$(get_lit_flags)" |
255 |
- ) |
256 |
- |
257 |
- # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
258 |
- # also: custom rules for OCaml do not work for CPPFLAGS |
259 |
- use debug || local -x CFLAGS="${CFLAGS} -DNDEBUG" |
260 |
- cmake_src_configure |
261 |
- |
262 |
- local llvm_libdir=$(llvm-config --libdir) |
263 |
- # an ugly hack; TODO: figure out a way to pass -L to ocaml... |
264 |
- cd "${BUILD_DIR}/${libdir}" || die |
265 |
- ln -s "${llvm_libdir}"/*.so . || die |
266 |
- |
267 |
- if use test; then |
268 |
- local llvm_bindir=$(llvm-config --bindir) |
269 |
- # Force using system-installed tools. |
270 |
- sed -i -e "/llvm_tools_dir/s@\".*\"@\"${llvm_bindir}\"@" \ |
271 |
- "${BUILD_DIR}"/test/lit.site.cfg.py || die |
272 |
- fi |
273 |
-} |
274 |
- |
275 |
-src_compile() { |
276 |
- cmake_build ocaml_all |
277 |
-} |
278 |
- |
279 |
-src_test() { |
280 |
- # respect TMPDIR! |
281 |
- local -x LIT_PRESERVES_TMP=1 |
282 |
- cmake_build check-llvm-bindings-ocaml |
283 |
-} |
284 |
- |
285 |
-src_install() { |
286 |
- DESTDIR="${D}" \ |
287 |
- cmake -P "${BUILD_DIR}"/bindings/ocaml/cmake_install.cmake || die |
288 |
- |
289 |
- dodoc bindings/ocaml/README.txt |
290 |
-} |
291 |
|
292 |
diff --git a/dev-ml/llvm-ocaml/llvm-ocaml-11.0.1_rc2.ebuild b/dev-ml/llvm-ocaml/llvm-ocaml-11.0.1_rc2.ebuild |
293 |
deleted file mode 100644 |
294 |
index 40fb0676b74..00000000000 |
295 |
--- a/dev-ml/llvm-ocaml/llvm-ocaml-11.0.1_rc2.ebuild |
296 |
+++ /dev/null |
297 |
@@ -1,124 +0,0 @@ |
298 |
-# Copyright 1999-2020 Gentoo Authors |
299 |
-# Distributed under the terms of the GNU General Public License v2 |
300 |
- |
301 |
-EAPI=7 |
302 |
- |
303 |
-PYTHON_COMPAT=( python3_{6..9} ) |
304 |
-inherit cmake llvm llvm.org python-any-r1 |
305 |
- |
306 |
-DESCRIPTION="OCaml bindings for LLVM" |
307 |
-HOMEPAGE="https://llvm.org/" |
308 |
- |
309 |
-# Keep in sync with sys-devel/llvm |
310 |
-ALL_LLVM_EXPERIMENTAL_TARGETS=( ARC VE ) |
311 |
-ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM AVR BPF Hexagon Lanai Mips MSP430 |
312 |
- NVPTX PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore |
313 |
- "${ALL_LLVM_EXPERIMENTAL_TARGETS[@]}" ) |
314 |
-ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" ) |
315 |
- |
316 |
-LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
317 |
-SLOT="0/${PV}" |
318 |
-KEYWORDS="" |
319 |
-IUSE="debug test ${ALL_LLVM_TARGETS[*]}" |
320 |
-REQUIRED_USE="|| ( ${ALL_LLVM_TARGETS[*]} )" |
321 |
-RESTRICT="!test? ( test )" |
322 |
- |
323 |
-RDEPEND=" |
324 |
- >=dev-lang/ocaml-4.00.0:0= |
325 |
- dev-ml/ocaml-ctypes:= |
326 |
- ~sys-devel/llvm-${PV}:=[debug?] |
327 |
- !sys-devel/llvm[ocaml(-)]" |
328 |
-for x in "${ALL_LLVM_TARGETS[@]}"; do |
329 |
- RDEPEND+=" |
330 |
- ${x}? ( ~sys-devel/llvm-${PV}[${x}] )" |
331 |
-done |
332 |
-unset x |
333 |
- |
334 |
-DEPEND="${RDEPEND}" |
335 |
-BDEPEND=" |
336 |
- dev-lang/perl |
337 |
- dev-ml/findlib |
338 |
- >=dev-util/cmake-3.16 |
339 |
- test? ( dev-ml/ounit ) |
340 |
- ${PYTHON_DEPS}" |
341 |
- |
342 |
-LLVM_COMPONENTS=( llvm ) |
343 |
-llvm.org_set_globals |
344 |
- |
345 |
-pkg_setup() { |
346 |
- LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup |
347 |
- python-any-r1_pkg_setup |
348 |
-} |
349 |
- |
350 |
-src_configure() { |
351 |
- local libdir=$(get_libdir) |
352 |
- local mycmakeargs=( |
353 |
- -DLLVM_LIBDIR_SUFFIX=${libdir#lib} |
354 |
- |
355 |
- -DBUILD_SHARED_LIBS=OFF |
356 |
- -DLLVM_BUILD_LLVM_DYLIB=ON |
357 |
- -DLLVM_LINK_LLVM_DYLIB=ON |
358 |
- -DLLVM_OCAML_OUT_OF_TREE=ON |
359 |
- |
360 |
- # cheap hack: LLVM combines both anyway, and the only difference |
361 |
- # is that the former list is explicitly verified at cmake time |
362 |
- -DLLVM_TARGETS_TO_BUILD="" |
363 |
- -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}" |
364 |
- -DLLVM_BUILD_TESTS=$(usex test) |
365 |
- |
366 |
- # disable various irrelevant deps and settings |
367 |
- -DLLVM_ENABLE_FFI=OFF |
368 |
- -DLLVM_ENABLE_TERMINFO=OFF |
369 |
- -DHAVE_HISTEDIT_H=NO |
370 |
- -DLLVM_ENABLE_ASSERTIONS=$(usex debug) |
371 |
- -DLLVM_ENABLE_EH=ON |
372 |
- -DLLVM_ENABLE_RTTI=ON |
373 |
- |
374 |
- -DLLVM_HOST_TRIPLE="${CHOST}" |
375 |
- |
376 |
- -DPython3_EXECUTABLE="${PYTHON}" |
377 |
- |
378 |
- # disable go bindings |
379 |
- -DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND |
380 |
- |
381 |
- # TODO: ocamldoc |
382 |
- ) |
383 |
- |
384 |
- use test && mycmakeargs+=( |
385 |
- -DLLVM_LIT_ARGS="$(get_lit_flags)" |
386 |
- ) |
387 |
- |
388 |
- # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
389 |
- # also: custom rules for OCaml do not work for CPPFLAGS |
390 |
- use debug || local -x CFLAGS="${CFLAGS} -DNDEBUG" |
391 |
- cmake_src_configure |
392 |
- |
393 |
- local llvm_libdir=$(llvm-config --libdir) |
394 |
- # an ugly hack; TODO: figure out a way to pass -L to ocaml... |
395 |
- cd "${BUILD_DIR}/${libdir}" || die |
396 |
- ln -s "${llvm_libdir}"/*.so . || die |
397 |
- |
398 |
- if use test; then |
399 |
- local llvm_bindir=$(llvm-config --bindir) |
400 |
- # Force using system-installed tools. |
401 |
- sed -i -e "/llvm_tools_dir/s@\".*\"@\"${llvm_bindir}\"@" \ |
402 |
- "${BUILD_DIR}"/test/lit.site.cfg.py || die |
403 |
- fi |
404 |
-} |
405 |
- |
406 |
-src_compile() { |
407 |
- cmake_build ocaml_all |
408 |
-} |
409 |
- |
410 |
-src_test() { |
411 |
- # respect TMPDIR! |
412 |
- local -x LIT_PRESERVES_TMP=1 |
413 |
- cmake_build check-llvm-bindings-ocaml |
414 |
-} |
415 |
- |
416 |
-src_install() { |
417 |
- DESTDIR="${D}" \ |
418 |
- cmake -P "${BUILD_DIR}"/bindings/ocaml/cmake_install.cmake || die |
419 |
- |
420 |
- dodoc bindings/ocaml/README.txt |
421 |
-} |