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/reason-parser/
Date: Sat, 01 Apr 2017 12:25:13
Message-Id: 1491049483.c932babce8c9c3a4c7e10ec57c45c814b01a056c.aballier@gentoo
1 commit: c932babce8c9c3a4c7e10ec57c45c814b01a056c
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 1 11:17:16 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 1 12:24:43 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c932babc
7
8 dev-ml/reason-parser: Initial import. Ebuild by me.
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 dev-ml/reason-parser/Manifest | 1 +
13 dev-ml/reason-parser/metadata.xml | 8 ++++
14 dev-ml/reason-parser/reason-parser-1.13.3.ebuild | 50 ++++++++++++++++++++++++
15 3 files changed, 59 insertions(+)
16
17 diff --git a/dev-ml/reason-parser/Manifest b/dev-ml/reason-parser/Manifest
18 new file mode 100644
19 index 00000000000..8a45cb0d2a8
20 --- /dev/null
21 +++ b/dev-ml/reason-parser/Manifest
22 @@ -0,0 +1 @@
23 +DIST reason-parser-1.13.3.tar.gz 10253108 SHA256 b92840f8238dd6266c5678da3e4dc832776bcc98990ac47773020e34dce708a6 SHA512 82398fbbf72bcadfc868e5f33e8666ef80ef610f8313d08bc16593944569b7a16693fcc6397a117518bf8e32f71083f0ac4a416112f97cd220715f4293136b84 WHIRLPOOL a82dd8e28a012ed0716fba6bc79eee849110bfb42cd8221eb15847cadae90d62d909e635f3da465c6220382d6eee62f2f69a739d96d3d6a5baddc58623cd059e
24
25 diff --git a/dev-ml/reason-parser/metadata.xml b/dev-ml/reason-parser/metadata.xml
26 new file mode 100644
27 index 00000000000..ffac4d7ebc0
28 --- /dev/null
29 +++ b/dev-ml/reason-parser/metadata.xml
30 @@ -0,0 +1,8 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 +<maintainer type="project">
35 + <email>ml@g.o</email>
36 + <name>Gentoo ML Project</name>
37 +</maintainer>
38 +</pkgmetadata>
39
40 diff --git a/dev-ml/reason-parser/reason-parser-1.13.3.ebuild b/dev-ml/reason-parser/reason-parser-1.13.3.ebuild
41 new file mode 100644
42 index 00000000000..e9a7ae9ee3b
43 --- /dev/null
44 +++ b/dev-ml/reason-parser/reason-parser-1.13.3.ebuild
45 @@ -0,0 +1,50 @@
46 +# Copyright 1999-2017 Gentoo Foundation
47 +# Distributed under the terms of the GNU General Public License v2
48 +
49 +EAPI=6
50 +
51 +inherit findlib
52 +
53 +DESCRIPTION="Meta Language Toolchain"
54 +HOMEPAGE="https://github.com/facebook/reason"
55 +SRC_URI="https://github.com/facebook/reason/archive/${PV}.tar.gz -> ${P}.tar.gz"
56 +
57 +LICENSE="BSD"
58 +SLOT="0/${PV}"
59 +KEYWORDS="~amd64"
60 +IUSE="+ocamlopt"
61 +
62 +DEPEND="
63 + dev-lang/ocaml:=[ocamlopt?]
64 + dev-ml/menhir:=
65 + dev-ml/merlin-extend:=
66 + dev-ml/result:=
67 + dev-ml/topkg:=
68 + dev-ml/ocaml-migrate-parsetree:=
69 + dev-ml/ppx_tools_versioned:=
70 +"
71 +RDEPEND="${DEPEND}"
72 +DEPEND="${DEPEND}
73 + dev-ml/ocamlbuild
74 + dev-ml/opam
75 +"
76 +
77 +S="${WORKDIR}/reason-${PV}/${PN}"
78 +
79 +src_compile() {
80 + emake compile_error
81 + ocamlbuild -package topkg pkg/build.native || die
82 + ./build.native build \
83 + --native "$(usex ocamlopt true false)" \
84 + --native-dynlink "$(usex ocamlopt true false)" \
85 + || die
86 +}
87 +
88 +src_install() {
89 + opam-installer -i \
90 + --prefix="${ED}/usr" \
91 + --libdir="${D}/$(ocamlc -where)" \
92 + --docdir="${ED}/usr/share/doc/${PF}" \
93 + --mandir="${ED}/usr/share/man" \
94 + ${PN}.install || die
95 +}