1 |
commit: e14b766a03bbb2ba2d25bbed469c80598a507c5c |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat May 7 23:09:59 2022 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sun May 8 01:58:07 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e14b766a |
7 |
|
8 |
dev-ml/cstruct: add 6.1.0 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
dev-ml/cstruct/Manifest | 1 + |
13 |
dev-ml/cstruct/cstruct-6.1.0.ebuild | 73 +++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 74 insertions(+) |
15 |
|
16 |
diff --git a/dev-ml/cstruct/Manifest b/dev-ml/cstruct/Manifest |
17 |
index 62c35a90c..15faa7e15 100644 |
18 |
--- a/dev-ml/cstruct/Manifest |
19 |
+++ b/dev-ml/cstruct/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST cstruct-6.0.1.tar.gz 243082 BLAKE2B 874ba34583bbc8b53c5b50ba038e2aa423fd704711194dcf99899239015d5fb383242b1d4654c1be2705fd80465e6da7e8eaa5265eceebca7b09dc036d4ebf40 SHA512 2f696b9dca1426d57f60fd4e997ee0c89b1af1a49e186e08c16911ceb03e9f89518a63faf4407b4a7e3c5f391d51979019e47a77f33961624d767a9e36146ca4 |
22 |
+DIST cstruct-6.1.0.tar.gz 242509 BLAKE2B b41eb9b86830b7aef775f9bbfd0f08c29b495a032351ec38dd4553fb944e67a4875b7c2b7175761d78336a20782812148fd473075f4a3519b019f37a2c2ea7dc SHA512 eb1bcb6a35650f726f888c396f3ca64796ad16c1a7146130f8826004c3cac7e5bef2453821ca95844eaef4b4beab25e3db713e6a1a93f86986fb526f75a4e245 |
23 |
|
24 |
diff --git a/dev-ml/cstruct/cstruct-6.1.0.ebuild b/dev-ml/cstruct/cstruct-6.1.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000..8bdc43c77 |
27 |
--- /dev/null |
28 |
+++ b/dev-ml/cstruct/cstruct-6.1.0.ebuild |
29 |
@@ -0,0 +1,73 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit dune multiprocessing |
36 |
+ |
37 |
+DESCRIPTION="Map OCaml arrays onto C-like structs" |
38 |
+HOMEPAGE=" |
39 |
+ https://github.com/mirage/ocaml-cstruct |
40 |
+ https://opam.ocaml.org/packages/cstruct/ |
41 |
+" |
42 |
+SRC_URI="https://github.com/mirage/ocaml-cstruct/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+S="${WORKDIR}/ocaml-${P}" |
44 |
+ |
45 |
+LICENSE="ISC" |
46 |
+SLOT="0/${PV}" |
47 |
+KEYWORDS="~amd64" |
48 |
+IUSE="async lwt ocamlopt ppx sexp test unix" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ >=dev-lang/ocaml-4.08.0:=[ocamlopt?] |
52 |
+ >=dev-ml/fmt-0.8.9:= |
53 |
+ |
54 |
+ async? ( |
55 |
+ >=dev-ml/async-0.9.0:= |
56 |
+ >=dev-ml/async_unix-0.9.0:= |
57 |
+ >=dev-ml/core-0.9.0:= |
58 |
+ ) |
59 |
+ lwt? ( dev-ml/lwt:= ) |
60 |
+ ppx? ( |
61 |
+ >=dev-ml/ppxlib-0.16.0:= |
62 |
+ dev-ml/stdlib-shims:= |
63 |
+ ) |
64 |
+ sexp? ( >=dev-ml/sexplib-0.9.0:= ) |
65 |
+" |
66 |
+DEPEND=" |
67 |
+ ${RDEPEND} |
68 |
+ test? ( |
69 |
+ dev-ml/alcotest |
70 |
+ dev-ml/crowbar |
71 |
+ >=dev-ml/ocaml-migrate-parsetree-2.1.0 |
72 |
+ dev-ml/ppx_sexp_conv |
73 |
+ dev-ml/cppo |
74 |
+ >=dev-ml/lwt-2.0.2 |
75 |
+ ) |
76 |
+" |
77 |
+ |
78 |
+RESTRICT="!test? ( test )" |
79 |
+REQUIRED_USE=" |
80 |
+ ppx? ( sexp ) |
81 |
+ test? ( sexp ppx ) |
82 |
+" |
83 |
+ |
84 |
+src_compile() { |
85 |
+ local pkgs="cstruct" |
86 |
+ use ppx && pkgs="${pkgs},ppx_cstruct" |
87 |
+ for u in async lwt sexp unix ; do |
88 |
+ if use ${u} ; then |
89 |
+ pkgs="${pkgs},cstruct-${u}" |
90 |
+ fi |
91 |
+ done |
92 |
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die |
93 |
+} |
94 |
+ |
95 |
+src_install() { |
96 |
+ dune_src_install cstruct |
97 |
+ use async && dune_src_install cstruct-async |
98 |
+ use lwt && dune_src_install cstruct-lwt |
99 |
+ use sexp && dune_src_install cstruct-sexp |
100 |
+ use unix && dune_src_install cstruct-unix |
101 |
+ use ppx && dune_src_install ppx_cstruct |
102 |
+} |