diff options
| author | Adam Vandenberg | 2014-02-25 06:14:40 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-27 08:21:18 -0800 |
| commit | 474d77e21cbf3c0b2f0770f993774d8b9edce856 (patch) | |
| tree | c46fb76ff961439fc46d74ab8483870588807e97 /Library | |
| parent | d30e89c9a6d7747e88048ded3c61b6d225b71146 (diff) | |
| download | homebrew-474d77e21cbf3c0b2f0770f993774d8b9edce856.tar.bz2 | |
ruby: use Formula[]
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/ruby.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Library/Formula/ruby.rb b/Library/Formula/ruby.rb index 4baaff375..045c1732e 100644 --- a/Library/Formula/ruby.rb +++ b/Library/Formula/ruby.rb @@ -42,14 +42,13 @@ class Ruby < Formula args << "--disable-install-doc" unless build.with? "doc" args << "--disable-dtrace" unless MacOS::CLT.installed? - paths = [] + paths = [ + Formula["libyaml"].opt_prefix, + Formula["openssl"].opt_prefix + ] - 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 + %w[readline gdbm gmp libffi].each { |dep| + paths << Formula[dep].opt_prefix if build.with? dep } args << "--with-opt-dir=#{paths.join(":")}" |
