diff options
Diffstat (limited to 'dev-ml/angstrom-unix/angstrom-unix-0.6.0.ebuild')
-rw-r--r-- | dev-ml/angstrom-unix/angstrom-unix-0.6.0.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
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 +} |