Permalink
Browse files

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.
  • Loading branch information...
1 parent 68319a2 commit 5105e2c3187aa6c96f9900711bab88dd691c65a5 @adamv adamv committed Jul 10, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 Library/Formula/objective-caml.rb
@@ -19,5 +19,9 @@ def install
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

0 comments on commit 5105e2c

Please sign in to comment.