summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-ml/angstrom-unix/Manifest1
-rw-r--r--dev-ml/angstrom-unix/angstrom-unix-0.6.0.ebuild42
-rw-r--r--dev-ml/angstrom-unix/metadata.xml11
3 files changed, 54 insertions, 0 deletions
diff --git a/dev-ml/angstrom-unix/Manifest b/dev-ml/angstrom-unix/Manifest
new file mode 100644
index 000000000000..693923160ef2
--- /dev/null
+++ b/dev-ml/angstrom-unix/Manifest
@@ -0,0 +1 @@
+DIST angstrom-0.6.0.tar.gz 80393 SHA256 9080c6ad32ee5c31ae5b754370328daa5febb219ae2a1e8390fb469622dca7ee SHA512 4b03022f3e8147075653a9740473ce23fc42ba8c559f1b86311132fa1a09cfac0f044cb3a8c9fc2d97f4acef35806b4742606b0af22d6b07058e8a78c6672618 WHIRLPOOL a79f7e522e645b605eabb155c604cf6e2e435e9325551a22efbe5c1b12f57726c8ccdad510ef618cc510b409acc6cb86204630ecb4cf1af6d1adc628bb19dd33
diff --git a/dev-ml/angstrom-unix/angstrom-unix-0.6.0.ebuild b/dev-ml/angstrom-unix/angstrom-unix-0.6.0.ebuild
new file mode 100644
index 000000000000..dafa4f13989e
--- /dev/null
+++ b/dev-ml/angstrom-unix/angstrom-unix-0.6.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit findlib
+
+DESCRIPTION="Parser combinators built for speed and memory efficiency"
+HOMEPAGE="https://github.com/inhabitedtype/angstrom"
+SRC_URI="https://github.com/inhabitedtype/angstrom/archive/${PV}.tar.gz -> angstrom-${PV}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="
+ dev-lang/ocaml:=
+ dev-ml/angstrom:=
+"
+DEPEND="${RDEPEND}
+ dev-ml/jbuilder
+ dev-ml/opam"
+
+S="${WORKDIR}/angstrom-${PV}"
+
+src_compile() {
+ jbuilder build -p ${PN} || die
+}
+
+src_test() {
+ jbuilder runtest -p ${PN}
+}
+
+src_install() {
+ opam-installer -i \
+ --prefix="${ED}/usr" \
+ --libdir="${D}/$(ocamlc -where)" \
+ --docdir="${ED}/usr/share/doc/${PF}" \
+ --mandir="${ED}/usr/share/man" \
+ ${PN}.install || die
+}
diff --git a/dev-ml/angstrom-unix/metadata.xml b/dev-ml/angstrom-unix/metadata.xml
new file mode 100644
index 000000000000..6a85d809eb32
--- /dev/null
+++ b/dev-ml/angstrom-unix/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <upstream>
+ <remote-id type="github">inhabitedtype/angstrom</remote-id>
+ </upstream>
+</pkgmetadata>