ocaml - Install libraries into lib/ocaml/site-lib

Made the "site-lib" folder a real folder, similar to how the Python brews work.
This will allow other ocaml softare to be built into this location instead of directly
into ocaml's Cellar.
This commit is contained in:
Adam Vandenberg 2010-07-10 13:20:36 -07:00
parent acae1d1eef
commit a12405b1b1

View file

@ -19,5 +19,9 @@ class ObjectiveCaml <Formula
system "make opt"
system "make opt.opt"
system "make install"
# site-lib in the Cellar will be a symlink to the HOMEBREW_PREFIX location
(HOMEBREW_PREFIX+"lib/ocaml/site-lib").mkpath
ln_s HOMEBREW_PREFIX+"lib/ocaml/site-lib", lib+"ocaml/site-lib"
end
end