aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-03-25 11:33:09 -0500
committerJack Nagel2014-03-25 11:33:09 -0500
commit52faba9a2cef1539eb9a2b79554cc6c91cb21045 (patch)
treedb596b853b26c35d3cd7420add31aeb6f4bee2aa /Library/Formula
parentc9f9385064642328078a6bb80a3f7a82eef168c0 (diff)
downloadhomebrew-52faba9a2cef1539eb9a2b79554cc6c91cb21045.tar.bz2
ocaml: make site-lib symlink in post-install hook
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/objective-caml.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/objective-caml.rb b/Library/Formula/objective-caml.rb
index 66c654e7b..4efb366d8 100644
--- a/Library/Formula/objective-caml.rb
+++ b/Library/Formula/objective-caml.rb
@@ -35,10 +35,12 @@ class ObjectiveCaml < Formula
system "make opt"
system "make opt.opt"
system "make", "PREFIX=#{prefix}", "install"
+ end
+ def post_install
# site-lib in the Cellar will be a symlink to the HOMEBREW_PREFIX location,
# which is mkpath'd by Keg#link when something installs into it
- ln_s HOMEBREW_PREFIX/"lib/ocaml/site-lib", lib/"ocaml/site-lib"
+ (lib/"ocaml").install_symlink HOMEBREW_PREFIX/"lib/ocaml/site-lib"
end
end
__END__