Skip to content

Commit

Permalink
dev-ml/react: 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 6, 2017
1 parent 299db0c commit 0ba9bbd
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions dev-ml/react/react-1.2.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

EAPI="5"

inherit opam

DESCRIPTION="OCaml module for functional reactive programming"
HOMEPAGE="http://erratique.ch/software/react https://github.com/dbuenzli/react"
SRC_URI="http://erratique.ch/software/react/releases/${P}.tbz"
Expand All @@ -12,10 +14,9 @@ SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd"
IUSE="test"

RDEPEND=">=dev-lang/ocaml-3.12:="
RDEPEND=""
DEPEND="${RDEPEND}
dev-ml/findlib
dev-ml/opam
>=dev-ml/topkg-0.9
"

Expand All @@ -28,12 +29,3 @@ src_compile() {
src_test() {
ocaml pkg/pkg.ml test || die
}

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

0 comments on commit 0ba9bbd

Please sign in to comment.