2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-27 00:02:56 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Cscope < Formula
|
2009-11-21 06:58:15 +00:00
|
|
|
homepage 'http://cscope.sourceforge.net/'
|
2013-06-20 23:08:35 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/cscope/cscope/15.8a/cscope-15.8a.tar.gz'
|
2012-08-06 22:14:21 +00:00
|
|
|
sha1 '00f76825791b895532778f720c509cd13b9d6846'
|
2009-09-27 00:02:56 +00:00
|
|
|
|
2010-10-21 14:54:17 +00:00
|
|
|
# Patch from http://bugs.gentoo.org/show_bug.cgi?ctype=html&id=111621
|
|
|
|
def patches; DATA; end
|
2009-09-27 00:02:56 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
2009-11-21 06:58:15 +00:00
|
|
|
"--mandir=#{man}"
|
2009-09-27 00:02:56 +00:00
|
|
|
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
|
2012-08-07 16:54:31 +00:00
|
|
|
#define FIELDS 10
|
2009-09-27 00:02:56 +00:00
|
|
|
|
|
|
|
-#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__
|
|
|
|
+#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__ && !__MACH__
|
|
|
|
# define TERMINFO 0 /* no terminfo curses */
|
|
|
|
#else
|
|
|
|
# define TERMINFO 1
|
|
|
|
--
|
|
|
|
1.6.4
|
|
|
|
|