aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/wget.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Formula/wget.rb b/Library/Formula/wget.rb
index 7f2285ba4..d7297a93e 100644
--- a/Library/Formula/wget.rb
+++ b/Library/Formula/wget.rb
@@ -1,12 +1,20 @@
require 'formula'
+# iri support requires libidn, which pulls in getteext, so we
+# disable this by default.
+
class Wget <Formula
homepage 'http://www.gnu.org/software/wget/'
url 'http://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2'
md5 '308a5476fc096a8a525d07279a6f6aa3'
+ depends_on "libidn" if ARGV.include? "--enable-iri"
+
def install
- system "./configure", "--disable-debug", "--prefix=#{prefix}"
+ args = ["--disable-debug", "--prefix=#{prefix}"]
+ args << "--disable-iri" unless ARGV.include? "--enable-iri"
+
+ system "./configure", *args
system "make install"
end
end