aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-10 13:20:36 -0700
committerAdam Vandenberg2010-07-10 13:36:15 -0700
commit5105e2c3187aa6c96f9900711bab88dd691c65a5 (patch)
tree5f96ac490f9f67599ada381675517fecb5423d83 /Library
parent68319a266ea62043396d85b20d9ff5bff75eeb8e (diff)
downloadhomebrew-5105e2c3187aa6c96f9900711bab88dd691c65a5.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/objective-caml.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/objective-caml.rb b/Library/Formula/objective-caml.rb
index ee4c001cd..5504de264 100644
--- a/Library/Formula/objective-caml.rb
+++ b/Library/Formula/objective-caml.rb
@@ -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