dev-ml/topkg: stop using opam-installer as it is an opam dep, bug #601906
authorAlexis Ballier <aballier@gentoo.org>
Mon, 9 Jan 2017 10:56:17 +0000 (11:56 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Mon, 9 Jan 2017 11:08:24 +0000 (12:08 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-ml/topkg/topkg-0.8.1.ebuild

index 74067f192f14ec3c6e10fc4b93a4559733a065e6..806ffe6ad905add5845902df6c6b289184e7a247 100644 (file)
@@ -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
 }