1 |
commit: 6f71e643c9ec2ede74fe8bb8f4f58249545952e5 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 27 10:34:34 2017 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 27 10:40:02 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f71e643 |
7 |
|
8 |
dev-ml/ppx_import: bump to 1.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
dev-ml/ppx_import/Manifest | 1 + |
13 |
dev-ml/ppx_import/ppx_import-1.2.ebuild | 47 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 48 insertions(+) |
15 |
|
16 |
diff --git a/dev-ml/ppx_import/Manifest b/dev-ml/ppx_import/Manifest |
17 |
index 1ed9cdf4a37..9b5252b25a1 100644 |
18 |
--- a/dev-ml/ppx_import/Manifest |
19 |
+++ b/dev-ml/ppx_import/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST ppx_import-1.1.tar.gz 12951 SHA256 083f06119fa836939bec273340828c6f2c103cd88bdf775584d2036b8f4d0f5f SHA512 24a1db1f216518fb1302f8de2984bab5ffd33cbabe311d449e3767a96a63b386d11cdfd8f783d48169523a0535754b044841821aa24533d1d1127eb4a8aa42d6 WHIRLPOOL 479223751d0e180e4df3e4e7e36b774ded8284bcf8f67054518dabc6e3c16aae538a964ea4a01528caf78b388f1cd48e3dd487bb141bd0a315c622cd531fb637 |
22 |
+DIST ppx_import-1.2.tar.gz 13244 SHA256 f102bcefe72b8a1007ce9854baefac0c20930fe9db71fc81213e13e35016dfe2 SHA512 384a8f955573c66962383f0e3609e4764cb0056e7d5b7e5811fd9fd17e17ac58baea330131b8eb688cd4202d6e6bd5829fba024524f027201244ff10c86e0f01 WHIRLPOOL 53665ec4ab8109bc762c094535d2082befd887af28cd836bcc4f19e41d924d83e140ef4d660166d7d3198042213bed0275e72c1c58650c58039aa5abd25441d2 |
23 |
|
24 |
diff --git a/dev-ml/ppx_import/ppx_import-1.2.ebuild b/dev-ml/ppx_import/ppx_import-1.2.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..4bb61dd8e17 |
27 |
--- /dev/null |
28 |
+++ b/dev-ml/ppx_import/ppx_import-1.2.ebuild |
29 |
@@ -0,0 +1,47 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=5 |
34 |
+ |
35 |
+DESCRIPTION="A syntax extension for importing declarations from interface files" |
36 |
+HOMEPAGE="https://github.com/whitequark/ppx_import" |
37 |
+SRC_URI="https://github.com/whitequark/ppx_import/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
38 |
+ |
39 |
+LICENSE="MIT" |
40 |
+SLOT="0/${PV}" |
41 |
+KEYWORDS="~amd64" |
42 |
+IUSE="+ocamlopt test" |
43 |
+ |
44 |
+DEPEND=" |
45 |
+ dev-lang/ocaml:=[ocamlopt?] |
46 |
+ dev-ml/ppx_tools:= |
47 |
+ dev-ml/cppo:= |
48 |
+" |
49 |
+RDEPEND="${DEPEND}" |
50 |
+DEPEND="${DEPEND} |
51 |
+ test? ( dev-ml/ounit dev-ml/ppx_deriving ) |
52 |
+ dev-ml/opam |
53 |
+ dev-ml/ocamlbuild |
54 |
+ dev-ml/findlib |
55 |
+" |
56 |
+ |
57 |
+src_compile() { |
58 |
+ cp pkg/META.in pkg/META |
59 |
+ ocaml pkg/build.ml \ |
60 |
+ native=$(usex ocamlopt true false) \ |
61 |
+ native-dynlink=$(usex ocamlopt true false) \ |
62 |
+ || die |
63 |
+} |
64 |
+ |
65 |
+src_test() { |
66 |
+ ocamlbuild -classic-display -use-ocamlfind src_test/test_ppx_import.byte -- || die |
67 |
+} |
68 |
+ |
69 |
+src_install() { |
70 |
+ opam-installer -i \ |
71 |
+ --prefix="${ED}/usr" \ |
72 |
+ --libdir="${D}/$(ocamlc -where)" \ |
73 |
+ --docdir="${T}/dontinstallit" \ |
74 |
+ ${PN}.install || die |
75 |
+ dodoc CHANGELOG.md README.md |
76 |
+} |