2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-18 21:06:03 +00:00
|
|
|
|
|
|
|
class Bash <Formula
|
2010-01-20 02:23:09 +00:00
|
|
|
url 'http://ftp.gnu.org/gnu/bash/bash-4.1.tar.gz'
|
|
|
|
homepage 'http://www.gnu.org/software/bash/'
|
|
|
|
sha1 '3bd1ec9c66f3689f6b3495bdaaf9077b2e5dc150'
|
2010-11-06 13:47:49 +00:00
|
|
|
version '4.1.9'
|
2009-09-18 21:06:03 +00:00
|
|
|
|
|
|
|
depends_on 'readline'
|
|
|
|
|
2010-01-20 02:23:09 +00:00
|
|
|
def patches
|
|
|
|
patch_level = version.split('.').last.to_i
|
|
|
|
{'p0' => (1..patch_level).map { |i| "http://ftp.gnu.org/gnu/bash/bash-4.1-patches/bash41-%03d" % i }}
|
|
|
|
end
|
|
|
|
|
2009-09-18 21:06:03 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|