New formula: udunits
Library and utility for parsing and converting units of physical quantities. http://www.unidata.ucar.edu/software/udunits/ Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
fbb554a248
commit
6532af119e
1 changed files with 22 additions and 0 deletions
22
Formula/udunits.rb
Normal file
22
Formula/udunits.rb
Normal file
|
@ -0,0 +1,22 @@
|
|||
require 'formula'
|
||||
|
||||
class Udunits <Formula
|
||||
url 'ftp://ftp.unidata.ucar.edu/pub/udunits/udunits-2.1.17.tar.gz'
|
||||
homepage 'http://www.unidata.ucar.edu/software/udunits/'
|
||||
md5 'cc7d011987b0473c352119a1bcbfb0ea'
|
||||
|
||||
def options
|
||||
[
|
||||
["--html-docs", "Installs html documentation"],
|
||||
["--pdf-docs", "Installs pdf documentation "]
|
||||
]
|
||||
end
|
||||
|
||||
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"
|
||||
system "make", *targets
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue