homebrew-core/Formula/gnu-units.rb
Brett Koonce 2bd64bdbc9 (gnu) units 2.02
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-08-10 20:32:58 -05:00

18 lines
508 B
Ruby

require 'formula'
class GnuUnits < Formula
homepage 'http://www.gnu.org/software/units/'
url 'http://ftpmirror.gnu.org/units/units-2.02.tar.gz'
mirror 'http://ftp.gnu.org/gnu/units/units-2.02.tar.gz'
sha1 'e460371dc97034d17ce452e6b64991f7fd2d1409'
option 'default-names', "Do not prepend 'g' to the binary"
def install
args = ["--prefix=#{prefix}"]
args << "--program-prefix=g" unless build.include? 'default-names'
system "./configure", *args
system "make install"
end
end