Skip to content

Commit

Permalink
dev-ml/sexplib: 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 27cce2f commit 74f12de
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions dev-ml/sexplib/sexplib-0.9.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

EAPI=6

inherit opam

DESCRIPTION="Library for automated conversion of OCaml-values to and from S-expressions"
HOMEPAGE="https://github.com/janestreet/sexplib"
SRC_URI="https://github.com/janestreet/sexplib/archive/v${PV}.tar.gz -> ${P}.tar.gz"
Expand All @@ -12,18 +14,9 @@ SLOT="0/${PV}"
KEYWORDS="~amd64 ~ppc"
IUSE=""

RDEPEND="dev-lang/ocaml:="
DEPEND="${RDEPEND} dev-ml/opam dev-ml/jbuilder"
RDEPEND=""
DEPEND="${RDEPEND} dev-ml/jbuilder"

src_test() {
jbuilder runtest || die
}

src_install() {
opam-installer -i \
--prefix="${ED}/usr" \
--libdir="${D}/$(ocamlc -where)" \
--docdir="${ED}/usr/share/doc/${PF}" \
${PN}.install || die
dodoc CHANGES.md README.org
}

0 comments on commit 74f12de

Please sign in to comment.