aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-09 07:19:40 -0700
committerAdam Vandenberg2012-08-09 07:19:40 -0700
commitf53ac840dac271aa187e3ef91e6977d816b97ad9 (patch)
treed18a2489dd99ca1cdbd5d176a4ce82599e66de48 /Library
parentb9671d0b9c62ca07f919ed2860137178b3969342 (diff)
downloadhomebrew-f53ac840dac271aa187e3ef91e6977d816b97ad9.tar.bz2
wget: use options dsl
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/wget.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/Library/Formula/wget.rb b/Library/Formula/wget.rb
index dff424658..a3dd87b90 100644
--- a/Library/Formula/wget.rb
+++ b/Library/Formula/wget.rb
@@ -8,27 +8,25 @@ class Wget < Formula
head 'git://git.savannah.gnu.org/wget.git'
+ option "enable-iri", "Enable iri support"
+
depends_on "openssl" if MacOS.leopard?
- depends_on "libidn" if ARGV.include? "--enable-iri"
+ depends_on "libidn" if build.include? "--enable-iri"
- if ARGV.build_head?
+ if build.head?
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "gettext"
end
- def options
- [["--enable-iri", "Enable iri support."]]
- end
-
def install
- system "./bootstrap" if ARGV.build_head?
+ system "./bootstrap" if build.head?
args = ["--disable-debug",
"--prefix=#{prefix}",
"--sysconfdir=#{etc}",
"--with-ssl=openssl"]
- args << "--disable-iri" unless ARGV.include? "--enable-iri"
+ args << "--disable-iri" unless build.include? "--enable-iri"
system "./configure", *args
system "make install"