blob: 82b110724f5928e103748925f2d7994a85a1aef4 (
plain)
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
29
|
require 'formula'
class Cgdb < Formula
url 'http://downloads.sourceforge.net/project/cgdb/cgdb/cgdb-0.6.5/cgdb-0.6.5.tar.gz'
homepage 'http://cgdb.sourceforge.net/'
md5 'f7d054ec74b1431f3f8304195ddd21b4'
depends_on 'readline'
# man page for cgdb is only there to point people to the info page where all
# of the actual documentation is, so skip cleaning the info to preserve the
# documentation
skip_clean 'share/info'
# patches from MacPorts, or segfaults when run
def patches
{ :p0 => [
"https://trac.macports.org/export/73182/trunk/dports/devel/cgdb/files/patch-various-util-src-pseudo.c.diff",
"https://trac.macports.org/export/73182/trunk/dports/devel/cgdb/files/patch-implicit-declaration-of-cgdb_malloc.diff"
]}
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-readline=#{Formula.factory('readline').prefix}"
system "make install"
end
end
|