aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMichael Lapinsky2010-08-18 18:11:16 -0700
committerAdam Vandenberg2010-11-05 23:03:19 -0700
commitd28f4d20bddf6fc14393d5d68c38b2b649b554fb (patch)
tree803776d1a0310322e548e2431bbeba7c9db92284 /Library/Formula
parent4bf1a428454f21b2621717381a38bbc7b4d3733a (diff)
downloadhomebrew-d28f4d20bddf6fc14393d5d68c38b2b649b554fb.tar.bz2
Added formula: cgdb
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cgdb.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/cgdb.rb b/Library/Formula/cgdb.rb
new file mode 100644
index 000000000..3bd43e9fb
--- /dev/null
+++ b/Library/Formula/cgdb.rb
@@ -0,0 +1,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 => [
+ "http://trac.macports.org/export/73182/trunk/dports/devel/cgdb/files/patch-various-util-src-pseudo.c.diff",
+ "http://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