35 lines
850 B
Bash
35 lines
850 B
Bash
# 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)
|
|
}
|
|
|
|
|