-
Notifications
You must be signed in to change notification settings - Fork 249
/
gdb.rb
28 lines (23 loc) · 804 Bytes
/
gdb.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'formula'
class Gdb < Formula
homepage 'http://www.gnu.org/software/gdb/'
url 'http://ftpmirror.gnu.org/gdb/gdb-7.3.1.tar.bz2'
mirror 'http://ftp.gnu.org/gnu/gdb/gdb-7.3.1.tar.bz2'
md5 'b89a5fac359c618dda97b88645ceab47'
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