diff options
author | itojun <itojun@pkgsrc.org> | 2000-04-20 07:03:54 +0000 |
---|---|---|
committer | itojun <itojun@pkgsrc.org> | 2000-04-20 07:03:54 +0000 |
commit | 920c2a1cd88c9dcc06b12ad533ee531af40febea (patch) | |
tree | 9a42e4af05d3f86119629aaa5479feca46c47536 /devel/cscope | |
parent | 68aa48dd183c9c77551fa70d3befdf499364f09e (diff) | |
download | pkgsrc-920c2a1cd88c9dcc06b12ad533ee531af40febea.tar.gz |
cscope 13.0, interactive C program browser
Diffstat (limited to 'devel/cscope')
-rw-r--r-- | devel/cscope/Makefile | 13 | ||||
-rw-r--r-- | devel/cscope/files/md5 | 3 | ||||
-rw-r--r-- | devel/cscope/files/patch-sum | 4 | ||||
-rw-r--r-- | devel/cscope/patches/patch-aa | 177 | ||||
-rw-r--r-- | devel/cscope/patches/patch-ab | 37 | ||||
-rw-r--r-- | devel/cscope/pkg/COMMENT | 1 | ||||
-rw-r--r-- | devel/cscope/pkg/DESCR | 18 | ||||
-rw-r--r-- | devel/cscope/pkg/PLIST | 2 |
8 files changed, 255 insertions, 0 deletions
diff --git a/devel/cscope/Makefile b/devel/cscope/Makefile new file mode 100644 index 00000000000..b7a357be910 --- /dev/null +++ b/devel/cscope/Makefile @@ -0,0 +1,13 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/04/20 07:03:54 itojun Exp $ + +DISTNAME= cscope-13.0-2 +PKGNAME= cscope-13.0.2 +CATEGORIES= devel +MASTER_SITES= http://download.sourceforge.net/cscope/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://cscope.sourceforge.net/ + +WRKSRC= ${WRKDIR}/cscope-13.0 + +.include <../../mk/bsd.pkg.mk> diff --git a/devel/cscope/files/md5 b/devel/cscope/files/md5 new file mode 100644 index 00000000000..dac1871deeb --- /dev/null +++ b/devel/cscope/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2000/04/20 07:03:54 itojun Exp $ + +MD5 (cscope-13.0-2.tar.gz) = c727eff70fddfee73754537b6be39597 diff --git a/devel/cscope/files/patch-sum b/devel/cscope/files/patch-sum new file mode 100644 index 00000000000..3d459e76da8 --- /dev/null +++ b/devel/cscope/files/patch-sum @@ -0,0 +1,4 @@ +$NetBSD: patch-sum,v 1.1.1.1 2000/04/20 07:03:54 itojun Exp $ + +MD5 (patch-aa) = 1d4777835c60b5bc173f5742b2b44882 +MD5 (patch-ab) = 0e72f5a165347ec7905048af27ec943b diff --git a/devel/cscope/patches/patch-aa b/devel/cscope/patches/patch-aa new file mode 100644 index 00000000000..d04d3a1834b --- /dev/null +++ b/devel/cscope/patches/patch-aa @@ -0,0 +1,177 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/04/20 07:03:55 itojun Exp $ +Index: common/constants.h +=================================================================== +RCS file: /cvsroot/cscope/cscope/common/constants.h,v +retrieving revision 1.1.1.1 +diff -u -r1.1.1.1 constants.h +--- common/constants.h 2000/04/18 13:16:41 1.1.1.1 ++++ common/constants.h 2000/04/20 06:59:58 +@@ -135,11 +135,13 @@ + #define cbreak() crmode() /* name change */ + #endif + ++#ifndef __NetBSD__ + #if UNIXPC + #define erasechar() (_tty.c_cc[VERASE]) /* equivalent */ + #define killchar() (_tty.c_cc[VKILL]) /* equivalent */ + #else + #define erasechar() (_tty.sg_erase) /* equivalent */ + #define killchar() (_tty.sg_kill) /* equivalent */ ++#endif + #endif + #endif +Index: common/display.c +=================================================================== +RCS file: /cvsroot/cscope/cscope/common/display.c,v +retrieving revision 1.1.1.1 +diff -u -r1.1.1.1 display.c +--- common/display.c 2000/04/18 13:16:42 1.1.1.1 ++++ common/display.c 2000/04/20 06:59:58 +@@ -43,6 +43,9 @@ + #endif + #include <curses.h> /* LINES, COLS */ + #include <setjmp.h> /* jmp_buf */ ++#ifdef __NetBSD__ ++#include <errno.h> ++#endif + + static char const rcsid[] = "$Id: patch-aa,v 1.1.1.1 2000/04/20 07:03:55 itojun Exp $"; + +Index: common/exec.c +=================================================================== +RCS file: /cvsroot/cscope/cscope/common/exec.c,v +retrieving revision 1.1.1.1 +diff -u -r1.1.1.1 exec.c +--- common/exec.c 2000/04/18 13:16:42 1.1.1.1 ++++ common/exec.c 2000/04/20 06:59:59 +@@ -37,7 +37,11 @@ + + #include "global.h" + #include <stdarg.h> ++#ifdef __NetBSD__ ++#include <sys/wait.h> ++#else + #include <wait.h> ++#endif + #include <curses.h> + + static char const rcsid[] = "$Id: patch-aa,v 1.1.1.1 2000/04/20 07:03:55 itojun Exp $"; +@@ -46,7 +50,9 @@ + static SIGTYPE (*oldsighup)(); /* old value of hangup signal */ + static SIGTYPE (*oldsigstp)(); + ++#ifndef __NetBSD__ + typedef int pid_t; ++#endif + static int join(), myexecvp(); + static pid_t myfork(); + +Index: common/global.h +=================================================================== +RCS file: /cvsroot/cscope/cscope/common/global.h,v +retrieving revision 1.1.1.1 +diff -u -r1.1.1.1 global.h +--- common/global.h 2000/04/18 13:16:43 1.1.1.1 ++++ common/global.h 2000/04/20 06:59:59 +@@ -46,10 +46,14 @@ + #include "invlib.h" /* inverted index library */ + #include "library.h" /* library function return values */ + ++#ifdef __NetBSD__ ++#define SIGTYPE void ++#else + #if SVR2 || BSD && !sun + #define SIGTYPE int + #else + #define SIGTYPE void ++#endif + #endif + + typedef enum { /* boolean data type */ +Index: common/help.c +=================================================================== +RCS file: /cvsroot/cscope/cscope/common/help.c,v +retrieving revision 1.1.1.1 +diff -u -r1.1.1.1 help.c +--- common/help.c 2000/04/18 13:16:43 1.1.1.1 ++++ common/help.c 2000/04/20 06:59:59 +@@ -132,6 +132,7 @@ + ++ln; + } + } ++ move(ln, 0); + (void) addstr(*tp++); + } + else { +Index: common/input.c +=================================================================== +RCS file: /cvsroot/cscope/cscope/common/input.c,v +retrieving revision 1.1.1.1 +diff -u -r1.1.1.1 input.c +--- common/input.c 2000/04/18 13:16:43 1.1.1.1 ++++ common/input.c 2000/04/20 06:59:59 +@@ -38,6 +38,9 @@ + #include "global.h" + #include <curses.h> + #include <setjmp.h> /* jmp_buf */ ++#ifdef __NetBSD__ ++#include <termios.h> ++#endif + + static char const rcsid[] = "$Id: patch-aa,v 1.1.1.1 2000/04/20 07:03:55 itojun Exp $"; + +Index: common/library.h +=================================================================== +RCS file: /cvsroot/cscope/cscope/common/library.h,v +retrieving revision 1.1.1.1 +diff -u -r1.1.1.1 library.h +--- common/library.h 2000/04/18 13:16:43 1.1.1.1 ++++ common/library.h 2000/04/20 06:59:59 +@@ -53,7 +53,12 @@ + char *ctime(), *getcwd(), *getenv(), *mktemp(); + char *strcat(), *strcpy(), *strncpy(), *strpbrk(), *strchr(), *strrchr(); + char *strtok(); +-long lseek(), time(); ++#if BSD ++off_t lseek(); ++time_t time(); ++#else ++long lseek(); ++#endif + unsigned sleep(); + void exit(), free(), qsort(); + #if BSD +Index: common/vpaccess.c +=================================================================== +RCS file: /cvsroot/cscope/cscope/common/vpaccess.c,v +retrieving revision 1.1.1.1 +diff -u -r1.1.1.1 vpaccess.c +--- common/vpaccess.c 2000/04/18 13:16:44 1.1.1.1 ++++ common/vpaccess.c 2000/04/20 06:59:59 +@@ -37,7 +37,7 @@ + #include <stdio.h> + #include <unistd.h> + #include "vp.h" +-#ifdef CCS ++#if defined(CCS) || defined(__NetBSD__) + #include <sys/types.h> + #else + typedef int mode_t; +Index: i386/Makefile +=================================================================== +RCS file: /cvsroot/cscope/cscope/i386/Makefile,v +retrieving revision 1.2 +diff -u -r1.2 Makefile +--- i386/Makefile 2000/04/19 16:44:45 1.2 ++++ i386/Makefile 2000/04/20 06:59:59 +@@ -37,8 +37,8 @@ + + COMCS= ../common + INCLIST= -I$(COMCS) +-DEFLIST= -DLinux +-LIBS= -lncurses -lfl ++DEFLIST= -DBSD ++LIBS= -lcurses -lfl + + INS= install + INSDIR=/usr/local/bin diff --git a/devel/cscope/patches/patch-ab b/devel/cscope/patches/patch-ab new file mode 100644 index 00000000000..46bbc7adebf --- /dev/null +++ b/devel/cscope/patches/patch-ab @@ -0,0 +1,37 @@ +$NetBSD: patch-ab,v 1.1.1.1 2000/04/20 07:03:55 itojun Exp $ +*** i386/Makefile.orig Tue Apr 18 10:43:47 2000 +--- i386/Makefile Thu Apr 20 15:52:18 2000 +*************** +*** 42,48 **** + + INS= install +! INSDIR=/usr/local/bin +! INSMANDIR=/usr/local/man/man1 + MANPAGE=../doc/cscope.1 + + OBJ = dir.o crossref.o scanner.o lookup.o command.o display.o find.o \ +--- 42,48 ---- + + INS= install +! INSDIR=${PREFIX}/bin +! INSMANDIR=${PREFIX}/man/man1 + MANPAGE=../doc/cscope.1 + + OBJ = dir.o crossref.o scanner.o lookup.o command.o display.o find.o \ +*************** +*** 163,169 **** + + install: all + $(INS) -s -m 755 $(PROGRAM) $(INSDIR) +! $(INS) -m 755 $(MANPAGE) $(INSMANDIR) + + clean: + rm -f *.o *.out lex.yy.c y.tab.? scanner.c egrep.c +--- 163,169 ---- + + install: all + $(INS) -s -m 755 $(PROGRAM) $(INSDIR) +! # $(INS) -m 755 $(MANPAGE) $(INSMANDIR) + + clean: + rm -f *.o *.out lex.yy.c y.tab.? scanner.c egrep.c diff --git a/devel/cscope/pkg/COMMENT b/devel/cscope/pkg/COMMENT new file mode 100644 index 00000000000..5594f5a91ae --- /dev/null +++ b/devel/cscope/pkg/COMMENT @@ -0,0 +1 @@ +interactive C program browser diff --git a/devel/cscope/pkg/DESCR b/devel/cscope/pkg/DESCR new file mode 100644 index 00000000000..05a5f7424d6 --- /dev/null +++ b/devel/cscope/pkg/DESCR @@ -0,0 +1,18 @@ +cscope is an interactive, screen-oriented tool that allows the user to +browse through C source files for specified elements of code. + +By default, cscope examines the C (.c and .h), lex (.l), and yacc (.y) +source files in the current directory. cscope may also be invoked for +source files named on the command line. In either case, cscope +searches the standard directories for #include files that it does not +find in the current directory. cscope uses a symbol cross-reference, +cscope.out by default, to locate functions, function calls, macros, +variables, and preprocessor symbols in the files. + +cscope builds the symbol cross-reference the first time it is used on +the source files for the program being browsed. On a subsequent +invocation, cscope rebuilds the cross-reference only if a source file +has changed or the list of source files is different. When the +cross-reference is rebuilt, the data for the unchanged files are +copied from the old cross-reference, which makes rebuilding faster +than the initial build. diff --git a/devel/cscope/pkg/PLIST b/devel/cscope/pkg/PLIST new file mode 100644 index 00000000000..12f3aee215c --- /dev/null +++ b/devel/cscope/pkg/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/04/20 07:03:56 itojun Exp $ +bin/cscope |