dev-ml/sexplib: use proper install method
authorAlexis Ballier <aballier@gentoo.org>
Fri, 5 Feb 2016 18:03:45 +0000 (19:03 +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/sexplib/sexplib-113.24.00.ebuild

index ce46cabdaeacd7167a1a14abd70f3c414a0348e5..6b1718d2350286e4ce316bfa3ee9b3ba9637ff1e 100644 (file)
@@ -15,10 +15,26 @@ SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${P}.tar.gz"
 
 LICENSE="Apache-2.0"
 SLOT="0/${PV}"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64"
 IUSE=""
 
 RDEPEND=">=dev-ml/type-conv-113.00.00:="
-DEPEND="${RDEPEND}"
+DEPEND="${RDEPEND} dev-ml/opam"
 
-DOCS=( "README.md" "CHANGES.md" )
+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 README.md
+}