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
|
2012-08-13 14:56:40 +00:00
|
|
|
homepage 'http://www.gnu.org/software/sed/'
|
2011-09-12 16:31:30 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/sed/sed-4.2.1.tar.bz2'
|
2011-11-30 18:56:07 +00:00
|
|
|
mirror 'http://ftp.gnu.org/gnu/sed/sed-4.2.1.tar.bz2'
|
2012-08-13 14:56:40 +00:00
|
|
|
sha1 'ace93d23eabc00d3a8187ecf07d3a02b1b297810'
|
2009-09-23 02:30:16 +00:00
|
|
|
|
2012-08-13 14:56:40 +00:00
|
|
|
option 'default-names', "Do not prepend 'g' to the binary"
|
2010-11-15 20:40:52 +00:00
|
|
|
|
2009-09-23 02:30:16 +00:00
|
|
|
def install
|
2010-11-15 20:40:52 +00:00
|
|
|
args = ["--prefix=#{prefix}", "--disable-dependency-tracking"]
|
2012-08-13 14:56:40 +00:00
|
|
|
args << "--program-prefix=g" unless build.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
|