Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
>=dev-lang/ocaml-4.02.3:=[ocamlopt?]"
RDEPEND="${DEPEND}"
DEPEND="${RDEPEND}
+ dev-ml/opam
test? ( dev-ml/ounit )"
src_compile() {
}
src_install() {
- findlib_src_preinst
- # Copied from upstream makefile
- grep -E '^[[:space:]]+' ppx_deriving.install | \
- awk '{ print $1 }' | \
- sed -e 's:"?*::g' | \
- xargs ocamlfind install ppx_deriving || die
+ opam-installer -i \
+ --prefix="${ED}/usr" \
+ --libdir="${D}/$(ocamlc -where)" \
+ --docdir="${ED}/usr/share/doc/${PF}" \
+ ${PN}.install || die
+ mv "${ED}/usr/lib/ppx_deriving/ppx_deriving" "${D}/$(ocamlc -where)/ppx_deriving/" || die
use doc && dohtml api.docdir/*