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-09-12 16:31:30 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/bash/bash-4.2.tar.gz'
|
2011-11-30 18:56:07 +00:00
|
|
|
mirror 'http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz'
|
2011-03-23 21:05:12 +00:00
|
|
|
sha256 'a27a1179ec9c0830c65c6aa5d7dab60f7ce1a2a608618570f96bfa72e95ab3d8'
|
2012-12-31 22:48:56 +00:00
|
|
|
version '4.2.42'
|
2009-09-18 21:06:03 +00:00
|
|
|
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline'
|
2009-09-18 21:06:03 +00:00
|
|
|
|
2012-11-03 18:26:57 +00:00
|
|
|
# Vendor the patches. The mirrors are unreliable for getting the patches,
|
|
|
|
# and the more patches there are, the more unreliable they get. Upstream
|
|
|
|
# patches can be found in: http://ftpmirror.gnu.org/bash/bash-4.2-patches
|
|
|
|
def patches
|
2012-12-31 22:48:56 +00:00
|
|
|
{ :p0 => "https://gist.github.com/raw/4008180/9e0b97559cbc2319f7f16e72ed43491a90468d19/bash-4.2-001-042.patch" }
|
2012-11-03 18:26:57 +00:00
|
|
|
end
|
2010-01-20 02:23:09 +00:00
|
|
|
|
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
|
2012-01-20 12:46:43 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
In order to use this build of bash as your login shell,
|
|
|
|
it must be added to /etc/shells.
|
|
|
|
EOS
|
|
|
|
end
|
2009-09-18 21:06:03 +00:00
|
|
|
end
|