homebrew-core/Formula/udunits.rb

24 lines
674 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Udunits < Formula
homepage 'http://www.unidata.ucar.edu/software/udunits/'
2012-03-11 01:30:30 +00:00
url 'ftp://ftp.unidata.ucar.edu/pub/udunits/udunits-2.1.24.tar.gz'
md5 '6986545721747a51285c765644dcd9d8'
def options
[
["--html-docs", "Installs html documentation"],
2012-03-11 01:30:30 +00:00
["--pdf-docs", "Installs pdf documentation"]
]
end
def install
2012-03-11 01:30:30 +00:00
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"
system "make", *targets
end
end