a6deb86f41
Closes Homebrew/homebrew#18689. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
25 lines
711 B
Ruby
25 lines
711 B
Ruby
require 'formula'
|
|
|
|
class GnuSed < Formula
|
|
homepage 'http://www.gnu.org/software/sed/'
|
|
url 'http://ftpmirror.gnu.org/sed/sed-4.2.2.tar.bz2'
|
|
mirror 'http://ftp.gnu.org/gnu/sed/sed-4.2.2.tar.bz2'
|
|
sha1 'f17ab6b1a7bcb2ad4ed125ef78948092d070de8f'
|
|
|
|
option 'default-names', "Do not prepend 'g' to the binary"
|
|
|
|
def install
|
|
args = ["--prefix=#{prefix}", "--disable-dependency-tracking"]
|
|
args << "--program-prefix=g" unless build.include? 'default-names'
|
|
|
|
system "./configure", *args
|
|
system "make install"
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
The command has been installed with the prefix 'g'.
|
|
If you do not want the prefix, install using the 'default-names' option.
|
|
EOS
|
|
end
|
|
|
|
end
|