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: Mon, 09 Sep 2019 19:02:49
Message-Id: 1568055752.d433ef29716d474261987606d3abf69d47f08bef.mgorny@gentoo
1 commit: d433ef29716d474261987606d3abf69d47f08bef
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 2 07:28:26 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 9 19:02:32 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d433ef29
7
8 dev-ml/llvm-ocaml: Remove 5.0.2
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-5.0.2.ebuild | 121 ------------------------------
14 2 files changed, 122 deletions(-)
15
16 diff --git a/dev-ml/llvm-ocaml/Manifest b/dev-ml/llvm-ocaml/Manifest
17 index 63c492c2bdf..d370a4fbd01 100644
18 --- a/dev-ml/llvm-ocaml/Manifest
19 +++ b/dev-ml/llvm-ocaml/Manifest
20 @@ -1,4 +1,3 @@
21 -DIST llvm-5.0.2.src.tar.xz 23451868 BLAKE2B b7082be2e4ad557b29b9f6869811f262adcf5c73d552faf91b339bede75cf5eab58afefa12fa779a38be71fe2b8f4ea297c3213ee4e8370cc01972c59249d91c SHA512 3588be5ed969c3f7f6f16f56a12a6af2814d3d3c960d4a36ffebb0446cc75f19220bccee7fc605f9b01f5d5c188a905a046193cc12dec42dd5922048b5c27fe1
22 DIST llvm-6.0.1.src.tar.xz 25306628 BLAKE2B 60232d4d22f8096b565cc8d81fea0639f24f14e8fc4f66ade69fa15479181f07f655f26dff3fa24bf105762b495da316c5c9352db234bd0af6b9c3fff6d4d881 SHA512 cbbb00eb99cfeb4aff623ee1a5ba075e7b5a76fc00c5f9f539ff28c108598f5708a0369d5bd92683def5a20c2fe60cab7827b42d628dbfcc79b57e0e91b84dd9
23 DIST llvm-7.1.0.src.tar.xz 28313784 BLAKE2B b78d9a7fc5ef6e352e77d339e5c4eef5ccedf67c05e7abd949e72619aa8a5ed65e7e5e2008354be8e7916d75581719b99f34227838fcc86c5d0080913c2fb22c SHA512 a7dbd5693d1f2dae6b6e52893a100f9349cbfcfb25c5fdcad46364acbff0dbd3573f8fbc026c68eb9fd56335198aa94b866cc3dd7ea0cbd2cbfb5f8fe3444a7a
24 DIST llvm-8.0.0.src.tar.xz 30503732 BLAKE2B d89bdeb0ec7d885e49cfe5ae025da84f00502d409710c0807a3cdd58dbd47c50cf6a635593569483150f7f2ecb0de0310bd6785cb7625219bf9f6224a0d68e1c SHA512 1602343b451b964f5d8c2d6b0654d89384c80d45883498c5f0e2f4196168dd4a1ed2a4dadb752076020243df42ffe46cb31d82ffc145d8e5874163cbb9686a1f
25
26 diff --git a/dev-ml/llvm-ocaml/llvm-ocaml-5.0.2.ebuild b/dev-ml/llvm-ocaml/llvm-ocaml-5.0.2.ebuild
27 deleted file mode 100644
28 index d21c45f2aac..00000000000
29 --- a/dev-ml/llvm-ocaml/llvm-ocaml-5.0.2.ebuild
30 +++ /dev/null
31 @@ -1,121 +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 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 -
60 -RDEPEND="
61 - >=dev-lang/ocaml-4.00.0:0=
62 - dev-ml/ocaml-ctypes:=
63 - ~sys-devel/llvm-${PV}:=[${LLVM_TARGET_USEDEPS// /,},debug?]
64 - !sys-devel/llvm[ocaml(-)]"
65 -# configparser-3.2 breaks the build (3.3 or none at all are fine)
66 -DEPEND="${RDEPEND}
67 - dev-lang/perl
68 - dev-ml/findlib
69 - test? ( dev-ml/ounit )
70 - !!<dev-python/configparser-3.3.0.2
71 - ${PYTHON_DEPS}"
72 -
73 -REQUIRED_USE="|| ( ${ALL_LLVM_TARGETS[*]} )"
74 -
75 -S=${WORKDIR}/${MY_P}
76 -
77 -# least intrusive of all
78 -CMAKE_BUILD_TYPE=RelWithDebInfo
79 -
80 -pkg_setup() {
81 - LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup
82 - python-any-r1_pkg_setup
83 -}
84 -
85 -src_prepare() {
86 - # Python is needed to run tests using lit
87 - python_setup
88 -
89 - cmake-utils_src_prepare
90 -}
91 -
92 -src_configure() {
93 - local libdir=$(get_libdir)
94 - local mycmakeargs=(
95 - -DLLVM_LIBDIR_SUFFIX=${libdir#lib}
96 -
97 - -DBUILD_SHARED_LIBS=ON
98 - -DLLVM_OCAML_OUT_OF_TREE=ON
99 - -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}"
100 - -DLLVM_BUILD_TESTS=$(usex test)
101 -
102 - # disable various irrelevant deps and settings
103 - -DLLVM_ENABLE_FFI=OFF
104 - -DLLVM_ENABLE_TERMINFO=OFF
105 - -DHAVE_HISTEDIT_H=NO
106 - -DWITH_POLLY=OFF
107 - -DLLVM_ENABLE_ASSERTIONS=$(usex debug)
108 - -DLLVM_ENABLE_EH=ON
109 - -DLLVM_ENABLE_RTTI=ON
110 -
111 - -DLLVM_HOST_TRIPLE="${CHOST}"
112 -
113 - # disable go bindings
114 - -DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND
115 -
116 - # TODO: ocamldoc
117 - )
118 -
119 - # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
120 - # also: custom rules for OCaml do not work for CPPFLAGS
121 - use debug || local -x CFLAGS="${CFLAGS} -DNDEBUG"
122 - cmake-utils_src_configure
123 -
124 - local llvm_libdir=$(llvm-config --libdir)
125 - # an ugly hack; TODO: figure out a way to pass -L to ocaml...
126 - cd "${BUILD_DIR}/${libdir}" || die
127 - ln -s "${llvm_libdir}"/*.so . || die
128 -
129 - if use test; then
130 - local llvm_bindir=$(llvm-config --bindir)
131 - # Force using system-installed tools.
132 - sed -i -e "/llvm_tools_dir/s@\".*\"@\"${llvm_bindir}\"@" \
133 - "${BUILD_DIR}"/test/lit.site.cfg || die
134 - fi
135 -}
136 -
137 -src_compile() {
138 - cmake-utils_src_compile ocaml_all
139 -}
140 -
141 -src_test() {
142 - # respect TMPDIR!
143 - local -x LIT_PRESERVES_TMP=1
144 - cmake-utils_src_make check-llvm-bindings-ocaml
145 -}
146 -
147 -src_install() {
148 - DESTDIR="${D}" \
149 - cmake -P "${BUILD_DIR}"/bindings/ocaml/cmake_install.cmake || die
150 -
151 - dodoc bindings/ocaml/README.txt
152 -}