2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-18 21:06:03 +00:00
|
|
|
|
2011-02-15 12:17:32 +00:00
|
|
|
class Bash < Formula
|
2010-01-20 02:23:09 +00:00
|
|
|
homepage 'http://www.gnu.org/software/bash/'
|
2011-03-23 21:05:12 +00:00
|
|
|
url 'ftp://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz'
|
|
|
|
sha256 'a27a1179ec9c0830c65c6aa5d7dab60f7ce1a2a608618570f96bfa72e95ab3d8'
|
|
|
|
version '4.2.10'
|
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
|
2011-02-15 12:17:32 +00:00
|
|
|
{'p0' => (1..patch_level).map { |i| "http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-%03d" % i }}
|
2010-01-20 02:23:09 +00:00
|
|
|
end
|
|
|
|
|
2011-05-07 19:22:57 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--with-installed-readline"
|
2009-09-18 21:06:03 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|