1 |
commit: cc72ccca5d65ac57e8e0765a4f03f0666bb10697 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 28 02:03:09 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 28 02:03:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc72ccca |
7 |
|
8 |
dev-ml/bos: add 0.2.0 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-ml/bos/Manifest | 1 + |
13 |
dev-ml/bos/bos-0.2.0.ebuild | 45 +++++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 46 insertions(+) |
15 |
|
16 |
diff --git a/dev-ml/bos/Manifest b/dev-ml/bos/Manifest |
17 |
index 1605b9165f8..455b1d3ba51 100644 |
18 |
--- a/dev-ml/bos/Manifest |
19 |
+++ b/dev-ml/bos/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST bos-0.1.6.tbz 39822 BLAKE2B 0e10eb14fb5d429b81c67659c936e8b700c4cd417d1f5be000c8bdb0304de8ad9130e597f6e2e7771380c29c148f4339817bacc458e72a8efa894be3b85965bf SHA512 f1f10a97a32da936a7d5a0c70632e723723ee523c79f9dfd23bc42c039a194e8d69658483e6e856c7911332b799a92bf8cabfe96cc387522d7450b8f3f8f8343 |
22 |
+DIST bos-0.2.0.tbz 41008 BLAKE2B badc344e561ba9335a4ded0c8100da91fe2bc882698c94daa42d9db2f1e2c8c627b81eebb5a7067778c332384504391ea402f7363ec552e8517cb048c8e384fe SHA512 f9120f8108c6da5647c9fbcc78736a5f87bf5627fad01035fdab1af6322c93e75df670d7d2910fe474c92c48ffffcf15955a84e698cfc7bfb7c1ac4fe27d472f |
23 |
|
24 |
diff --git a/dev-ml/bos/bos-0.2.0.ebuild b/dev-ml/bos/bos-0.2.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..48d5b153707 |
27 |
--- /dev/null |
28 |
+++ b/dev-ml/bos/bos-0.2.0.ebuild |
29 |
@@ -0,0 +1,45 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+DESCRIPTION="Basic OS interaction for OCaml" |
36 |
+HOMEPAGE="https://erratique.ch/software/bos https://github.com/dbuenzli/bos" |
37 |
+SRC_URI="https://erratique.ch/software/bos/releases/${P}.tbz" |
38 |
+ |
39 |
+LICENSE="ISC" |
40 |
+SLOT="0/${PV}" |
41 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
42 |
+IUSE="test" |
43 |
+RESTRICT="!test? ( test )" |
44 |
+ |
45 |
+RDEPEND=" |
46 |
+ dev-lang/ocaml:= |
47 |
+ dev-ml/rresult:= |
48 |
+ dev-ml/astring:= |
49 |
+ dev-ml/fpath:= |
50 |
+ dev-ml/fmt:= |
51 |
+ dev-ml/logs:= |
52 |
+" |
53 |
+DEPEND="${RDEPEND} |
54 |
+ dev-ml/findlib |
55 |
+ dev-ml/ocamlbuild |
56 |
+ dev-ml/topkg |
57 |
+ test? ( dev-ml/mtime ) |
58 |
+" |
59 |
+ |
60 |
+src_compile() { |
61 |
+ ocaml pkg/pkg.ml build --tests $(usex test true false) || die |
62 |
+} |
63 |
+ |
64 |
+src_test() { |
65 |
+ ocaml pkg/pkg.ml test || die |
66 |
+} |
67 |
+ |
68 |
+src_install() { |
69 |
+ opam-installer -i \ |
70 |
+ --prefix="${ED}/usr" \ |
71 |
+ --libdir="${D}/$(ocamlc -where)" \ |
72 |
+ --docdir="${ED}/usr/share/doc/${PF}" \ |
73 |
+ ${PN}.install || die |
74 |
+} |