homebrew-core/Formula/cscope.rb
Jaime Marquínez Ferrándiz 74c83fa9f6 Batch convert http download urls from SourceForge to https
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-02 09:16:53 -08:00

34 lines
853 B
Ruby

require 'formula'
class Cscope < Formula
homepage 'http://cscope.sourceforge.net/'
url 'https://downloads.sourceforge.net/project/cscope/cscope/15.8a/cscope-15.8a.tar.gz'
sha1 '00f76825791b895532778f720c509cd13b9d6846'
# Patch from http://bugs.gentoo.org/show_bug.cgi?ctype=html&id=111621
def patches; 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 10
-#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__
+#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__ && !__MACH__
# define TERMINFO 0 /* no terminfo curses */
#else
# define TERMINFO 1
--
1.6.4