1 |
commit: 6d247a5cd6dee3469c600e0664a17018491dcc96 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 1 08:47:00 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 1 08:53:55 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d247a5c |
7 |
|
8 |
dev-ml/llvm-ocaml: Remove 7* |
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-7.1.0.ebuild | 124 ------------------------------ |
14 |
2 files changed, 125 deletions(-) |
15 |
|
16 |
diff --git a/dev-ml/llvm-ocaml/Manifest b/dev-ml/llvm-ocaml/Manifest |
17 |
index 0558dee8dd4..3bbac77b501 100644 |
18 |
--- a/dev-ml/llvm-ocaml/Manifest |
19 |
+++ b/dev-ml/llvm-ocaml/Manifest |
20 |
@@ -1,4 +1,3 @@ |
21 |
-DIST llvm-7.1.0.src.tar.xz 28313784 BLAKE2B b78d9a7fc5ef6e352e77d339e5c4eef5ccedf67c05e7abd949e72619aa8a5ed65e7e5e2008354be8e7916d75581719b99f34227838fcc86c5d0080913c2fb22c SHA512 a7dbd5693d1f2dae6b6e52893a100f9349cbfcfb25c5fdcad46364acbff0dbd3573f8fbc026c68eb9fd56335198aa94b866cc3dd7ea0cbd2cbfb5f8fe3444a7a |
22 |
DIST llvm-8.0.1.src.tar.xz 30477608 BLAKE2B 4319c837b36111401e3b0f9659b8d875c89463bcc7816df1aefe1e3ff989860bbaa92504718f8e15416cfd9f3491c13777cd5cb661877b237b342b0e515b93f5 SHA512 82e120be5cabdfd5111aebbea68a663fe229c8861d73802d6ab09a3bf48f60de333e07e61f8fb61beaa14ac2bea24fcd74fa6f761acaf62469f536b79fcb1e16 |
23 |
DIST llvmorg-10.0.0.tar.gz 120804856 BLAKE2B 6b0254f5b913398cdcf2b2ec1ff219888706d2b79d5296590934714e42ac79f6a6547941ac2b1d2c4e6313dd18b6c7068e748aa6ac033e49fccbf5d355aa8191 SHA512 baa182d62fef1851836013ae8a1a00861ea89769778d67fb97b407a9de664e6c85da2af9c5b3f75d2bf34ff6b00004e531ca7e4b3115a26c0e61c575cf2303a0 |
24 |
DIST llvmorg-9.0.1.tar.gz 113193320 BLAKE2B b86e405f2b8e00436045fd409fe19cdde75c797b1192c62a22b5ec75e6b4dc8e874a0f33008dc31562445e4cbe53a992b6f48c684255a6a1ef261e595b8b161f SHA512 fa88beeaae94b6d0cd9b5ba38658d0ffed8004035d7d8a4f95c3d31a709b88b581ae9bd7761333c8e5375c44b8f6be01768b5a3be901163159d7e6c43b71da59 |
25 |
|
26 |
diff --git a/dev-ml/llvm-ocaml/llvm-ocaml-7.1.0.ebuild b/dev-ml/llvm-ocaml/llvm-ocaml-7.1.0.ebuild |
27 |
deleted file mode 100644 |
28 |
index a962e2d6f1c..00000000000 |
29 |
--- a/dev-ml/llvm-ocaml/llvm-ocaml-7.1.0.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,124 +0,0 @@ |
32 |
-# Copyright 1999-2019 Gentoo Authors |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
- |
35 |
-EAPI=6 |
36 |
- |
37 |
-: ${CMAKE_MAKEFILE_GENERATOR:=ninja} |
38 |
-# (needed due to CMAKE_BUILD_TYPE != Gentoo) |
39 |
-CMAKE_MIN_VERSION=3.7.0-r1 |
40 |
-PYTHON_COMPAT=( python2_7 ) |
41 |
- |
42 |
-inherit cmake-utils llvm multiprocessing python-any-r1 |
43 |
- |
44 |
-MY_P=llvm-${PV/_/}.src |
45 |
-DESCRIPTION="OCaml bindings for LLVM" |
46 |
-HOMEPAGE="https://llvm.org/" |
47 |
-SRC_URI="https://releases.llvm.org/${PV/_//}/${MY_P}.tar.xz" |
48 |
- |
49 |
-# Keep in sync with sys-devel/llvm |
50 |
-ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430 |
51 |
- NVPTX PowerPC Sparc SystemZ X86 XCore ) |
52 |
-ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" ) |
53 |
-LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?} |
54 |
- |
55 |
-LICENSE="UoI-NCSA" |
56 |
-SLOT="0/${PV}" |
57 |
-KEYWORDS="~amd64 ~arm ~x86" |
58 |
-IUSE="debug test ${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}:=[${LLVM_TARGET_USEDEPS// /,},debug?] |
65 |
- !sys-devel/llvm[ocaml(-)]" |
66 |
-DEPEND="${RDEPEND} |
67 |
- dev-lang/perl |
68 |
- dev-ml/findlib |
69 |
- test? ( dev-ml/ounit ) |
70 |
- ${PYTHON_DEPS}" |
71 |
- |
72 |
-REQUIRED_USE="|| ( ${ALL_LLVM_TARGETS[*]} )" |
73 |
- |
74 |
-S=${WORKDIR}/${MY_P} |
75 |
- |
76 |
-# least intrusive of all |
77 |
-CMAKE_BUILD_TYPE=RelWithDebInfo |
78 |
- |
79 |
-pkg_setup() { |
80 |
- LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup |
81 |
- python-any-r1_pkg_setup |
82 |
-} |
83 |
- |
84 |
-src_prepare() { |
85 |
- # Python is needed to run tests using lit |
86 |
- python_setup |
87 |
- |
88 |
- cmake-utils_src_prepare |
89 |
-} |
90 |
- |
91 |
-src_configure() { |
92 |
- local libdir=$(get_libdir) |
93 |
- local mycmakeargs=( |
94 |
- -DLLVM_LIBDIR_SUFFIX=${libdir#lib} |
95 |
- |
96 |
- -DBUILD_SHARED_LIBS=ON |
97 |
- -DLLVM_OCAML_OUT_OF_TREE=ON |
98 |
- -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}" |
99 |
- -DLLVM_BUILD_TESTS=$(usex test) |
100 |
- |
101 |
- # disable various irrelevant deps and settings |
102 |
- -DLLVM_ENABLE_FFI=OFF |
103 |
- -DLLVM_ENABLE_TERMINFO=OFF |
104 |
- -DHAVE_HISTEDIT_H=NO |
105 |
- -DWITH_POLLY=OFF |
106 |
- -DLLVM_ENABLE_ASSERTIONS=$(usex debug) |
107 |
- -DLLVM_ENABLE_EH=ON |
108 |
- -DLLVM_ENABLE_RTTI=ON |
109 |
- |
110 |
- -DLLVM_HOST_TRIPLE="${CHOST}" |
111 |
- |
112 |
- # disable go bindings |
113 |
- -DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND |
114 |
- |
115 |
- # TODO: ocamldoc |
116 |
- ) |
117 |
- |
118 |
- use test && mycmakeargs+=( |
119 |
- -DLLVM_LIT_ARGS="-vv;-j;${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")}" |
120 |
- ) |
121 |
- |
122 |
- # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
123 |
- # also: custom rules for OCaml do not work for CPPFLAGS |
124 |
- use debug || local -x CFLAGS="${CFLAGS} -DNDEBUG" |
125 |
- cmake-utils_src_configure |
126 |
- |
127 |
- local llvm_libdir=$(llvm-config --libdir) |
128 |
- # an ugly hack; TODO: figure out a way to pass -L to ocaml... |
129 |
- cd "${BUILD_DIR}/${libdir}" || die |
130 |
- ln -s "${llvm_libdir}"/*.so . || die |
131 |
- |
132 |
- if use test; then |
133 |
- local llvm_bindir=$(llvm-config --bindir) |
134 |
- # Force using system-installed tools. |
135 |
- sed -i -e "/llvm_tools_dir/s@\".*\"@\"${llvm_bindir}\"@" \ |
136 |
- "${BUILD_DIR}"/test/lit.site.cfg.py || die |
137 |
- fi |
138 |
-} |
139 |
- |
140 |
-src_compile() { |
141 |
- cmake-utils_src_compile ocaml_all |
142 |
-} |
143 |
- |
144 |
-src_test() { |
145 |
- # respect TMPDIR! |
146 |
- local -x LIT_PRESERVES_TMP=1 |
147 |
- cmake-utils_src_make check-llvm-bindings-ocaml |
148 |
-} |
149 |
- |
150 |
-src_install() { |
151 |
- DESTDIR="${D}" \ |
152 |
- cmake -P "${BUILD_DIR}"/bindings/ocaml/cmake_install.cmake || die |
153 |
- |
154 |
- dodoc bindings/ocaml/README.txt |
155 |
-} |