1 |
commit: 9edd57ded119245f919807c3860df878e35c0d02 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 8 11:04:27 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 8 11:25:35 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9edd57de |
7 |
|
8 |
dev-ml/llvm-ocaml: Remove 10* |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-ml/llvm-ocaml/Manifest | 1 - |
13 |
dev-ml/llvm-ocaml/llvm-ocaml-10.0.1.ebuild | 120 ----------------------------- |
14 |
2 files changed, 121 deletions(-) |
15 |
|
16 |
diff --git a/dev-ml/llvm-ocaml/Manifest b/dev-ml/llvm-ocaml/Manifest |
17 |
index 10303759a73..826997b3c68 100644 |
18 |
--- a/dev-ml/llvm-ocaml/Manifest |
19 |
+++ b/dev-ml/llvm-ocaml/Manifest |
20 |
@@ -1,4 +1,3 @@ |
21 |
-DIST llvmorg-10.0.1.tar.gz 120880730 BLAKE2B 30f19f56c4d1f6abcda5fec76256219d1e3c8a6ff1a1f152f94bfe362c07884339fe571ff7fe903ed3b3deb150b2fa868c387887a0dea2930dc08b81db71a5b1 SHA512 48078fff9293a87f1a973f3348f79506f04c3da774295f5eb67d74dd2d1aa94f0973f8ced3f4ab9e8339902071f82c603b43d5608ad7227046c4da769c5d2151 |
22 |
DIST llvmorg-11.1.0.tar.gz 122776532 BLAKE2B ca842ff4afff8f44c82b5e7383962a9c45ca1c93b64fa4c6ebcd70a1d3849dbad2b8e4e24fba02d144c6266d7fab3607ebc6999b28c229cb35256cf40f26a985 SHA512 9a8ce022a935eed42fa71a224f2a207122aadcbef58ee855fdb4825f879e7d028e4dcff22c19b9d336db1c8bf63fb84372d44981acf84615f757e54306c92b81 |
23 |
DIST llvmorg-12.0.1.tar.gz 134259748 BLAKE2B f41de787bc73ff2edfda1b22cc8602be6f65f37dd9e4c8888533cfa8c3ccdcf4f108aaab9de23ab0ab987966eb160f2a553a0bdff99461e71ddd5bfcd086090d SHA512 6eb0dc18e2c25935fabfdfc48b0114be0939158dfdef7b85b395fe2e71042672446af0e68750aae003c9847d10d1f63316fe95d3df738d18f249174292b1b9e1 |
24 |
DIST llvmorg-13.0.0.tar.gz 147270176 BLAKE2B 628f316b580e1edf3a58d4825b724df759e6ed2a4116802470c04562caefc392fa325c91f388036365a2e45a9595cca6d3557fab12984fc8bcfef29c9116d822 SHA512 8004c05d32b9720fb3391783621690c1df9bd1e97e72cbff9192ed88a84b0acd303b61432145fa917b5b5e548c8cee29b24ef8547dcc8677adf4816e7a8a0eb2 |
25 |
|
26 |
diff --git a/dev-ml/llvm-ocaml/llvm-ocaml-10.0.1.ebuild b/dev-ml/llvm-ocaml/llvm-ocaml-10.0.1.ebuild |
27 |
deleted file mode 100644 |
28 |
index f4a1d0ea6f6..00000000000 |
29 |
--- a/dev-ml/llvm-ocaml/llvm-ocaml-10.0.1.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,120 +0,0 @@ |
32 |
-# Copyright 1999-2021 Gentoo Authors |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
- |
35 |
-EAPI=7 |
36 |
- |
37 |
-PYTHON_COMPAT=( python3_{7..9} ) |
38 |
-inherit cmake llvm llvm.org python-any-r1 |
39 |
- |
40 |
-DESCRIPTION="OCaml bindings for LLVM" |
41 |
-HOMEPAGE="https://llvm.org/" |
42 |
-LLVM_COMPONENTS=( llvm ) |
43 |
-llvm.org_set_globals |
44 |
- |
45 |
-# Keep in sync with sys-devel/llvm |
46 |
-ALL_LLVM_EXPERIMENTAL_TARGETS=( ARC AVR ) |
47 |
-ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430 |
48 |
- NVPTX PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore |
49 |
- "${ALL_LLVM_EXPERIMENTAL_TARGETS[@]}" ) |
50 |
-ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" ) |
51 |
- |
52 |
-LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
53 |
-SLOT="0/${PV}" |
54 |
-KEYWORDS="~amd64 ~arm ~x86" |
55 |
-IUSE="debug test ${ALL_LLVM_TARGETS[*]}" |
56 |
-REQUIRED_USE="|| ( ${ALL_LLVM_TARGETS[*]} )" |
57 |
-RESTRICT="!test? ( test )" |
58 |
- |
59 |
-RDEPEND=" |
60 |
- >=dev-lang/ocaml-4.00.0:0= |
61 |
- dev-ml/ocaml-ctypes:= |
62 |
- ~sys-devel/llvm-${PV}:=[debug?] |
63 |
- !sys-devel/llvm[ocaml(-)]" |
64 |
-for x in "${ALL_LLVM_TARGETS[@]}"; do |
65 |
- RDEPEND+=" |
66 |
- ${x}? ( ~sys-devel/llvm-${PV}[${x}] )" |
67 |
-done |
68 |
-unset x |
69 |
- |
70 |
-DEPEND="${RDEPEND}" |
71 |
-BDEPEND=" |
72 |
- dev-lang/perl |
73 |
- dev-ml/findlib |
74 |
- test? ( dev-ml/ounit2 ) |
75 |
- ${PYTHON_DEPS}" |
76 |
- |
77 |
-pkg_setup() { |
78 |
- LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup |
79 |
- python-any-r1_pkg_setup |
80 |
-} |
81 |
- |
82 |
-src_configure() { |
83 |
- local libdir=$(get_libdir) |
84 |
- local mycmakeargs=( |
85 |
- -DLLVM_LIBDIR_SUFFIX=${libdir#lib} |
86 |
- |
87 |
- -DBUILD_SHARED_LIBS=OFF |
88 |
- -DLLVM_BUILD_LLVM_DYLIB=ON |
89 |
- -DLLVM_LINK_LLVM_DYLIB=ON |
90 |
- -DLLVM_OCAML_OUT_OF_TREE=ON |
91 |
- |
92 |
- # cheap hack: LLVM combines both anyway, and the only difference |
93 |
- # is that the former list is explicitly verified at cmake time |
94 |
- -DLLVM_TARGETS_TO_BUILD="" |
95 |
- -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}" |
96 |
- -DLLVM_BUILD_TESTS=$(usex test) |
97 |
- |
98 |
- # disable various irrelevant deps and settings |
99 |
- -DLLVM_ENABLE_FFI=OFF |
100 |
- -DLLVM_ENABLE_TERMINFO=OFF |
101 |
- -DHAVE_HISTEDIT_H=NO |
102 |
- -DLLVM_ENABLE_ASSERTIONS=$(usex debug) |
103 |
- -DLLVM_ENABLE_EH=ON |
104 |
- -DLLVM_ENABLE_RTTI=ON |
105 |
- |
106 |
- -DLLVM_HOST_TRIPLE="${CHOST}" |
107 |
- |
108 |
- # disable go bindings |
109 |
- -DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND |
110 |
- |
111 |
- # TODO: ocamldoc |
112 |
- ) |
113 |
- |
114 |
- use test && mycmakeargs+=( |
115 |
- -DLLVM_LIT_ARGS="$(get_lit_flags)" |
116 |
- ) |
117 |
- |
118 |
- # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
119 |
- # also: custom rules for OCaml do not work for CPPFLAGS |
120 |
- use debug || local -x CFLAGS="${CFLAGS} -DNDEBUG" |
121 |
- cmake_src_configure |
122 |
- |
123 |
- local llvm_libdir=$(llvm-config --libdir) |
124 |
- # an ugly hack; TODO: figure out a way to pass -L to ocaml... |
125 |
- cd "${BUILD_DIR}/${libdir}" || die |
126 |
- ln -s "${llvm_libdir}"/*.so . || die |
127 |
- |
128 |
- if use test; then |
129 |
- local llvm_bindir=$(llvm-config --bindir) |
130 |
- # Force using system-installed tools. |
131 |
- sed -i -e "/llvm_tools_dir/s@\".*\"@\"${llvm_bindir}\"@" \ |
132 |
- "${BUILD_DIR}"/test/lit.site.cfg.py || die |
133 |
- fi |
134 |
-} |
135 |
- |
136 |
-src_compile() { |
137 |
- cmake_build ocaml_all |
138 |
-} |
139 |
- |
140 |
-src_test() { |
141 |
- # respect TMPDIR! |
142 |
- local -x LIT_PRESERVES_TMP=1 |
143 |
- cmake_build check-llvm-bindings-ocaml |
144 |
-} |
145 |
- |
146 |
-src_install() { |
147 |
- DESTDIR="${D}" \ |
148 |
- cmake -P "${BUILD_DIR}"/bindings/ocaml/cmake_install.cmake || die |
149 |
- |
150 |
- dodoc bindings/ocaml/README.txt |
151 |
-} |