dev-ml/jbuilder: convert to opam.eclass

Package-Manager: Portage-2.3.6, Repoman-2.3.3
This commit is contained in:
Alexis Ballier
2017-08-02 12:38:53 +02:00
parent 880590a848
commit 19d34c8b89

View File

@@ -3,6 +3,8 @@
EAPI=5
inherit opam
MY_PV="${PV/_/+}"
MY_P="${PN}-${PV/_/-}"
@@ -15,10 +17,9 @@ SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
IUSE="test"
DEPEND="dev-lang/ocaml:="
DEPEND=""
RDEPEND="${DEPEND}"
DEPEND="${DEPEND}
dev-ml/opam
test? ( dev-ml/menhir )
"
OPAMSWITCH="system"
@@ -30,12 +31,3 @@ src_prepare() {
# Disable Werror like behavior, doesnt build with ocaml 4.05 otherwise
sed -i -e 's/--dev//' Makefile || die
}
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
}