From 172c05ed9f2fca015247b6ddffade8284368c361 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 30 Jan 2012 00:02:28 -0600 Subject: 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 --- Library/Formula/objective-caml.rb | 4 ++-- Library/Homebrew/keg.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3