dev-ocaml/stdint: initial import of version 0.3.0

This commit is contained in:
Julian Ospald 2017-06-24 16:23:38 +02:00
parent 0086c94880
commit 026959c46f
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

View File

@ -0,0 +1,34 @@
# Copyright 2017 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2
require github [ user="andrenth" project="ocaml-${PN}" ]
require oasis
SUMMARY="Various signed and unsigned integers for OCaml"
LICENCES="MIT"
SLOT="0"
PLATFORMS="~amd64"
MYOPTIONS=""
BUGS_TO="hasufell@posteo.de"
src_prepare() {
# sydbox violation: tries to change '/usr/<host>/lib/ocaml/ld.conf'
export OCAMLFIND_LDCONF=ignore
default
}
# need to overwrite prefix and libdir, since
# ocamlfind is invoked in some odd ways and $OCAMLFIND_DESTDIR
# is not consistently respected
src_configure() {
edo ocaml setup.ml \
-configure \
--prefix "${IMAGE}/usr/$(exhost --target)" \
--libdir "${IMAGE}/usr/$(exhost --target)/lib" \
$(expecting_tests --recommended --enable-tests)
}