commit:     368bf1d4336df0a76cfbeed8323487405791a084
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  9 10:56:17 2017 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Mon Jan  9 11:08:24 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=368bf1d4

dev-ml/topkg: stop using opam-installer as it is an opam dep, bug #601906

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-ml/topkg/topkg-0.8.1.ebuild | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/dev-ml/topkg/topkg-0.8.1.ebuild b/dev-ml/topkg/topkg-0.8.1.ebuild
index 74067f1..806ffe6 100644
--- a/dev-ml/topkg/topkg-0.8.1.ebuild
+++ b/dev-ml/topkg/topkg-0.8.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -17,18 +17,16 @@ IUSE=""
 
 RDEPEND="dev-ml/result:=
        dev-lang/ocaml:="
-DEPEND="${RDEPEND}
-       dev-ml/opam"
+DEPEND="${RDEPEND}"
 
 src_compile() {
        ocaml pkg/pkg.ml build --pkg-name ${PN} || die
 }
 
 src_install() {
-       opam-installer -i \
-               --prefix="${ED}/usr" \
-               --libdir="${D}/$(ocamlc -where)" \
-               --docdir="${ED}/usr/share/doc/${PF}" \
-               ${PN}.install || die
+       # Can't use opam-installer here as it is an opam dep...
+       findlib_src_preinst
+       local nativelibs="$(echo _build/src/${PN}*.cm{x,xa,xs,ti} 
_build/src/${PN}.a)"
+       ocamlfind install ${PN} _build/pkg/META _build/src/${PN}.mli 
_build/src/${PN}.cm{a,i} ${nativelibs} || die
        dodoc CHANGES.md DEVEL.md README.md
 }

Reply via email to