dev-ml/ppx_variants_conv: initial import; ebuild by me
authorAlexis Ballier <aballier@gentoo.org>
Fri, 5 Feb 2016 18:17:09 +0000 (19:17 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Fri, 5 Feb 2016 20:59:02 +0000 (21:59 +0100)
Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
dev-ml/ppx_variants_conv/Manifest [new file with mode: 0644]
dev-ml/ppx_variants_conv/metadata.xml [new file with mode: 0644]
dev-ml/ppx_variants_conv/ppx_variants_conv-113.24.00.ebuild [new file with mode: 0644]

diff --git a/dev-ml/ppx_variants_conv/Manifest b/dev-ml/ppx_variants_conv/Manifest
new file mode 100644 (file)
index 0000000..ee0051f
--- /dev/null
@@ -0,0 +1 @@
+DIST ppx_variants_conv-113.24.00.tar.gz 55571 SHA256 753ee2c6c9115c4aed5069fd6792c3709bae1fa9f12356641aecd317be18ecd7 SHA512 3e4844defd3f29ee7a2435fefa3de1261e9b205700b3563f6b655d692cceaba17a3545785fd5b449d507312aa9e669b3943be3032151ea7b368f44adffaa64d5 WHIRLPOOL f11e264ddab17294eab0a779312aa0bcad8b0e06568d927fe97b2d5fd693ad56fcd5939147a162c01c00453b7d050e33a8396bcf97044ad88b1ef7c55c4578c5
diff --git a/dev-ml/ppx_variants_conv/metadata.xml b/dev-ml/ppx_variants_conv/metadata.xml
new file mode 100644 (file)
index 0000000..ffac4d7
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+       <email>ml@gentoo.org</email>
+       <name>Gentoo ML Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-ml/ppx_variants_conv/ppx_variants_conv-113.24.00.ebuild b/dev-ml/ppx_variants_conv/ppx_variants_conv-113.24.00.ebuild
new file mode 100644 (file)
index 0000000..54403e9
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit oasis
+
+DESCRIPTION="Generation of accessor and iteration functions for ocaml variant types"
+HOMEPAGE="http://www.janestreet.com/ocaml"
+SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="dev-ml/ppx_tools:=
+       dev-ml/ppx_core:=
+       dev-ml/ppx_driver:=
+       dev-ml/ppx_type_conv:=
+       dev-ml/variantslib:=
+"
+RDEPEND="${DEPEND}"
+DEPEND="${DEPEND} dev-ml/opam"
+
+src_configure() {
+       emake setup.exe
+       OASIS_SETUP_COMMAND="./setup.exe" oasis_src_configure
+}
+
+src_compile() {
+       emake
+}
+
+src_install() {
+       opam-installer -i \
+               --prefix="${ED}/usr" \
+               --libdir="${D}/$(ocamlc -where)" \
+               --docdir="${ED}/usr/share/doc/${PF}" \
+               ${PN}.install || die
+       dodoc CHANGES.md
+}