diff options
| author | Jack Nagel | 2014-02-05 20:37:36 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-02-05 20:38:39 -0500 |
| commit | 8ebc8b7e82f91ba79ce95fd4ff099a70ce45299e (patch) | |
| tree | f6236c69e641a08d7aa1d78fc7d9860f0838ce59 | |
| parent | 01ff75a354e9bf6e8f9c7061a50c9802af361f07 (diff) | |
| download | homebrew-8ebc8b7e82f91ba79ce95fd4ff099a70ce45299e.tar.bz2 | |
ruby: specify paths to deps explicitly
| -rw-r--r-- | Library/Formula/ruby.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Library/Formula/ruby.rb b/Library/Formula/ruby.rb index 110d8a53d..dbd44e5c2 100644 --- a/Library/Formula/ruby.rb +++ b/Library/Formula/ruby.rb @@ -37,7 +37,18 @@ class Ruby < Formula args << "--with-out-ext=tk" unless build.with? "tcltk" args << "--disable-install-doc" unless build.with? "doc" args << "--disable-dtrace" unless MacOS::CLT.installed? - args << "--with-opt-dir=#{Formula.factory('openssl').opt_prefix}" + + paths = [] + + paths.concat %w[readline gdbm gmp libffi].map { |dep| + Formula.factory(dep).opt_prefix if build.with? dep + }.compact + + paths.concat %w[libyaml openssl].map { |dep| + Formula.factory(dep).opt_prefix + } + + args << "--with-opt-dir=#{paths.join(":")}" # Put gem, site and vendor folders in the HOMEBREW_PREFIX ruby_lib = HOMEBREW_PREFIX/"lib/ruby" |
