dev-ml/ppx_pipebang: initial import; ebuild by me
authorAlexis Ballier <aballier@gentoo.org>
Fri, 5 Feb 2016 18:24:29 +0000 (19:24 +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_pipebang/Manifest [new file with mode: 0644]
dev-ml/ppx_pipebang/metadata.xml [new file with mode: 0644]
dev-ml/ppx_pipebang/ppx_pipebang-113.24.00.ebuild [new file with mode: 0644]

diff --git a/dev-ml/ppx_pipebang/Manifest b/dev-ml/ppx_pipebang/Manifest
new file mode 100644 (file)
index 0000000..125213d
--- /dev/null
@@ -0,0 +1 @@
+DIST ppx_pipebang-113.24.00.tar.gz 51430 SHA256 11bc7a7c62e3fc6ac3d437c1411e746ccc01d23b1bbdcc5333c562dc343ddcf0 SHA512 12f918ca1c8d16163009f12af2bc8b5652918d53905fb7c85587925960ff483e671eb210ee93c74002375cd608cbc3fd257dd28acc7963ffd227aeb2217f5041 WHIRLPOOL 20076a4da7633d9d0fe930b2d827f8069b72924a1d1e44f3f4175193116180911c27971ff2834406af81e73a1664c1c59f33d87cd3ba1d0d5e29506581f543b0
diff --git a/dev-ml/ppx_pipebang/metadata.xml b/dev-ml/ppx_pipebang/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_pipebang/ppx_pipebang-113.24.00.ebuild b/dev-ml/ppx_pipebang/ppx_pipebang-113.24.00.ebuild
new file mode 100644 (file)
index 0000000..ae35794
--- /dev/null
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit oasis
+
+DESCRIPTION="A ppx rewriter that inlines reverse application operators |> and |!"
+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:=
+"
+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 README.md
+}