fa3d89a7c0
It seems that the main GNU download site has issues in some places outside the U.S., so we'll use the provided "ftpmirror.gnu.org" to pick a nearby mirror. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
19 lines
519 B
Ruby
19 lines
519 B
Ruby
require 'formula'
|
|
|
|
class GnuSed < Formula
|
|
url 'http://ftpmirror.gnu.org/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
|
|
args = ["--prefix=#{prefix}", "--disable-dependency-tracking"]
|
|
args << "--program-prefix=g" unless ARGV.include? '--default-names'
|
|
|
|
system "./configure", *args
|
|
system "make install"
|
|
end
|
|
end
|