1 |
commit: b6e876fec2a0275b1f94ddc6fae0b37702116f49 |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 23 00:00:43 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 23 00:09:40 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6e876fe |
7 |
|
8 |
dev-ml/yojson: bump to 2.0.2 |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
dev-ml/yojson/Manifest | 1 + |
13 |
dev-ml/yojson/yojson-2.0.2.ebuild | 39 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 40 insertions(+) |
15 |
|
16 |
diff --git a/dev-ml/yojson/Manifest b/dev-ml/yojson/Manifest |
17 |
index 411b2a92266e..de9acdd856c1 100644 |
18 |
--- a/dev-ml/yojson/Manifest |
19 |
+++ b/dev-ml/yojson/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST yojson-1.7.0.tar.gz 29704 BLAKE2B edbd7f66d69a85880fc8ee9bb25a993744a310887024f7af63665ba8f5067f1b9383ec4d6dd5f4ca3376d698665a8f605c078f7597ddd4e71857c1a20143c2e5 SHA512 25eedb64e4bf7c7e8d5a5a115812cd502540afbdeb7c947da3a14e5968aa0a7db8ab402425662571d8935b9cd6a19796ce81dd80a65dc614f156626c60e7036e |
22 |
DIST yojson-2.0.0.tar.gz 44446 BLAKE2B 3b221a016ba418cc6a413921f0d7f2bc239b9a84953bbe9bec2601b159442f3e8bebdf48447367660fec3b3929ea0c08453778e491ce17f9044f505e49d587a6 SHA512 9196e117bb712b970351d12a8d7eae345eef2c92e70e627b58bb95ee49cd58e8a51e6eb5746e2468c15133d53a448ccd229a0568227de0cc8d2eed8b1985609b |
23 |
+DIST yojson-2.0.2.tar.gz 46731 BLAKE2B adca246c055efe04b63e694b7735fc81a714ae3b3ab164152797cc1eff1e483976b80ff31d0ac90f9d4ac234304ec805abb118bb231d0479bc738ddeb56a236c SHA512 61e8084d66d62d05a7802ee82a414807a76959ce6e0b14fd01f1c9c71ea69976d8a2cf3d5718e4059da4161786136a08624cd8470693ef2893b862efa7d6ffd2 |
24 |
|
25 |
diff --git a/dev-ml/yojson/yojson-2.0.2.ebuild b/dev-ml/yojson/yojson-2.0.2.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..23350f1a6c06 |
28 |
--- /dev/null |
29 |
+++ b/dev-ml/yojson/yojson-2.0.2.ebuild |
30 |
@@ -0,0 +1,39 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+inherit dune |
37 |
+ |
38 |
+DESCRIPTION="JSON parsing and pretty-printing library for OCaml" |
39 |
+HOMEPAGE="https://github.com/ocaml-community/yojson" |
40 |
+SRC_URI="https://github.com/ocaml-community/yojson/archive/${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="BSD" |
43 |
+SLOT="0/${PV}" |
44 |
+KEYWORDS="~amd64" |
45 |
+IUSE="examples +ocamlopt test" |
46 |
+RESTRICT="!test? ( test )" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ >=dev-lang/ocaml-4.02.3:=[ocamlopt?] |
50 |
+ >=dev-ml/seq-0.2.2:=[ocamlopt?] |
51 |
+" |
52 |
+DEPEND="${RDEPEND}" |
53 |
+BDEPEND=">=dev-ml/cppo-1.6.1 |
54 |
+ test? ( dev-ml/alcotest )" |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ default |
58 |
+ # let's not build this |
59 |
+ rm bench/dune yojson-bench.opam || die |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ dune_src_install |
64 |
+ |
65 |
+ if use examples; then |
66 |
+ dodoc -r examples |
67 |
+ docompress -x /usr/share/doc/${PF}/examples |
68 |
+ fi |
69 |
+} |