You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ml/angstrom/angstrom-0.6.0.ebuild

47 lines
914 B

# 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 -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="test"
RDEPEND="
dev-lang/ocaml:=
dev-ml/ocaml-cstruct:=
dev-ml/ocplib-endian:=
dev-ml/result:=
"
DEPEND="${RDEPEND}
dev-ml/jbuilder
dev-ml/opam
test? ( dev-ml/alcotest )"
# needs old alcotest...
RESTRICT="test"
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
}