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/ocaml-compiler-libs/
Date: Sat, 01 Apr 2017 13:25:39
Message-Id: 1491053127.c0509acd103d992bca60f80b05e20c8b980ea516.aballier@gentoo
1 commit: c0509acd103d992bca60f80b05e20c8b980ea516
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 1 13:18:53 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 1 13:25:27 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0509acd
7
8 dev-ml/ocaml-compiler-libs: Initial import. Ebuild by me.
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 dev-ml/ocaml-compiler-libs/Manifest | 1 +
13 dev-ml/ocaml-compiler-libs/metadata.xml | 8 +++++++
14 .../ocaml-compiler-libs-0.9.0.ebuild | 28 ++++++++++++++++++++++
15 3 files changed, 37 insertions(+)
16
17 diff --git a/dev-ml/ocaml-compiler-libs/Manifest b/dev-ml/ocaml-compiler-libs/Manifest
18 new file mode 100644
19 index 00000000000..0e0e6c6daf0
20 --- /dev/null
21 +++ b/dev-ml/ocaml-compiler-libs/Manifest
22 @@ -0,0 +1 @@
23 +DIST ocaml-compiler-libs-0.9.0.tar.gz 6937 SHA256 74944fba8a66966aa73366d030aa01b631856b73e26bbb0aa81ffa9e774ceed8 SHA512 ee0751bcfb9cb75d272f7af4f7da184c0a8e348384a2481da9dea0245a4133de908a23d0a324e0353397a4f0c5bfd71d40a6a46dbd8e4acea922bad7cdc5ef64 WHIRLPOOL 3c051095613ed1faede5f77e73a289cc17091d6d7455ed96491a3c4f25ceda1057691ebbee24b390e401b9ecb5344e9edf135e4906f648a6aa27cd9e38e1cd2e
24
25 diff --git a/dev-ml/ocaml-compiler-libs/metadata.xml b/dev-ml/ocaml-compiler-libs/metadata.xml
26 new file mode 100644
27 index 00000000000..ffac4d7ebc0
28 --- /dev/null
29 +++ b/dev-ml/ocaml-compiler-libs/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/ocaml-compiler-libs/ocaml-compiler-libs-0.9.0.ebuild b/dev-ml/ocaml-compiler-libs/ocaml-compiler-libs-0.9.0.ebuild
41 new file mode 100644
42 index 00000000000..a7eb91fb1ad
43 --- /dev/null
44 +++ b/dev-ml/ocaml-compiler-libs/ocaml-compiler-libs-0.9.0.ebuild
45 @@ -0,0 +1,28 @@
46 +# Copyright 1999-2017 Gentoo Foundation
47 +# Distributed under the terms of the GNU General Public License v2
48 +
49 +EAPI=6
50 +
51 +DESCRIPTION="Repackage the OCaml compiler libraries so they do not expose everything at toplevel"
52 +HOMEPAGE="https://github.com/janestreet/ocaml-compiler-libs"
53 +SRC_URI="https://github.com/janestreet/ocaml-compiler-libs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
54 +
55 +LICENSE="Apache-2.0"
56 +SLOT="0/${PV}"
57 +KEYWORDS="~amd64"
58 +IUSE=""
59 +
60 +DEPEND="dev-lang/ocaml:="
61 +RDEPEND="${DEPEND}"
62 +DEPEND="${RDEPEND}
63 + dev-ml/opam
64 + dev-ml/jbuilder"
65 +
66 +src_install() {
67 + opam-installer -i \
68 + --prefix="${ED}/usr" \
69 + --libdir="${D}/$(ocamlc -where)" \
70 + --docdir="${ED}/usr/share/doc/${PF}" \
71 + --mandir="${ED}/usr/share/man" \
72 + ${PN}.install || die
73 +}