homebrew-core/Formula/gdb.rb

28 lines
720 B
Ruby
Raw Normal View History

require 'formula'
class Gdb < Formula
url 'http://ftpmirror.gnu.org/gdb/gdb-7.3.1.tar.bz2'
homepage 'http://www.gnu.org/software/gdb/'
md5 'b89a5fac359c618dda97b88645ceab47'
def install
args = ["--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking",
"--with-python=/usr"]
system "./configure", *args
system "make"
system "make install"
end
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
end