aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-01-30 00:02:28 -0600
committerJack Nagel2012-01-30 00:04:33 -0600
commit172c05ed9f2fca015247b6ddffade8284368c361 (patch)
tree190d695c33b00f1921279f602f3bb99146be33c1 /Library
parentd6782aceb66553cbfd7a1b7c6a72fdc67441812d (diff)
downloadhomebrew-172c05ed9f2fca015247b6ddffade8284368c361.tar.bz2
mkpath directories under lib/ocaml
Ocaml packages that need to install here will cause the site-lib directory to be created, and the symlink in the ocaml keg will work as intended. This is necessary for the ocaml bottle to work properly. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/objective-caml.rb4
-rw-r--r--Library/Homebrew/keg.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/objective-caml.rb b/Library/Formula/objective-caml.rb
index db56590c8..5da37bea5 100644
--- a/Library/Formula/objective-caml.rb
+++ b/Library/Formula/objective-caml.rb
@@ -16,8 +16,8 @@ class ObjectiveCaml < Formula
system "make opt.opt"
system "make PREFIX=#{prefix} install"
- # site-lib in the Cellar will be a symlink to the HOMEBREW_PREFIX location
- (HOMEBREW_PREFIX+"lib/ocaml/site-lib").mkpath
+ # 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"
end
end
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index e0bbc94f0..2ea07b96b 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -84,7 +84,7 @@ class Keg < Pathname
when 'ghc' then :mkpath
when 'lua' then :mkpath
when 'node' then :mkpath
- when 'ocaml' then :mkpath
+ when /^ocaml/ then :mkpath
when /^perl5/ then :mkpath
when 'php' then :mkpath
when /^python[23]\.\d$/ then :mkpath