homebrew-core/Formula/gdb.rb

29 lines
809 B
Ruby
Raw Normal View History

require 'formula'
class Gdb < Formula
homepage 'http://www.gnu.org/software/gdb/'
url 'http://ftpmirror.gnu.org/gdb/gdb-7.6.tar.bz2'
mirror 'http://ftp.gnu.org/gnu/gdb/gdb-7.6.tar.bz2'
sha1 'b64095579a20e011beeaa5b264fe23a9606ee40f'
depends_on 'readline'
def install
system "./configure", "--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking",
"--with-python=/usr",
"--with-system-readline"
system "make"
system "make install"
end
def caveats; <<-EOS.undent
gdb requires special privileges to access Mach ports.
You will need to codesign the binary. For instructions, see:
http://sourceware.org/gdb/wiki/BuildingOnDarwin
EOS
end
end