Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/llvm-ocaml/
Date: Sun, 30 Dec 2018 11:40:20
Message-Id: 1546169986.d17b81c8f69bab97a75a95a92e179b5185724f5b.mgorny@gentoo
1 commit: d17b81c8f69bab97a75a95a92e179b5185724f5b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 30 11:31:55 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 30 11:39:46 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d17b81c8
7
8 dev-ml/llvm-ocaml: Remove 7.0.0
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.0.0.ebuild | 127 ------------------------------
14 2 files changed, 128 deletions(-)
15
16 diff --git a/dev-ml/llvm-ocaml/Manifest b/dev-ml/llvm-ocaml/Manifest
17 index 4a215cfed89..f83ef949f20 100644
18 --- a/dev-ml/llvm-ocaml/Manifest
19 +++ b/dev-ml/llvm-ocaml/Manifest
20 @@ -1,5 +1,4 @@
21 DIST llvm-4.0.1.src.tar.xz 21065652 BLAKE2B 6327eed2d1feb108440f22d2581d1ff86c10a10c29793538d8d899c7e2dc83d3f7b147d3fd4bcce2bd2bf57c071b08c624aeafe40a3e7a3914506e7751727e6c SHA512 16adc39b34ddb628f81b171119a8e2a0e9138b25011e803ef0b688e2fbea116fc4953d3a1b61b90a98a75e33619f81566b7cb06a9a2ea4d04ac5e0eb303a2d1d
22 DIST llvm-5.0.2.src.tar.xz 23451868 BLAKE2B b7082be2e4ad557b29b9f6869811f262adcf5c73d552faf91b339bede75cf5eab58afefa12fa779a38be71fe2b8f4ea297c3213ee4e8370cc01972c59249d91c SHA512 3588be5ed969c3f7f6f16f56a12a6af2814d3d3c960d4a36ffebb0446cc75f19220bccee7fc605f9b01f5d5c188a905a046193cc12dec42dd5922048b5c27fe1
23 DIST llvm-6.0.1.src.tar.xz 25306628 BLAKE2B 60232d4d22f8096b565cc8d81fea0639f24f14e8fc4f66ade69fa15479181f07f655f26dff3fa24bf105762b495da316c5c9352db234bd0af6b9c3fff6d4d881 SHA512 cbbb00eb99cfeb4aff623ee1a5ba075e7b5a76fc00c5f9f539ff28c108598f5708a0369d5bd92683def5a20c2fe60cab7827b42d628dbfcc79b57e0e91b84dd9
24 -DIST llvm-7.0.0.src.tar.xz 28324368 BLAKE2B 10168ff9be8f68536db3b2263c85c1c98213ef03dc542b83628ff176542452582bc496bab236fdf40d4a6463a33f04b27f1458c072ad8b66b641f8df8d494046 SHA512 bdc9b851c158b17e1bbeb7ac5ae49821bfb1251a3826fe8a3932cd1a43f9fb0d620c3de67150c1d9297bf0b86fa917e75978da29c3f751b277866dc90395abec
25 DIST llvm-7.0.1.src.tar.xz 28311056 BLAKE2B 737aa6144a415e41a4ff2c8bd5a727d6f14d7b1810c62cbefa5a25fe642c98cddf8a28e35c7e9783373aa3b96f5c0943229e229ad1b43e56e9ed6db0f27ab128 SHA512 ac43a3cb71a53deb55e3693653847cf20bf6f5d9056f224e6956c96d63bc59ebee9404f088eec9cabe65337b4607a905ef931354b373cf64e0004c6905a6b5df
26
27 diff --git a/dev-ml/llvm-ocaml/llvm-ocaml-7.0.0.ebuild b/dev-ml/llvm-ocaml/llvm-ocaml-7.0.0.ebuild
28 deleted file mode 100644
29 index 0e64a225bb7..00000000000
30 --- a/dev-ml/llvm-ocaml/llvm-ocaml-7.0.0.ebuild
31 +++ /dev/null
32 @@ -1,127 +0,0 @@
33 -# Copyright 1999-2018 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=6
37 -
38 -: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
39 -# (needed due to CMAKE_BUILD_TYPE != Gentoo)
40 -CMAKE_MIN_VERSION=3.7.0-r1
41 -PYTHON_COMPAT=( python2_7 )
42 -
43 -inherit cmake-utils llvm multiprocessing python-any-r1
44 -
45 -MY_P=llvm-${PV/_/}.src
46 -DESCRIPTION="OCaml bindings for LLVM"
47 -HOMEPAGE="https://llvm.org/"
48 -SRC_URI="https://releases.llvm.org/${PV/_//}/${MY_P}.tar.xz"
49 -
50 -# Keep in sync with sys-devel/llvm
51 -ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM BPF Hexagon Lanai Mips MSP430
52 - NVPTX PowerPC Sparc SystemZ X86 XCore )
53 -ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" )
54 -LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?}
55 -
56 -LICENSE="UoI-NCSA"
57 -SLOT="0/${PV}"
58 -KEYWORDS="~amd64 ~arm ~x86"
59 -IUSE="debug test ${ALL_LLVM_TARGETS[*]}"
60 -RESTRICT="!test? ( test )"
61 -
62 -RDEPEND="
63 - >=dev-lang/ocaml-4.00.0:0=
64 - dev-ml/ocaml-ctypes:=
65 - ~sys-devel/llvm-${PV}:=[${LLVM_TARGET_USEDEPS// /,},debug?]
66 - !sys-devel/llvm[ocaml(-)]"
67 -# configparser-3.2 breaks the build (3.3 or none at all are fine)
68 -DEPEND="${RDEPEND}
69 - dev-lang/perl
70 - dev-ml/findlib
71 - test? ( dev-ml/ounit )
72 - !!<dev-python/configparser-3.3.0.2
73 - ${PYTHON_DEPS}"
74 -
75 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
76 - || ( ${ALL_LLVM_TARGETS[*]} )"
77 -
78 -S=${WORKDIR}/${MY_P}
79 -
80 -# least intrusive of all
81 -CMAKE_BUILD_TYPE=RelWithDebInfo
82 -
83 -pkg_setup() {
84 - LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup
85 - python-any-r1_pkg_setup
86 -}
87 -
88 -src_prepare() {
89 - # Python is needed to run tests using lit
90 - python_setup
91 -
92 - cmake-utils_src_prepare
93 -}
94 -
95 -src_configure() {
96 - local libdir=$(get_libdir)
97 - local mycmakeargs=(
98 - -DLLVM_LIBDIR_SUFFIX=${libdir#lib}
99 -
100 - -DBUILD_SHARED_LIBS=ON
101 - -DLLVM_OCAML_OUT_OF_TREE=ON
102 - -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
103 - -DLLVM_BUILD_TESTS=$(usex test)
104 -
105 - # disable various irrelevant deps and settings
106 - -DLLVM_ENABLE_FFI=OFF
107 - -DLLVM_ENABLE_TERMINFO=OFF
108 - -DHAVE_HISTEDIT_H=NO
109 - -DWITH_POLLY=OFF
110 - -DLLVM_ENABLE_ASSERTIONS=$(usex debug)
111 - -DLLVM_ENABLE_EH=ON
112 - -DLLVM_ENABLE_RTTI=ON
113 -
114 - -DLLVM_HOST_TRIPLE="${CHOST}"
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="-vv;-j;${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")}"
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-utils_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-utils_src_compile ocaml_all
146 -}
147 -
148 -src_test() {
149 - # respect TMPDIR!
150 - local -x LIT_PRESERVES_TMP=1
151 - cmake-utils_src_make 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 -}