2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-23 02:30:16 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class GnuSed < Formula
|
2010-05-30 18:59:04 +00:00
|
|
|
url 'http://ftp.gnu.org/gnu/sed/sed-4.2.1.tar.bz2'
|
|
|
|
homepage 'http://www.gnu.org/software/sed/'
|
|
|
|
md5 '7d310fbd76e01a01115075c1fd3f455a'
|
2009-09-23 02:30:16 +00:00
|
|
|
|
2010-11-15 20:40:52 +00:00
|
|
|
def options
|
|
|
|
[['--default-names', "Do NOT prepend 'g' to the binary; will override system utils."]]
|
|
|
|
end
|
|
|
|
|
2009-09-23 02:30:16 +00:00
|
|
|
def install
|
2010-11-15 20:40:52 +00:00
|
|
|
args = ["--prefix=#{prefix}", "--disable-dependency-tracking"]
|
2011-01-16 15:21:16 +00:00
|
|
|
args << "--program-prefix=g" unless ARGV.include? '--default-names'
|
2010-11-15 20:40:52 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
2009-09-23 02:30:16 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|