homebrew-core/Formula/gnu-units.rb
Jack Nagel fe23e41397 gnu-units: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-13 09:57:40 -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.00.tar.gz'
mirror 'http://ftp.gnu.org/gnu/units/units-2.00.tar.gz'
sha1 '6da9ea78ff0dc21bc43cf1809c530e61d9394ce0'
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