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>
master
Jack Nagel 2012-01-30 00:02:28 -06:00
parent 05b9d462cf
commit 88ebd6f9ae
1 changed files with 2 additions and 2 deletions

View File

@ -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