diff --git a/packages/dev-ocaml/stdint/stdint-0.3.0.exheres-0 b/packages/dev-ocaml/stdint/stdint-0.3.0.exheres-0 new file mode 100644 index 0000000..f6d168b --- /dev/null +++ b/packages/dev-ocaml/stdint/stdint-0.3.0.exheres-0 @@ -0,0 +1,34 @@ +# Copyright 2017 Julian Ospald +# 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//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) +} + +