2011-02-14 19:21:59 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-04-14 02:46:01 +00:00
|
|
|
class Gdb < Formula
|
2011-10-10 00:02:59 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/gdb/gdb-7.3.1.tar.bz2'
|
2011-02-14 19:21:59 +00:00
|
|
|
homepage 'http://www.gnu.org/software/gdb/'
|
2011-09-05 04:16:36 +00:00
|
|
|
md5 'b89a5fac359c618dda97b88645ceab47'
|
2011-02-14 19:21:59 +00:00
|
|
|
|
|
|
|
def install
|
2011-05-01 02:20:20 +00:00
|
|
|
args = ["--prefix=#{prefix}",
|
|
|
|
"--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--with-python=/usr"]
|
|
|
|
|
|
|
|
system "./configure", *args
|
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
|
|
|
|
In order to make this build of gdb useful, you may have to code sign
|
|
|
|
the binary. In order to do this, you must create a certificate in your
|
|
|
|
System keychain. For more information, see:
|
|
|
|
|
|
|
|
http://sourceware.org/gdb/wiki/BuildingOnDarwin
|
|
|
|
EOS
|
|
|
|
end
|
2011-02-14 19:21:59 +00:00
|
|
|
end
|