homebrew-core/Formula/bash.rb
Robin Ramael 6bda22a3e9 Fixed syntax error in bash formula.
In the last commit to the bash formula, the install function declaration
was omitted, this commit adds it back in.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-05-07 12:38:00 -07:00

20 lines
559 B
Ruby

require 'formula'
class Bash < Formula
homepage 'http://www.gnu.org/software/bash/'
url 'ftp://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz'
sha256 'a27a1179ec9c0830c65c6aa5d7dab60f7ce1a2a608618570f96bfa72e95ab3d8'
version '4.2.10'
depends_on 'readline'
def patches
patch_level = version.split('.').last.to_i
{'p0' => (1..patch_level).map { |i| "http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-%03d" % i }}
end
def install
system "./configure", "--prefix=#{prefix}", "--with-installed-readline"
system "make install"
end
end