summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2017-08-02 12:09:59 +0200
committerAlexis Ballier <aballier@gentoo.org>2017-08-02 13:22:38 +0200
commita2860b77dc20bc18d7473d63e247383621fd765b (patch)
tree8d9e157412dfdc97e2cc025ad7460e707595f4aa
parentdev-ml/zed: Remove old (diff)
downloadgentoo-a2860b77dc20bc18d7473d63e247383621fd765b.tar.gz
gentoo-a2860b77dc20bc18d7473d63e247383621fd765b.tar.bz2
gentoo-a2860b77dc20bc18d7473d63e247383621fd765b.zip
dev-ml/yojson: convert to opam.eclass
Package-Manager: Portage-2.3.6, Repoman-2.3.3
-rw-r--r--dev-ml/yojson/yojson-1.4.0.ebuild9
1 files changed, 2 insertions, 7 deletions
diff --git a/dev-ml/yojson/yojson-1.4.0.ebuild b/dev-ml/yojson/yojson-1.4.0.ebuild
index 5de703f5a055..e3b9f39c5175 100644
--- a/dev-ml/yojson/yojson-1.4.0.ebuild
+++ b/dev-ml/yojson/yojson-1.4.0.ebuild
@@ -3,7 +3,7 @@
EAPI=5
-inherit findlib
+inherit findlib opam
DESCRIPTION="JSON parsing and pretty-printing library for OCaml"
HOMEPAGE="http://mjambon.com/yojson.html https://github.com/mjambon/yojson"
@@ -21,15 +21,10 @@ RDEPEND=">=dev-lang/ocaml-3.11:=[ocamlopt]
DEPEND="${RDEPEND}
dev-ml/cppo
dev-ml/jbuilder
- dev-ml/cppo
"
src_install() {
- opam-installer -i \
- --prefix="${ED}/usr" \
- --libdir="${D}/$(ocamlc -where)" \
- --docdir="${ED}/usr/share/doc/${PF}" \
- ${PN}.install || die
+ opam_src_install
if use examples ; then
dodoc -r examples