From f2637d9b2e35b1da3f8ba07ea6383c1723d9b68c Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 16 Oct 2016 12:08:35 +0200 Subject: [PATCH] dev-ocaml/biniou: initial import Change-Id: I64f50f3d4c9ba872c2301c4933376b4b5dc64e0a Reviewed-on: https://galileo.mailstation.de/gerrit/7422 Reviewed-by: Jenkins Reviewed-by: Julian Ospald --- .../dev-ocaml/biniou/biniou-1.0.12.exheres-0 | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 packages/dev-ocaml/biniou/biniou-1.0.12.exheres-0 diff --git a/packages/dev-ocaml/biniou/biniou-1.0.12.exheres-0 b/packages/dev-ocaml/biniou/biniou-1.0.12.exheres-0 new file mode 100644 index 00000000..754a67cd --- /dev/null +++ b/packages/dev-ocaml/biniou/biniou-1.0.12.exheres-0 @@ -0,0 +1,41 @@ +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require github [ user="mjambon" tag="v${PV}" ] + +SUMMARY="Extensible binary data format, like JSON but faster" +HOMEPAGE="https://mjambon.github.io/atdgen-doc ${HOMEPAGE}" + +LICENCES="BSD-3" +SLOT="0" +PLATFORMS="~amd64 ~x86" +MYOPTIONS="" + +DEPENDENCIES=" + build: + dev-ocaml/findlib + build+run: + dev-lang/ocaml + dev-ocaml/easy-format +" + +BUGS_TO="hasufell@posteo.de" + +DEFAULT_SRC_COMPILE_PARAMS=( + -j1 +) + +src_prepare() { + edo sed -i \ + -e "s#ocamlfind install#ocamlfind install -destdir \"${IMAGE}$(/usr/$(exhost --target)/bin/ocamlfind printconf destdir)\"#" \ + Makefile +} + +src_install() { + dodir "$(/usr/$(exhost --target)/bin/ocamlfind printconf destdir)"/biniou + dodir /usr/$(exhost --target)/bin + emake -j1 \ + BINDIR="${IMAGE%/}/usr/$(exhost --target)/bin" \ + install +} +