summaryrefslogtreecommitdiff
path: root/homebrew/ocamlnum/.make.sh-auto
blob: 5338aea97cb0969f533a55f7292c5f705b98cb95 (plain)
1
2
3
4
5
6
7
8
9
10
pkg:setup
ENV["OCAMLFIND_DESTDIR"] = lib/"ocaml"
(lib/"ocaml").mkpath
cp Formula["ocaml"].opt_lib/"ocaml/Makefile.config", lib/"ocaml"
inreplace lib/"ocaml/Makefile.config", /^PREFIX=#{HOMEBREW_PREFIX}$/, "PREFIX=#{prefix}"
make
(lib/"ocaml/stublibs").mkpath 
make DESTDIR=${PKG_DEST} install STDLIBDIR=${PKG_TAPF}/lib/ocaml
pkgshare.install "test"
rm lib/"ocaml/Makefile.config"