aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cscope.rb
diff options
context:
space:
mode:
authorBasil Shkara2009-09-27 10:02:56 +1000
committerBasil Shkara2009-09-27 10:02:56 +1000
commit0dcace0b62ffcf866d6ab7cef9d1ad46ab5c3584 (patch)
tree4bd92ce36e905628c460b1d7b94959dbc77f5d0c /Library/Formula/cscope.rb
parent6caebd3ecac9f65dba0fc02b4e61ce2b0c9e777a (diff)
downloadhomebrew-0dcace0b62ffcf866d6ab7cef9d1ad46ab5c3584.tar.bz2
Added cscope formula.
Diffstat (limited to 'Library/Formula/cscope.rb')
-rw-r--r--Library/Formula/cscope.rb36
1 files changed, 36 insertions, 0 deletions
diff --git a/Library/Formula/cscope.rb b/Library/Formula/cscope.rb
new file mode 100644
index 000000000..4e1357aa7
--- /dev/null
+++ b/Library/Formula/cscope.rb
@@ -0,0 +1,36 @@
+require 'brewkit'
+
+class Cscope <Formula
+ @url='http://downloads.sourceforge.net/sourceforge/cscope/cscope-15.7a.tar.bz2'
+ @homepage='http://cscope.sourceforge.net/'
+ @md5='da43987622ace8c36bbf14c15a350ec1'
+
+ def patches
+ # Patch from http://bugs.gentoo.org/show_bug.cgi?ctype=html&id=111621
+ DATA
+ end
+
+ def install
+ system "./configure", "--prefix=#{prefix}",
+ "--mandir='#{man}'"
+ system "make install"
+ end
+end
+
+__END__
+diff --git a/src/constants.h b/src/constants.h
+index 7ad8005..844836e 100644
+--- a/src/constants.h
++++ b/src/constants.h
+@@ -103,7 +103,7 @@
+ #define INCLUDES 8
+ #define FIELDS 9
+
+-#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__
++#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__ && !__MACH__
+ # define TERMINFO 0 /* no terminfo curses */
+ #else
+ # define TERMINFO 1
+--
+1.6.4
+