1 |
commit: 167ed412edc215b1db22e446ea525285acf57fa0 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 27 09:02:24 2016 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 27 10:31:35 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=167ed412 |
7 |
|
8 |
dev-ml/ppx_deriving: bump to 4.0 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-ml/ppx_deriving/Manifest | 1 + |
13 |
dev-ml/ppx_deriving/ppx_deriving-4.0.ebuild | 54 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 55 insertions(+) |
15 |
|
16 |
diff --git a/dev-ml/ppx_deriving/Manifest b/dev-ml/ppx_deriving/Manifest |
17 |
index f23ba37..bfd7ada 100644 |
18 |
--- a/dev-ml/ppx_deriving/Manifest |
19 |
+++ b/dev-ml/ppx_deriving/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST ppx_deriving-3.3.tar.gz 43707 SHA256 6e7424f36cc35d1266acc3dcec0371913fec432d1fd5b4892a009e2db26140c8 SHA512 d8c4a289c62f4b2e4a1affcf6225c5929dd45fb705714b7071b0c01609c0bf833b0367d35f95cac344ad9d06a954f86b8c440729193112d723442f790a5c2af3 WHIRLPOOL 121ffbafd1314ffdcbc593808e691f5c3e370c62bc4bac3608eac565fabe8af1a55522b3e79dfafbf5b65f497486851c1d5aaa15d44fe6f3e8e56504353deb65 |
22 |
+DIST ppx_deriving-4.0.tar.gz 45941 SHA256 df2cc4d752e70cbb13ceadae620fbb25e94913a50633f1829e6a8a2c57c278b2 SHA512 1487650ca70b5e7402f49d533aa9d6fb7d2dbf84d8c0e2a12b22659814e7c003577a793376f3848047423e6502e50e5be3714c8fca10bd518818e64c8a09f660 WHIRLPOOL 0952372e94021827fe4c959a9d50e8418efc7252d6085d269affba0d8fdc7c48d5e7905ace06ac9882e3741c3469b0ffcfaa009ef6723c01e76fbc7f209d5540 |
23 |
|
24 |
diff --git a/dev-ml/ppx_deriving/ppx_deriving-4.0.ebuild b/dev-ml/ppx_deriving/ppx_deriving-4.0.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..17feda3 |
27 |
--- /dev/null |
28 |
+++ b/dev-ml/ppx_deriving/ppx_deriving-4.0.ebuild |
29 |
@@ -0,0 +1,54 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI="5" |
35 |
+ |
36 |
+inherit findlib |
37 |
+ |
38 |
+DESCRIPTION="Type-driven code generation for OCaml" |
39 |
+HOMEPAGE="https://github.com/whitequark/ppx_deriving" |
40 |
+SRC_URI="https://github.com/whitequark/ppx_deriving/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="MIT" |
43 |
+SLOT="0/${PV}" |
44 |
+KEYWORDS="~amd64" |
45 |
+IUSE="doc +ocamlopt test" |
46 |
+ |
47 |
+DEPEND="dev-ml/ppx_tools:= |
48 |
+ >=dev-lang/ocaml-4.02.3:=[ocamlopt?]" |
49 |
+RDEPEND="${DEPEND}" |
50 |
+DEPEND="${RDEPEND} |
51 |
+ dev-ml/opam |
52 |
+ test? ( dev-ml/ounit )" |
53 |
+ |
54 |
+src_compile() { |
55 |
+ cp pkg/META.in pkg/META || die |
56 |
+ ocaml pkg/build.ml \ |
57 |
+ native=$(usex ocamlopt true false) \ |
58 |
+ native-dynlink=$(usex ocamlopt true false) \ |
59 |
+ || die |
60 |
+ use doc && emake doc |
61 |
+} |
62 |
+ |
63 |
+src_test() { |
64 |
+ ocamlbuild -j 0 -use-ocamlfind -classic-display \ |
65 |
+ src_test/test_ppx_deriving.byte -- || die |
66 |
+ if use ocamlopt; then |
67 |
+ ocamlbuild -j 0 -use-ocamlfind -classic-display \ |
68 |
+ src_test/test_ppx_deriving.native -- || die |
69 |
+ fi |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ opam-installer -i \ |
74 |
+ --prefix="${ED}/usr" \ |
75 |
+ --libdir="${D}/$(ocamlc -where)" \ |
76 |
+ --docdir="${ED}/usr/share/doc/${PF}" \ |
77 |
+ ${PN}.install || die |
78 |
+ mv "${ED}/usr/lib/ppx_deriving/ppx_deriving" "${D}/$(ocamlc -where)/ppx_deriving/" || die |
79 |
+ |
80 |
+ use doc && dohtml api.docdir/* |
81 |
+ |
82 |
+ dodoc CHANGELOG.md README.md |
83 |
+} |