This repository has been archived by the owner. It is now read-only.
Permalink
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...
jacknagel committed Jan 30, 2012
1 parent d6782ac commit 172c05ed9f2fca015247b6ddffade8284368c361
Showing with 3 additions and 3 deletions.
  1. +2 −2 Library/Formula/objective-caml.rb
  2. +1 −1 Library/Homebrew/keg.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
@@ -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

This comment has been minimized.

Show comment Hide comment
@MikeMcQuaid

MikeMcQuaid Jan 30, 2012

Member

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

Member

MikeMcQuaid commented on 172c05e Jan 30, 2012

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

Please sign in to comment.