Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/js_of_ocaml/
Date: Mon, 11 Jul 2016 07:58:56
Message-Id: 1468223922.d467378f4b10354c9f7e4baf87086a3d93b447c2.aballier@gentoo
1 commit: d467378f4b10354c9f7e4baf87086a3d93b447c2
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 4 10:14:43 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 11 07:58:42 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d467378f
7
8 dev-ml/js_of_ocaml: bump to 2.8.1
9
10 Package-Manager: portage-2.3.0
11
12 dev-ml/js_of_ocaml/Manifest | 1 +
13 dev-ml/js_of_ocaml/js_of_ocaml-2.8.1.ebuild | 57 +++++++++++++++++++++++++++++
14 2 files changed, 58 insertions(+)
15
16 diff --git a/dev-ml/js_of_ocaml/Manifest b/dev-ml/js_of_ocaml/Manifest
17 index 019ba1b..1e574d2 100644
18 --- a/dev-ml/js_of_ocaml/Manifest
19 +++ b/dev-ml/js_of_ocaml/Manifest
20 @@ -1,2 +1,3 @@
21 DIST js_of_ocaml-2.7.tar.gz 1304487 SHA256 52922f55428a1d8a55ec2493c4989152e06efd29a981adf8ac9f343f558854b5 SHA512 ab6e5d16342bf763c10eb5c2e7589610622034eee2ad82aa09c6f68448f155a5c56584702307852b251bde80146c1b7115ed6add1358ad96b130c9dd2b96118b WHIRLPOOL 278c17432fdf9bf670df33479c68705868be39eb4d53f67fc489fe44ac2e7645dd5e2ed3e6e71752a2387b516ce0ab6dc99ac1d870fc75ffdad9df87031e9de4
22 +DIST js_of_ocaml-2.8.1.tar.gz 1329825 SHA256 954ed80b3f37e10666e36ffa3c1d846e1913b8c7be9f0af79889f829b1333e1e SHA512 bce4b173c29396ce7f28f12afd3185cdf402150a7390b9f5a21f14f71e72b3e5ae16234ed65e9d7b18ed2c0de524b658495d62d4673dfe3e61d5f0556b5a125c WHIRLPOOL ac66e7fa70e7365dc5a404d95b9f14186d727756df3aaebfa5d433237d33cb1f070ad74db12136b2a2b2db75b3eac127729343838f361000f962f2a5bc309d79
23 DIST js_of_ocaml-2.8.tar.gz 1330364 SHA256 98564d9a36025edb5edd9d58c565fc7b38a3b49f9b8e32d7dc29289d443894b0 SHA512 914b2a1a452acd494c3373fa65e858c2747bd7d946d6077320429160d4172f627978a0b4ee526fc6e39378dffc9c965b81e5a1f16eba1f60529e4a6b5f474c1e WHIRLPOOL cfb71c97c3c43e873dc1f83b26ccacf93be846940596e99f004e6539c5bfa15e810d290b254c4bfecce65133dc6b79247c3cb2cd301297b6062ac6526147f94d
24
25 diff --git a/dev-ml/js_of_ocaml/js_of_ocaml-2.8.1.ebuild b/dev-ml/js_of_ocaml/js_of_ocaml-2.8.1.ebuild
26 new file mode 100644
27 index 0000000..58bce36
28 --- /dev/null
29 +++ b/dev-ml/js_of_ocaml/js_of_ocaml-2.8.1.ebuild
30 @@ -0,0 +1,57 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +
37 +inherit findlib eutils
38 +
39 +DESCRIPTION="A compiler from OCaml bytecode to javascript"
40 +HOMEPAGE="http://ocsigen.org/js_of_ocaml/"
41 +SRC_URI="https://github.com/ocsigen/js_of_ocaml/archive/${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="LGPL-2.1-with-linking-exception"
44 +SLOT="0/${PV}"
45 +KEYWORDS="~amd64"
46 +IUSE="+async +ocamlopt doc +deriving +ppx +ppx-deriving +react +xml X"
47 +
48 +RDEPEND="
49 + >=dev-lang/ocaml-3.12:=[ocamlopt?,X?]
50 + >=dev-ml/lwt-2.4.4:=
51 + async? ( dev-ml/async_kernel:= )
52 + react? ( dev-ml/react:= dev-ml/reactiveData:= )
53 + xml? ( >=dev-ml/tyxml-4:= )
54 + ppx? ( dev-ml/ppx_tools:= )
55 + ppx-deriving? ( dev-ml/ppx_deriving:= )
56 + dev-ml/cmdliner:=
57 + dev-ml/menhir:=
58 + dev-ml/ocaml-base64:=
59 + dev-ml/camlp4:=
60 + dev-ml/cppo:=
61 + deriving? ( >=dev-ml/deriving-0.6:= )"
62 +DEPEND="${RDEPEND}
63 + dev-ml/ocamlbuild"
64 +
65 +src_configure() {
66 + printf "\n\n" >> Makefile.conf
67 + use ocamlopt || echo "BEST := byte" >> Makefile.conf
68 + use ocamlopt || echo "NATDYNLINK := NO" >> Makefile.conf
69 + use deriving || echo "WITH_DERIVING := NO" >> Makefile.conf
70 + use X || echo "WITH_GRAPHICS := NO" >> Makefile.conf
71 + use react || echo "WITH_REACT := NO" >> Makefile.conf
72 + use ppx || echo "WITH_PPX := NO" >> Makefile.conf
73 + use ppx-deriving || echo "WITH_PPX_PPX_DERIVING := NO" >> Makefile.conf
74 + use async || echo "WITH_ASYNC := NO" >> Makefile.conf
75 +}
76 +
77 +src_compile() {
78 + emake -j1
79 + use doc && emake doc
80 +}
81 +
82 +src_install() {
83 + findlib_src_preinst
84 + emake BINDIR="${ED}/usr/bin/" install
85 + dodoc CHANGES README.md
86 + use doc && dohtml -r doc/api/html/
87 +}