homebrew-core/Formula/gnu-sed.rb
Jack Nagel 1a5b46ed51 gnu-sed: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-13 09:57:39 -05:00

18 lines
533 B
Ruby

require 'formula'
class GnuSed < Formula
homepage 'http://www.gnu.org/software/sed/'
url 'http://ftpmirror.gnu.org/sed/sed-4.2.1.tar.bz2'
mirror 'http://ftp.gnu.org/gnu/sed/sed-4.2.1.tar.bz2'
sha1 'ace93d23eabc00d3a8187ecf07d3a02b1b297810'
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
end