2010-07-31 05:49:24 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Udunits < Formula
|
2010-07-31 05:49:24 +00:00
|
|
|
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'
|
2012-08-25 16:44:44 +00:00
|
|
|
sha1 '64bbb4b852146fb5d476baf4d37c9d673cfa42f9'
|
2010-07-31 05:49:24 +00:00
|
|
|
|
2012-08-25 16:44:44 +00:00
|
|
|
option "html-docs", "Installs html documentation"
|
|
|
|
option "pdf-docs", "Installs pdf documentation"
|
2010-07-31 05:49:24 +00:00
|
|
|
|
|
|
|
def install
|
2012-03-11 01:30:30 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2010-07-31 05:49:24 +00:00
|
|
|
targets = ["install"]
|
2012-08-25 16:44:44 +00:00
|
|
|
targets << "install-html" if build.include? "html-docs"
|
|
|
|
targets << "install-pdf" if build.include? "pdf-docs"
|
2010-07-31 05:49:24 +00:00
|
|
|
system "make", *targets
|
|
|
|
end
|
|
|
|
end
|