From 52faba9a2cef1539eb9a2b79554cc6c91cb21045 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 25 Mar 2014 11:33:09 -0500 Subject: ocaml: make site-lib symlink in post-install hook --- Library/Formula/objective-caml.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library/Formula') 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__ -- cgit v1.2.3