diff options
| author | Jack Nagel | 2014-03-25 11:33:09 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-25 11:33:09 -0500 |
| commit | 52faba9a2cef1539eb9a2b79554cc6c91cb21045 (patch) | |
| tree | db596b853b26c35d3cd7420add31aeb6f4bee2aa /Library/Formula | |
| parent | c9f9385064642328078a6bb80a3f7a82eef168c0 (diff) | |
| download | homebrew-52faba9a2cef1539eb9a2b79554cc6c91cb21045.tar.bz2 | |
ocaml: make site-lib symlink in post-install hook
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/objective-caml.rb | 4 |
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__ |
