1 |
commit: 0977a8e9b5201533c9ff5907a045e72116ed6627 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 3 15:39:24 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 3 15:44:11 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0977a8e9 |
7 |
|
8 |
dev-ml/llvm-ocaml: Remove 13.0.1.9999 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-ml/llvm-ocaml/llvm-ocaml-13.0.1.9999.ebuild | 112 ------------------------ |
13 |
1 file changed, 112 deletions(-) |
14 |
|
15 |
diff --git a/dev-ml/llvm-ocaml/llvm-ocaml-13.0.1.9999.ebuild b/dev-ml/llvm-ocaml/llvm-ocaml-13.0.1.9999.ebuild |
16 |
deleted file mode 100644 |
17 |
index d0039fc6ae95..000000000000 |
18 |
--- a/dev-ml/llvm-ocaml/llvm-ocaml-13.0.1.9999.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,112 +0,0 @@ |
21 |
-# Copyright 1999-2021 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=7 |
25 |
- |
26 |
-PYTHON_COMPAT=( python3_{8..10} ) |
27 |
-inherit cmake llvm llvm.org python-any-r1 |
28 |
- |
29 |
-DESCRIPTION="OCaml bindings for LLVM" |
30 |
-HOMEPAGE="https://llvm.org/" |
31 |
- |
32 |
-LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
33 |
-SLOT="0/${PV}" |
34 |
-KEYWORDS="" |
35 |
-IUSE="debug test" |
36 |
-RESTRICT="!test? ( test )" |
37 |
- |
38 |
-RDEPEND=" |
39 |
- >=dev-lang/ocaml-4.00.0:0= |
40 |
- dev-ml/ocaml-ctypes:= |
41 |
- ~sys-devel/llvm-${PV}:=[debug?] |
42 |
- !sys-devel/llvm[ocaml(-)]" |
43 |
- |
44 |
-DEPEND="${RDEPEND}" |
45 |
-BDEPEND=" |
46 |
- dev-lang/perl |
47 |
- dev-ml/findlib |
48 |
- >=dev-util/cmake-3.16 |
49 |
- test? ( dev-ml/ounit2 ) |
50 |
- ${PYTHON_DEPS}" |
51 |
- |
52 |
-LLVM_COMPONENTS=( llvm ) |
53 |
-LLVM_USE_TARGETS=llvm |
54 |
-llvm.org_set_globals |
55 |
- |
56 |
-pkg_setup() { |
57 |
- LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup |
58 |
- python-any-r1_pkg_setup |
59 |
-} |
60 |
- |
61 |
-src_configure() { |
62 |
- local libdir=$(get_libdir) |
63 |
- local mycmakeargs=( |
64 |
- -DLLVM_LIBDIR_SUFFIX=${libdir#lib} |
65 |
- |
66 |
- -DBUILD_SHARED_LIBS=OFF |
67 |
- -DLLVM_BUILD_LLVM_DYLIB=ON |
68 |
- -DLLVM_LINK_LLVM_DYLIB=ON |
69 |
- -DLLVM_OCAML_OUT_OF_TREE=ON |
70 |
- |
71 |
- # cheap hack: LLVM combines both anyway, and the only difference |
72 |
- # is that the former list is explicitly verified at cmake time |
73 |
- -DLLVM_TARGETS_TO_BUILD="" |
74 |
- -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}" |
75 |
- -DLLVM_BUILD_TESTS=$(usex test) |
76 |
- |
77 |
- # disable various irrelevant deps and settings |
78 |
- -DLLVM_ENABLE_FFI=OFF |
79 |
- -DLLVM_ENABLE_TERMINFO=OFF |
80 |
- -DHAVE_HISTEDIT_H=NO |
81 |
- -DLLVM_ENABLE_ASSERTIONS=$(usex debug) |
82 |
- -DLLVM_ENABLE_EH=ON |
83 |
- -DLLVM_ENABLE_RTTI=ON |
84 |
- |
85 |
- -DLLVM_HOST_TRIPLE="${CHOST}" |
86 |
- |
87 |
- -DPython3_EXECUTABLE="${PYTHON}" |
88 |
- |
89 |
- # disable go bindings |
90 |
- -DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND |
91 |
- |
92 |
- # TODO: ocamldoc |
93 |
- ) |
94 |
- |
95 |
- use test && mycmakeargs+=( |
96 |
- -DLLVM_LIT_ARGS="$(get_lit_flags)" |
97 |
- ) |
98 |
- |
99 |
- # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
100 |
- # also: custom rules for OCaml do not work for CPPFLAGS |
101 |
- use debug || local -x CFLAGS="${CFLAGS} -DNDEBUG" |
102 |
- cmake_src_configure |
103 |
- |
104 |
- local llvm_libdir=$(llvm-config --libdir) |
105 |
- # an ugly hack; TODO: figure out a way to pass -L to ocaml... |
106 |
- cd "${BUILD_DIR}/${libdir}" || die |
107 |
- ln -s "${llvm_libdir}"/*.so . || die |
108 |
- |
109 |
- if use test; then |
110 |
- local llvm_bindir=$(llvm-config --bindir) |
111 |
- # Force using system-installed tools. |
112 |
- sed -i -e "/llvm_tools_dir/s@\".*\"@\"${llvm_bindir}\"@" \ |
113 |
- "${BUILD_DIR}"/test/lit.site.cfg.py || die |
114 |
- fi |
115 |
-} |
116 |
- |
117 |
-src_compile() { |
118 |
- cmake_build ocaml_all |
119 |
-} |
120 |
- |
121 |
-src_test() { |
122 |
- # respect TMPDIR! |
123 |
- local -x LIT_PRESERVES_TMP=1 |
124 |
- cmake_build check-llvm-bindings-ocaml |
125 |
-} |
126 |
- |
127 |
-src_install() { |
128 |
- DESTDIR="${D}" \ |
129 |
- cmake -P "${BUILD_DIR}"/bindings/ocaml/cmake_install.cmake || die |
130 |
- |
131 |
- dodoc bindings/ocaml/README.txt |
132 |
-} |