dev-ml/typerep: Fix install method and license
authorAlexis Ballier <aballier@gentoo.org>
Fri, 5 Feb 2016 16:55:37 +0000 (17:55 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Fri, 5 Feb 2016 20:59:02 +0000 (21:59 +0100)
Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
dev-ml/typerep/typerep-113.24.00.ebuild

index c5f353aa6fc4dd22835a80b23e9d4b488280bcf5..2dff2b9df0ceeea3f6d35d8eed6712f6e27bc797 100644 (file)
@@ -6,12 +6,11 @@ EAPI="5"
 
 inherit oasis
 
-MY_P=${PN/-/_}-${PV}
 DESCRIPTION="Library for creating runtime representation of OCaml types"
 HOMEPAGE="http://www.janestreet.com/ocaml"
-SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${MY_P}.tar.gz"
+SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${P}.tar.gz"
 
-LICENSE="LGPL-2.1-with-linking-exception"
+LICENSE="Apache-2.0"
 SLOT="0/${PV}"
 KEYWORDS="~amd64"
 IUSE=""
@@ -21,5 +20,22 @@ DEPEND="
        dev-ml/camlp4:="
 
 RDEPEND="${DEPEND}"
+DEPEND="${DEPEND} dev-ml/opam"
 
-S="${WORKDIR}/${MY_P}"
+src_configure() {
+       emake setup.exe
+       OASIS_SETUP_COMMAND="./setup.exe" oasis_src_configure
+}
+
+src_compile() {
+       emake
+}
+
+src_install() {
+       opam-installer -i \
+               --prefix="${ED}/usr" \
+               --libdir="${D}/$(ocamlc -where)" \
+               --docdir="${ED}/usr/share/doc/${PF}" \
+               ${PN}.install || die
+       dodoc CHANGES.md
+}