1 |
commit: 639441c61b80d3c2aa31d1ae05ac257a26130063 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 19 20:16:37 2017 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 19 21:30:27 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=639441c6 |
7 |
|
8 |
dev-ml/yojson: bump to 1.4.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
dev-ml/yojson/Manifest | 1 + |
13 |
dev-ml/yojson/yojson-1.4.0.ebuild | 38 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 39 insertions(+) |
15 |
|
16 |
diff --git a/dev-ml/yojson/Manifest b/dev-ml/yojson/Manifest |
17 |
index 09e86138732..ca650320012 100644 |
18 |
--- a/dev-ml/yojson/Manifest |
19 |
+++ b/dev-ml/yojson/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST yojson-1.3.3.tar.gz 26940 SHA256 de5ad4fd681f58ae5a670f0a43684873cc6ca50bdf52e63ac0c4b8a8bbe1d51a SHA512 78d88d470bb64360d020ebc70d9faaa7abca6476fd20d0224e188b44d147c42cea8723adff0845e5444d684b2d0e186154cca288cb236de94a83a44229fcb426 WHIRLPOOL 4594fdd1b6e467afb204b319d3672100eb3a8ccf88cdb47c4c60fbbdb339df9694695f75e63ecef8a3c8aa1096a7fc3e3d864229ffbb244900c2084ce3e48afc |
22 |
+DIST yojson-1.4.0.tar.gz 26197 SHA256 7d06340b769ed6ff5b2171a0e820d1e8f4337aef3929090fc976efe845639146 SHA512 dc019ecf0387299282c3df9a548456d2529993241911a83acb14f2361ed14886e5ebebe415773b6bc718cb0b12a25529184f3b5b62c71b42960fbd62e1c63bf6 WHIRLPOOL d48c6fd6f05349139b8d3fc847d479ad4bfa28ad2fec42f58660ce482955548e961fd19efab5969f686ca2e528d0b38686d255778b9a0812d8c0eccd255435c5 |
23 |
|
24 |
diff --git a/dev-ml/yojson/yojson-1.4.0.ebuild b/dev-ml/yojson/yojson-1.4.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..5de703f5a05 |
27 |
--- /dev/null |
28 |
+++ b/dev-ml/yojson/yojson-1.4.0.ebuild |
29 |
@@ -0,0 +1,38 @@ |
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="JSON parsing and pretty-printing library for OCaml" |
38 |
+HOMEPAGE="http://mjambon.com/yojson.html https://github.com/mjambon/yojson" |
39 |
+SRC_URI="https://github.com/mjambon/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+ |
41 |
+SLOT="0/${PV}" |
42 |
+LICENSE="BSD" |
43 |
+KEYWORDS="~amd64" |
44 |
+IUSE="examples" |
45 |
+ |
46 |
+RDEPEND=">=dev-lang/ocaml-3.11:=[ocamlopt] |
47 |
+ dev-ml/easy-format:=[ocamlopt] |
48 |
+ >=dev-ml/biniou-1.2:=[ocamlopt] |
49 |
+" |
50 |
+DEPEND="${RDEPEND} |
51 |
+ dev-ml/cppo |
52 |
+ dev-ml/jbuilder |
53 |
+ dev-ml/cppo |
54 |
+" |
55 |
+ |
56 |
+src_install() { |
57 |
+ opam-installer -i \ |
58 |
+ --prefix="${ED}/usr" \ |
59 |
+ --libdir="${D}/$(ocamlc -where)" \ |
60 |
+ --docdir="${ED}/usr/share/doc/${PF}" \ |
61 |
+ ${PN}.install || die |
62 |
+ |
63 |
+ if use examples ; then |
64 |
+ dodoc -r examples |
65 |
+ docompress -x /usr/share/doc/${PF}/examples |
66 |
+ fi |
67 |
+} |