gnu-sed: added --default-names option.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
ec3b46ef98
commit
1d0d20380d
1 changed files with 12 additions and 1 deletions
|
@ -1,12 +1,23 @@
|
|||
require 'formula'
|
||||
|
||||
def use_default_names?
|
||||
ARGV.include? '--default-names'
|
||||
end
|
||||
|
||||
class GnuSed <Formula
|
||||
url 'http://ftp.gnu.org/gnu/sed/sed-4.2.1.tar.bz2'
|
||||
homepage 'http://www.gnu.org/software/sed/'
|
||||
md5 '7d310fbd76e01a01115075c1fd3f455a'
|
||||
|
||||
def options
|
||||
[['--default-names', "Do NOT prepend 'g' to the binary; will override system utils."]]
|
||||
end
|
||||
|
||||
def install
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking", "--program-prefix=g"
|
||||
args = ["--prefix=#{prefix}", "--disable-dependency-tracking"]
|
||||
args << "--program-prefix=g" unless use_default_names?
|
||||
|
||||
system "./configure", *args
|
||||
system "make install"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue