Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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>
  • Loading branch information...
commit 172c05ed9f2fca015247b6ddffade8284368c361 1 parent d6782ac
@jacknagel jacknagel authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 Library/Formula/objective-caml.rb
  2. +1 −1  Library/Homebrew/keg.rb
View
4 Library/Formula/objective-caml.rb
@@ -16,8 +16,8 @@ def install
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
View
2  Library/Homebrew/keg.rb
@@ -84,7 +84,7 @@ def link
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

1 comment on commit 172c05e

@mikemcquaid

Ah nice, I didn't know we had these custom mkpaths.

Please sign in to comment.
Something went wrong with that request. Please try again.