Created
October 23, 2010 14:24
-
-
Save JEEN/642267 to your computer and use it in GitHub Desktop.
wget Formula
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'formula' | |
| 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 options | |
| [["--enable-iri", "Enable iri support."]] | |
| end | |
| def install | |
| args = ["--disable-debug", "--prefix=#{prefix}"] | |
| args << "--disable-iri" unless ARGV.include? "--enable-iri" | |
| system "./configure", *args | |
| system "make install" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment