Gentoo Archives: gentoo-commits

From: "Jason A. Donenfeld" <zx2c4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/ocamlbuild/
Date: Fri, 27 Dec 2019 18:09:52
Message-Id: 1577470175.8e0366b236e94f7370ce10d186b2a3265586d4c6.zx2c4@gentoo
1 commit: 8e0366b236e94f7370ce10d186b2a3265586d4c6
2 Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 27 18:09:35 2019 +0000
4 Commit: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 27 18:09:35 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e0366b2
7
8 dev-ml/ocamlbuild: bump to 0.14.0
9
10 This appears to be unmaintained, and the old ebuild no longer builds
11 with new ocaml, but thankfully this newer ocamlbuild does. Let's bump it
12 and see what happens.
13
14 Package-Manager: Portage-2.3.83, Repoman-2.3.20
15 Signed-off-by: Jason A. Donenfeld <zx2c4 <AT> gentoo.org>
16
17 dev-ml/ocamlbuild/Manifest | 1 +
18 dev-ml/ocamlbuild/ocamlbuild-0.14.0.ebuild | 36 ++++++++++++++++++++++++++++++
19 2 files changed, 37 insertions(+)
20
21 diff --git a/dev-ml/ocamlbuild/Manifest b/dev-ml/ocamlbuild/Manifest
22 index bf2beb74a20..2582af8317b 100644
23 --- a/dev-ml/ocamlbuild/Manifest
24 +++ b/dev-ml/ocamlbuild/Manifest
25 @@ -1,2 +1,3 @@
26 DIST ocamlbuild-0.10.1.tar.gz 193263 BLAKE2B cee82997a6b691b3df9b92055b74f05af57d7663f5dbb84701e66dffefcfe6ec00c9721e1872d546f2aea9237068e37ba7d94463d0002a8356dd4d84bc1865c0 SHA512 6d74bdce7fe147bf1a5fd570b569925b36b5f443c7251d1c13a0525e3086417b393a768722bf7d4b23a7e3178b0b3c2511499725c5a755d69783b8d555663e3b
27 DIST ocamlbuild-0.11.0.tar.gz 195297 BLAKE2B 2d653c402edf58035fa6efb65c99c956fe78efc4759f29c8ddab8263310a5d243d25d37d4c1a4f0699f151afb6d4c6df4c1550f95d6e915963b3d86923877225 SHA512 14bc44cc63b6c99e711658a1145247bad8263632fbb4550238cef15e226a76b83e51b83575a7a96f16b96ec321dedd0ef23f36166c354838aec1922f58179efd
28 +DIST ocamlbuild-0.14.0.tar.gz 198267 BLAKE2B 355d61ba68e61b9ee18a9fc0fbb9062405f44707b180ca7ad4bfec727ca3d3d2cc08f17be118ca3a4161c7789d975e7f431812e9139d4fde85a1a27ab68c8ac3 SHA512 ae60247396399dfd35644c8c1986ef7679e5a9964df82e3388bfc6dd4c5b88a13d6869a698d14a9ac70dc48e4ce1c003f543c85426d8c862ca31dea37a554b07
29
30 diff --git a/dev-ml/ocamlbuild/ocamlbuild-0.14.0.ebuild b/dev-ml/ocamlbuild/ocamlbuild-0.14.0.ebuild
31 new file mode 100644
32 index 00000000000..4556ac43c4d
33 --- /dev/null
34 +++ b/dev-ml/ocamlbuild/ocamlbuild-0.14.0.ebuild
35 @@ -0,0 +1,36 @@
36 +# Copyright 1999-2019 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=5
40 +
41 +DESCRIPTION="Generic build tool with built-in rules for building OCaml library and programs"
42 +HOMEPAGE="https://github.com/ocaml/ocamlbuild"
43 +SRC_URI="https://github.com/ocaml/ocamlbuild/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="LGPL-2.1-with-linking-exception"
46 +SLOT="0/${PV}"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
48 +IUSE="+ocamlopt test"
49 +RESTRICT="!test? ( test )"
50 +
51 +DEPEND=">=dev-lang/ocaml-4.02.3-r1:=[ocamlopt?]"
52 +RDEPEND="${DEPEND}
53 + !<dev-ml/findlib-1.6.1-r1
54 +"
55 +DEPEND="${DEPEND}
56 + test? ( dev-ml/findlib )"
57 +
58 +src_configure() {
59 + emake -f configure.make Makefile.config \
60 + PREFIX="${EPREFIX}/usr" \
61 + BINDIR="${EPREFIX}/usr/bin" \
62 + LIBDIR="$(ocamlc -where)" \
63 + OCAML_NATIVE=$(usex ocamlopt true false) \
64 + OCAML_NATIVE_TOOLS=$(usex ocamlopt true false) \
65 + NATDYNLINK=$(usex ocamlopt true false)
66 +}
67 +
68 +src_install() {
69 + emake CHECK_IF_PREINSTALLED=false DESTDIR="${D}" install
70 + dodoc Changes
71 +}