aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2014-02-24 21:51:06 -0800
committerAdam Vandenberg2014-02-27 08:21:17 -0800
commitcd6f909d0a0683e9e28eea87b32f84cf823375b0 (patch)
tree725658a49c1aebd922bf53d4b1f67a70d253df7e /Library
parent56000c11c9ca4f82e9ada4a049743360740d21a6 (diff)
downloadhomebrew-cd6f909d0a0683e9e28eea87b32f84cf823375b0.tar.bz2
gd: use Formula[]
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gd.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/gd.rb b/Library/Formula/gd.rb
index a36e6be60..bb11cc330 100644
--- a/Library/Formula/gd.rb
+++ b/Library/Formula/gd.rb
@@ -63,19 +63,19 @@ class Gd < Formula
end
if build.with? "jpeg"
- args << "--with-jpeg=#{Formula.factory("jpeg").opt_prefix}"
+ args << "--with-jpeg=#{Formula["jpeg"].opt_prefix}"
else
args << "--without-jpeg"
end
if build.with? "libtiff"
- args << "--with-tiff=#{Formula.factory("libtiff").opt_prefix}"
+ args << "--with-tiff=#{Formula["libtiff"].opt_prefix}"
else
args << "--without-tiff"
end
if build.with? "libvpx"
- args << "--with-vpx=#{Formula.factory("libvpx").opt_prefix}"
+ args << "--with-vpx=#{Formula["libvpx"].opt_prefix}"
else
args << "--without-vpx"
end