homebrew-core/Formula/gnu-units.rb

19 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