2011-02-14 19:21:59 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-04-14 02:46:01 +00:00
|
|
|
class Gdb < Formula
|
2011-02-14 19:21:59 +00:00
|
|
|
homepage 'http://www.gnu.org/software/gdb/'
|
2013-04-28 18:45:13 +00:00
|
|
|
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'
|
2011-02-14 19:21:59 +00:00
|
|
|
|
2012-03-17 20:13:36 +00:00
|
|
|
depends_on 'readline'
|
2011-05-01 02:20:20 +00:00
|
|
|
|
2012-03-17 20:13:36 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--with-python=/usr",
|
|
|
|
"--with-system-readline"
|
2011-02-14 19:21:59 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
2011-05-01 02:20:20 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
2011-10-27 01:05:10 +00:00
|
|
|
gdb requires special privileges to access Mach ports.
|
|
|
|
You will need to codesign the binary. For instructions, see:
|
2011-05-01 02:20:20 +00:00
|
|
|
|
2011-10-27 01:05:10 +00:00
|
|
|
http://sourceware.org/gdb/wiki/BuildingOnDarwin
|
2011-05-01 02:20:20 +00:00
|
|
|
EOS
|
|
|
|
end
|
2011-02-14 19:21:59 +00:00
|
|
|
end
|