Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/uchar/
Date: Mon, 17 Jul 2017 10:11:36
Message-Id: 1500286185.388c6378c41473a597e5eb686b1de375101005e6.aballier@gentoo
1 commit: 388c6378c41473a597e5eb686b1de375101005e6
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 17 10:09:45 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 17 10:09:45 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=388c6378
7
8 dev-ml/uchar: bump to 0.0.2
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 dev-ml/uchar/Manifest | 1 +
13 dev-ml/uchar/uchar-0.0.2.ebuild | 41 +++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 42 insertions(+)
15
16 diff --git a/dev-ml/uchar/Manifest b/dev-ml/uchar/Manifest
17 index da50db17801..ae3fcfc8b4f 100644
18 --- a/dev-ml/uchar/Manifest
19 +++ b/dev-ml/uchar/Manifest
20 @@ -1 +1,2 @@
21 DIST uchar-0.0.1.tar.gz 23471 SHA256 ac94116a35cbcf346c94b4326d03d382560fbae337b7a59794ad6e1a1a84c140 SHA512 6bdc3646cb959af1a289e22f5202da2f3e3462b42a563ec4a999e96ba7b2d0c95e2d42ef06b35cd9c477eebfadef5bba4abdb60997faa7e6848aa6bcb5d729c2 WHIRLPOOL 7b043985fdc61aac63b1ba923006b40ef52552c0aad5f45d6be6f744b6d1cb1a7ce46d5dc647e59cd82fa5d243a8699bd44987871ef6c60874a31f231c36d2aa
22 +DIST uchar-0.0.2.tar.gz 21815 SHA256 17ed7574c3244db9885903d4936d43d9fa3944b5e9330a3ebdb0bffceb694903 SHA512 487a9706cf9dfc9b9c94442a51766cc211687d6ebcb4dd3c94d09cb1ed6d7fd61e966e91a4121fe2d1681b2fd6bfee9079d3bccccdb6d65ba2111524ab5dd1bc WHIRLPOOL 3e8ee5252cc2ab81dd209cd99a22352c82c16e0756aea5b2d81dfaa697deedd5c02568646a431390b8485f27c825c92dff1d966c2a42abe8c2a9f9a0d997f266
23
24 diff --git a/dev-ml/uchar/uchar-0.0.2.ebuild b/dev-ml/uchar/uchar-0.0.2.ebuild
25 new file mode 100644
26 index 00000000000..74e9bd312cb
27 --- /dev/null
28 +++ b/dev-ml/uchar/uchar-0.0.2.ebuild
29 @@ -0,0 +1,41 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit findlib
36 +
37 +DESCRIPTION="Uchar compatibility library"
38 +HOMEPAGE="https://github.com/ocaml/uchar"
39 +SRC_URI="https://github.com/ocaml/uchar/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 +
41 +LICENSE="LGPL-2-with-linking-exception"
42 +SLOT="0/${PV}"
43 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc"
44 +IUSE="+ocamlopt"
45 +
46 +RDEPEND=">=dev-lang/ocaml-4.03:="
47 +DEPEND="${RDEPEND} dev-ml/ocamlbuild"
48 +
49 +# This is mostly a compat wrapper for older ocaml versions we don't support. No
50 +# need to test it, plus it fails when installing for the first time:
51 +# https://bugs.gentoo.org/show_bug.cgi?id=624144
52 +RESTRICT="test"
53 +
54 +src_compile() {
55 + ocaml pkg/build.ml \
56 + "native=$(usex ocamlopt true false)" \
57 + "native-dynlink=$(usex ocamlopt true false)" || die
58 +}
59 +
60 +src_test() {
61 + ocamlbuild -X src -use-ocamlfind -pkg uchar test/testpkg.native || die
62 +}
63 +
64 +src_install() {
65 + # Can't use opam-installer here as it is an opam dep...
66 + findlib_src_preinst
67 + mv _build/pkg/META{.empty,} || die
68 + ocamlfind install ${PN} _build/pkg/META || die
69 + dodoc README.md CHANGES.md
70 +}