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
|
|
|
|
url 'http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz'
|
2010-01-20 02:23:09 +00:00
|
|
|
homepage 'http://www.gnu.org/software/bash/'
|
2011-02-15 12:17:32 +00:00
|
|
|
sha1 '487840ab7134eb7901fbb2e49b0ee3d22de15cb8'
|
2011-03-14 21:12:27 +00:00
|
|
|
version '4.2.8'
|
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-02-15 12:17:32 +00:00
|
|
|
|
2009-09-18 21:06:03 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|