devel/cscope: Port cleanup

General maintenance update:

- Remove Makefile line '#Created by' header
- Change PORTVERSION to DISTVERSION
- Correct COMMENT
- Move GNU_CONFIGURE=yes up
- Rewrite summary in pkg-descr
- Include a second link
- Add patches under files to suppress compiler warnings

PR:		250168
Submitted by:	Moritz Schmitt <moritz@schmi.tt> (maintainer)
Approved by:	arrowd (mentor)
Differential Revision:	https://reviews.freebsd.org/D26704
This commit is contained in:
Rainer Hurling 2020-10-07 15:59:40 +00:00
parent 77762cfd8e
commit 7f8468989a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=551653
5 changed files with 55 additions and 12 deletions

View File

@ -1,23 +1,24 @@
# Created by: Castor Fu
# $FreeBSD$
PORTNAME= cscope
PORTVERSION= 15.9
DISTVERSION= 15.9
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/v${PORTVERSION}
MAINTAINER= moritz@schmi.tt
COMMENT= Interactive C program browser
COMMENT= Interactive C source code browser
LICENSE= BSD3CLAUSE
USES= ncurses
OPTIONS_DEFINE= XCSCOPE
OPTIONS_SUB= yes
XCSCOPE_DESC= Install Emacs package
GNU_CONFIGURE= yes
OPTIONS_DEFINE= XCSCOPE
OPTIONS_SUB= yes
XCSCOPE_DESC= Install Emacs package
EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp
post-install:

View File

@ -0,0 +1,20 @@
--- src/exec.c.orig 2020-10-05 09:17:52 UTC
+++ src/exec.c
@@ -55,7 +55,7 @@ static sighandler_t oldsigtstp; /* old value of SIGTST
#ifndef __MSDOS__ /* none of these is needed, there */
static int join(pid_t p);
-static int myexecvp(char *a, char **args);
+void myexecvp(char *a, char **args);
static pid_t myfork(void);
#endif
@@ -111,7 +111,7 @@ execute(char *a, ...) /* note: "exec" is already defin
/* myexecvp is an interface to the execvp system call to
* modify argv[0] to reference the last component of its path-name.
*/
-static int
+void
myexecvp(char *a, char **args)
{
char msg[MSGLEN + 1];

View File

@ -0,0 +1,11 @@
--- src/input.c.orig 2020-10-05 19:47:54 UTC
+++ src/input.c
@@ -45,7 +45,7 @@
#include <stdlib.h>
#include <errno.h>
#if HAVE_SYS_TERMIOS_H
-#include <sys/termios.h>
+#include <termios.h>
#endif
static jmp_buf env; /* setjmp/longjmp buffer */

View File

@ -0,0 +1,11 @@
--- src/invlib.c.orig 2020-10-05 13:04:06 UTC
+++ src/invlib.c
@@ -103,7 +103,7 @@ static int zipf[ZIPFSIZE + 1];
long
invmake(char *invname, char *invpost, FILE *infile)
{
- unsigned char *s;
+ char *s;
long num;
int i;
long fileindex = 0; /* initialze, to avoid warning */

View File

@ -1,8 +1,8 @@
This port of SCO / USL's 'cscope' lets one easily navigate large C programs.
It's designed to answer questions like where symbols are defined and used,
where variables are assigned, and much more.
The Santa Cruz Operation (SCO) has made this available under a very friendly,
BSD-style Open Source License.
cscope is a screen-oriented software development tool that allows the user to
browse through C source files for specified code elements. It can find symbols,
global definitions, functions called by a function, functions calling a
function, arbitrary regexp patterns and much more. cscope can be used for
projects of all sizes. Vim and Emacs integration is available.
WWW: http://cscope.sourceforge.net/
https://sourceforge.net/projects/cscope/