Skip to content

Commit

Permalink
dev-ml/yojson: convert to opam.eclass
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.6, Repoman-2.3.3
  • Loading branch information
aballier committed Aug 2, 2017
1 parent cc28761 commit a2860b7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions dev-ml/yojson/yojson-1.4.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit a2860b7

Please sign in to comment.