From 8ff8bb457559d9f69d27a1747e0b9979d7065018 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 16 Oct 2016 13:38:41 +0200 Subject: [PATCH] dev-ocaml/batteries: initial import of version 2.5.0 Change-Id: I9e09e4517a37edb6581c24239dcd242151d61074 Reviewed-on: https://galileo.mailstation.de/gerrit/7418 Reviewed-by: Jenkins Reviewed-by: Julian Ospald --- .../batteries/batteries-2.5.0.exheres-0 | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 packages/dev-ocaml/batteries/batteries-2.5.0.exheres-0 diff --git a/packages/dev-ocaml/batteries/batteries-2.5.0.exheres-0 b/packages/dev-ocaml/batteries/batteries-2.5.0.exheres-0 new file mode 100644 index 00000000..72c83369 --- /dev/null +++ b/packages/dev-ocaml/batteries/batteries-2.5.0.exheres-0 @@ -0,0 +1,36 @@ +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require github [ user="ocaml-batteries-team" project="batteries-included" tag="v${PV}" ] + +SUMMARY="A comprehensive standard library for OCaml" +HOMEPAGE="http://ocaml-batteries-team.github.io/batteries-included/hdoc2/ ${HOMEPAGE}" + +LICENCES="LGPL-2.1" +SLOT="0" +PLATFORMS="~amd64" +MYOPTIONS="" + +DEPENDENCIES=" + build: + dev-ocaml/findlib + dev-ocaml/ocamlbuild + build+run: + dev-lang/ocaml +" + +BUGS_TO="hasufell@posteo.de" + +src_compile() { + OCAMLBUILD="ocamlbuild -no-links" emake -j1 all doc +} + +src_install() { + local ocaml_dest="$(/usr/$(exhost --target)/bin/ocamlfind printconf destdir)" + export OCAMLFIND_DESTDIR="${IMAGE%/}/${ocaml_dest}" + dodir "${ocaml_dest}" + + OCAMLBUILD="ocamlbuild -no-links" emake install + DOCROOT="${IMAGE%/}/usr/share/doc/${PNVR}/" emake install-doc +} +