dev-ml/ppx_bin_prot: Use proper install method
authorAlexis Ballier <aballier@gentoo.org>
Fri, 5 Feb 2016 16:57:03 +0000 (17:57 +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_bin_prot/ppx_bin_prot-113.24.00.ebuild

index b807702aa32a57ab93375c1e25b96f790ca2f13a..50cf6692c41d0a1fa1ddb8a4916e668931d85d8b 100644 (file)
@@ -23,7 +23,24 @@ DEPEND="dev-ml/ppx_tools:=
        "
 
 RDEPEND="${DEPEND}"
+DEPEND="${DEPEND} dev-ml/opam"
 
 S="${WORKDIR}/${MY_P}"
 
-DOCS=( CHANGES.md )
+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 CHANGES.md
+}