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:
parent
acae1d1eef
commit
a12405b1b1
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue