1 |
commit: 684d124882f0382d155a831a9bfb3a42e5c76240 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 22 18:51:57 2016 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 22 20:07:32 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=684d1248 |
7 |
|
8 |
dev-ml/js_of_ocaml: bump to 2.8.4 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-ml/js_of_ocaml/Manifest | 1 + |
13 |
dev-ml/js_of_ocaml/js_of_ocaml-2.8.4.ebuild | 66 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 67 insertions(+) |
15 |
|
16 |
diff --git a/dev-ml/js_of_ocaml/Manifest b/dev-ml/js_of_ocaml/Manifest |
17 |
index 7cd7991..5f4b5ea 100644 |
18 |
--- a/dev-ml/js_of_ocaml/Manifest |
19 |
+++ b/dev-ml/js_of_ocaml/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST js_of_ocaml-2.8.3.tar.gz 1335811 SHA256 a77e9d4896431742604cba69fb87f9022587de86f2c6d41a6b58e9c24b103c77 SHA512 89908f3da1846f4fe24e1109ba262507221ed67d58bec1d8b7c53ec82438febbab66bdb3bec697e2880842253777167ef1563687cae414426e8ea1dcc00a323a WHIRLPOOL b299214ed367f7aa2252a76a7d49f68f219aaf3ab9901eafa354e937a7dbe4913657a6c1c6fdc85337d63c04b90a5f835b3cf9c321840528188a496f6bfc3d37 |
22 |
+DIST js_of_ocaml-2.8.4.tar.gz 1344082 SHA256 74edd38a964fcee930778a908c896b5c9795f64fc34a3c58361ccfa441811725 SHA512 8dc65bac7d60f2d3534e31e0fddb061f1b97bfd8146b1a34b4a1a516574c6a39f66d115646aa9767b7e24a51ec76949b05841088601f97d76972c8899a50c4fd WHIRLPOOL bc444184519ae90d308ae4675078e1d5fd461ea32f4dccf5e74bab25f0a0e8ba49d229f951205effd676b337656633fb7046cd908c2167799253dcee0a61f20f |
23 |
|
24 |
diff --git a/dev-ml/js_of_ocaml/js_of_ocaml-2.8.4.ebuild b/dev-ml/js_of_ocaml/js_of_ocaml-2.8.4.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000..1eb80bd |
27 |
--- /dev/null |
28 |
+++ b/dev-ml/js_of_ocaml/js_of_ocaml-2.8.4.ebuild |
29 |
@@ -0,0 +1,66 @@ |
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 eutils |
37 |
+ |
38 |
+DESCRIPTION="A compiler from OCaml bytecode to javascript" |
39 |
+HOMEPAGE="http://ocsigen.org/js_of_ocaml/" |
40 |
+ |
41 |
+if [ "${PV#9999}" != "${PV}" ] ; then |
42 |
+ inherit git-r3 |
43 |
+ SRC_URI="" |
44 |
+ EGIT_REPO_URI="https://github.com/ocsigen/js_of_ocaml" |
45 |
+ KEYWORDS="" |
46 |
+else |
47 |
+ SRC_URI="https://github.com/ocsigen/js_of_ocaml/archive/${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+ KEYWORDS="~amd64" |
49 |
+fi |
50 |
+ |
51 |
+LICENSE="LGPL-2.1-with-linking-exception" |
52 |
+SLOT="0/${PV}" |
53 |
+IUSE="+async +ocamlopt doc +deriving +ppx +ppx-deriving +react +xml X" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ >=dev-lang/ocaml-3.12:=[ocamlopt?,X?] |
57 |
+ >=dev-ml/lwt-2.4.4:=[camlp4(+)] |
58 |
+ async? ( dev-ml/async_kernel:= ) |
59 |
+ react? ( dev-ml/react:= dev-ml/reactiveData:= ) |
60 |
+ xml? ( >=dev-ml/tyxml-4:= ) |
61 |
+ ppx? ( dev-ml/ppx_tools:= ) |
62 |
+ ppx-deriving? ( dev-ml/ppx_deriving:= ) |
63 |
+ dev-ml/cmdliner:= |
64 |
+ dev-ml/menhir:= |
65 |
+ dev-ml/ocaml-base64:= |
66 |
+ dev-ml/camlp4:= |
67 |
+ dev-ml/cppo:= |
68 |
+ dev-ml/uchar:= |
69 |
+ dev-ml/ocamlbuild:= |
70 |
+ deriving? ( >=dev-ml/deriving-0.6:= )" |
71 |
+DEPEND="${RDEPEND}" |
72 |
+ |
73 |
+src_configure() { |
74 |
+ printf "\n\n" >> Makefile.conf |
75 |
+ use ocamlopt || echo "BEST := byte" >> Makefile.conf |
76 |
+ use ocamlopt || echo "NATDYNLINK := NO" >> Makefile.conf |
77 |
+ use deriving || echo "WITH_DERIVING := NO" >> Makefile.conf |
78 |
+ use X || echo "WITH_GRAPHICS := NO" >> Makefile.conf |
79 |
+ use react || echo "WITH_REACT := NO" >> Makefile.conf |
80 |
+ use ppx || echo "WITH_PPX := NO" >> Makefile.conf |
81 |
+ use ppx-deriving || echo "WITH_PPX_PPX_DERIVING := NO" >> Makefile.conf |
82 |
+ use async || echo "WITH_ASYNC := NO" >> Makefile.conf |
83 |
+} |
84 |
+ |
85 |
+src_compile() { |
86 |
+ emake -j1 |
87 |
+ use doc && emake doc |
88 |
+} |
89 |
+ |
90 |
+src_install() { |
91 |
+ findlib_src_preinst |
92 |
+ emake BINDIR="${ED}/usr/bin/" install |
93 |
+ dodoc CHANGES README.md |
94 |
+ use doc && dohtml -r doc/api/html/ |
95 |
+} |