diff options
| author | Adam Vandenberg | 2012-08-25 09:44:44 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-25 09:44:44 -0700 |
| commit | a617b87121319fc9d5531c642f7403168690ef59 (patch) | |
| tree | adc919c7d69f550d947037843872d85963219176 /Library/Formula | |
| parent | 49daecd69f35428e8ccedd6b16d776c585fe3407 (diff) | |
| download | homebrew-a617b87121319fc9d5531c642f7403168690ef59.tar.bz2 | |
udunits: use new dsl
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/udunits.rb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Library/Formula/udunits.rb b/Library/Formula/udunits.rb index 04cb1d8b1..986ab858d 100644 --- a/Library/Formula/udunits.rb +++ b/Library/Formula/udunits.rb @@ -3,21 +3,17 @@ require 'formula' class Udunits < Formula homepage 'http://www.unidata.ucar.edu/software/udunits/' url 'ftp://ftp.unidata.ucar.edu/pub/udunits/udunits-2.1.24.tar.gz' - md5 '6986545721747a51285c765644dcd9d8' + sha1 '64bbb4b852146fb5d476baf4d37c9d673cfa42f9' - def options - [ - ["--html-docs", "Installs html documentation"], - ["--pdf-docs", "Installs pdf documentation"] - ] - end + option "html-docs", "Installs html documentation" + option "pdf-docs", "Installs pdf documentation" def install system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" targets = ["install"] - targets << "install-html" if ARGV.include? "--html-docs" - targets << "install-pdf" if ARGV.include? "--pdf-docs" + targets << "install-html" if build.include? "html-docs" + targets << "install-pdf" if build.include? "pdf-docs" system "make", *targets end end |
