1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 MY_PV="${PV/_beta/-beta}"
9 S="${WORKDIR}/${PN}-${MY_PV}"
11 DESCRIPTION="Parser and printer for the opam file syntax"
12 HOMEPAGE="https://github.com/ocaml/opam-file-format"
13 SRC_URI="https://github.com/ocaml/opam-file-format/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
20 DEPEND="dev-lang/ocaml:=[ocamlopt?]"
24 emake byte $(usex ocamlopt native "")
28 emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="$(ocamlc -where)" install