1 |
commit: 1e94dd46d27f2c9056778a7361bb72d0f700f23d |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 4 18:52:09 2017 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 6 06:45:16 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e94dd46 |
7 |
|
8 |
dev-ml/cmdliner: bump to 1.0.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
dev-ml/cmdliner/Manifest | 1 + |
13 |
dev-ml/cmdliner/cmdliner-1.0.1.ebuild | 43 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 44 insertions(+) |
15 |
|
16 |
diff --git a/dev-ml/cmdliner/Manifest b/dev-ml/cmdliner/Manifest |
17 |
index 4419ec5028e..0b4d8102deb 100644 |
18 |
--- a/dev-ml/cmdliner/Manifest |
19 |
+++ b/dev-ml/cmdliner/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST cmdliner-1.0.0.tbz 46542 SHA256 3df9a78a1fa966ba0cfbc4195f0e4dc8d0ff67a4ed23aa1807ef47a0233ed6e7 SHA512 3fc87e49504167864ba4d81fde7bbaa01b7d58b06e2b68b36647857590f41fdc8b3bbd547418f8159b0e76628236b5c30301404b3d8d57e2ff3f082228eee73c WHIRLPOOL 866c6aa188787ec384ea099406e4b82998892ee7513339b0d5f514cc14e98a1f2cd0d8b2b6a852d9b80897aa60f182b75caf35f97d58e98b394f9d1c60fe3de8 |
22 |
+DIST cmdliner-1.0.1.tbz 46614 SHA256 e9964972ac3a6f0636575fe16ac4a5df15392904e51d60c281f72c00e148448c SHA512 b792dab3a7f53f69d74d07acbb013e48235614e29a477b7e9e7d7b58013d47ff842fbaeef50acda305434185325855ef83d839d5acb0ccf460276f0ca880ee7b WHIRLPOOL e25ff8769e004d0dc1138c7d86fb92a7a18b44df43b2ed8826db1c09062619105d3a712985c6edbecf0280ce89cdc0a375527f3c9bbc96400a2566593221fe8c |
23 |
|
24 |
diff --git a/dev-ml/cmdliner/cmdliner-1.0.1.ebuild b/dev-ml/cmdliner/cmdliner-1.0.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..262192ca7b5 |
27 |
--- /dev/null |
28 |
+++ b/dev-ml/cmdliner/cmdliner-1.0.1.ebuild |
29 |
@@ -0,0 +1,43 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=5 |
34 |
+ |
35 |
+inherit findlib |
36 |
+ |
37 |
+DESCRIPTION="Declarative definition of command line interfaces for OCaml" |
38 |
+HOMEPAGE="http://erratique.ch/software/cmdliner" |
39 |
+SRC_URI="http://erratique.ch/software/${PN}/releases/${P}.tbz" |
40 |
+ |
41 |
+LICENSE="ISC" |
42 |
+SLOT="0/${PV}" |
43 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" |
44 |
+IUSE="+ocamlopt test" |
45 |
+ |
46 |
+RDEPEND=" |
47 |
+ >=dev-lang/ocaml-4:=[ocamlopt?] |
48 |
+ dev-ml/result:= |
49 |
+" |
50 |
+DEPEND="${RDEPEND} |
51 |
+ dev-ml/topkg |
52 |
+ dev-ml/ocamlbuild" |
53 |
+ |
54 |
+src_compile() { |
55 |
+ ocaml pkg/pkg.ml build \ |
56 |
+ --tests $(usex test true false) \ |
57 |
+ || die |
58 |
+} |
59 |
+ |
60 |
+src_test() { |
61 |
+ ocaml pkg/pkg.ml test || die |
62 |
+} |
63 |
+ |
64 |
+src_install() { |
65 |
+ # Can't use opam-installer here as it is an opam dep... |
66 |
+ findlib_src_preinst |
67 |
+ local nativelibs="" |
68 |
+ use ocamlopt && nativelibs="$(echo _build/src/cmdliner.cm{x,xa,xs} _build/src/cmdliner.a)" |
69 |
+ ocamlfind install cmdliner _build/pkg/META \ |
70 |
+ _build/src/cmdliner.mli _build/src/cmdliner.cm{a,i} ${nativelibs} || die |
71 |
+ dodoc README.md CHANGES.md |
72 |
+} |