mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-26 19:09:48 -05:00
This reverts commit adee531526.
Turns out one of the "other things" is a dealbreaker.
We only create kegs using a formula's canonical name. However, we do not
check that this is the case when mapping existing kegs back to formula
objects, and thus a keg with a name that happens to be an alias can fool
Homebrew into thinking the canonically-named keg exists.
So anything that enumerates kegs and then tries to do stuff with the
resulting formula objects will just break. This is obviously worse than
the debugger being broken, so reverting this for the time being.
30 lines
949 B
Ruby
30 lines
949 B
Ruby
require 'formula'
|
|
|
|
class Bash < Formula
|
|
homepage 'http://www.gnu.org/software/bash/'
|
|
url 'http://ftpmirror.gnu.org/bash/bash-4.2.tar.gz'
|
|
mirror 'http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz'
|
|
sha256 'a27a1179ec9c0830c65c6aa5d7dab60f7ce1a2a608618570f96bfa72e95ab3d8'
|
|
version '4.2.39'
|
|
|
|
depends_on 'readline'
|
|
|
|
# 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
|
|
{ :p0 => "https://raw.github.com/gist/4008180/443bc2c712ca9151a9e34e13be1b3a00e9a190d0/bash-4.2-001-039.patch" }
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}", "--with-installed-readline"
|
|
system "make install"
|
|
end
|
|
|
|
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
|
|
end
|