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

index 7800841951f4ae3df08f1d07e7dc38edc8ae0868..65a421984f334643486bceafefc4cea6f36e531c 100644 (file)
@@ -21,13 +21,24 @@ DEPEND="dev-ml/ppx_tools:=
        dev-ml/ppx_core:="
 
 RDEPEND="${DEPEND}"
-DEPEND="${DEPEND} dev-ml/oasis"
+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_prepare() {
-       sed -i -e "s/Executable ppx/Executable ${PN}/" _oasis || die
-       oasis setup || die
+src_install() {
+       opam-installer -i \
+               --prefix="${ED}/usr" \
+               --libdir="${D}/$(ocamlc -where)" \
+               --docdir="${ED}/usr/share/doc/${PF}" \
+               ${PN}.install || die
+       dodoc CHANGES.md
 }