summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2017-08-02 12:38:53 +0200
committerAlexis Ballier <aballier@gentoo.org>2017-08-02 13:22:49 +0200
commit19d34c8b896c102862873640d393e45911fcbd64 (patch)
tree4372e0220409bba0328d7a9f9c892f5351b14f33 /dev-ml/jbuilder
parentdev-ml/jbuilder: Remove old (diff)
downloadgentoo-19d34c8b896c102862873640d393e45911fcbd64.tar.gz
gentoo-19d34c8b896c102862873640d393e45911fcbd64.tar.bz2
gentoo-19d34c8b896c102862873640d393e45911fcbd64.zip
dev-ml/jbuilder: convert to opam.eclass
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'dev-ml/jbuilder')
-rw-r--r--dev-ml/jbuilder/jbuilder-1.0_beta11.ebuild14
1 files changed, 3 insertions, 11 deletions
diff --git a/dev-ml/jbuilder/jbuilder-1.0_beta11.ebuild b/dev-ml/jbuilder/jbuilder-1.0_beta11.ebuild
index f5fac788964e..73b64735ff87 100644
--- a/dev-ml/jbuilder/jbuilder-1.0_beta11.ebuild
+++ b/dev-ml/jbuilder/jbuilder-1.0_beta11.ebuild
@@ -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
-}