blob: e6b93f922ca6c9747f104d5b7511c7b5ca31cc57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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'
def options
[['--default-names', "Do NOT prepend 'g' to the binary; will override system utils."]]
end
def install
args = ["--prefix=#{prefix}"]
args << "--program-prefix=g" unless ARGV.include? '--default-names'
system "./configure", *args
system "make install"
end
end
|