aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/ruby.rb')
-rw-r--r--Library/Formula/ruby.rb13
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(":")}"