svn commit: r551653 - in head/devel/cscope: . files
Rainer Hurling
rhurlin at FreeBSD.org
Wed Oct 7 15:59:42 UTC 2020
Author: rhurlin
Date: Wed Oct 7 15:59:40 2020
New Revision: 551653
URL: https://svnweb.freebsd.org/changeset/ports/551653
Log:
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 at schmi.tt> (maintainer)
Approved by: arrowd (mentor)
Differential Revision: https://reviews.freebsd.org/D26704
Added:
head/devel/cscope/files/
head/devel/cscope/files/patch-src_exec.c (contents, props changed)
head/devel/cscope/files/patch-src_input.c (contents, props changed)
head/devel/cscope/files/patch-src_invlib.c (contents, props changed)
Modified:
head/devel/cscope/Makefile
head/devel/cscope/pkg-descr
Modified: head/devel/cscope/Makefile
==============================================================================
--- head/devel/cscope/Makefile Wed Oct 7 15:48:23 2020 (r551652)
+++ head/devel/cscope/Makefile Wed Oct 7 15:59:40 2020 (r551653)
@@ -1,22 +1,23 @@
-# Created by: Castor Fu
# $FreeBSD$
PORTNAME= cscope
-PORTVERSION= 15.9
+DISTVERSION= 15.9
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/v${PORTVERSION}
MAINTAINER= moritz at schmi.tt
-COMMENT= Interactive C program browser
+COMMENT= Interactive C source code browser
LICENSE= BSD3CLAUSE
USES= ncurses
+
+GNU_CONFIGURE= yes
+
OPTIONS_DEFINE= XCSCOPE
OPTIONS_SUB= yes
-XCSCOPE_DESC= Install Emacs package
-GNU_CONFIGURE= yes
+XCSCOPE_DESC= Install Emacs package
EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp
Added: head/devel/cscope/files/patch-src_exec.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/cscope/files/patch-src_exec.c Wed Oct 7 15:59:40 2020 (r551653)
@@ -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];
Added: head/devel/cscope/files/patch-src_input.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/cscope/files/patch-src_input.c Wed Oct 7 15:59:40 2020 (r551653)
@@ -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 */
Added: head/devel/cscope/files/patch-src_invlib.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/cscope/files/patch-src_invlib.c Wed Oct 7 15:59:40 2020 (r551653)
@@ -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 */
Modified: head/devel/cscope/pkg-descr
==============================================================================
--- head/devel/cscope/pkg-descr Wed Oct 7 15:48:23 2020 (r551652)
+++ head/devel/cscope/pkg-descr Wed Oct 7 15:59:40 2020 (r551653)
@@ -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.
+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.
-The Santa Cruz Operation (SCO) has made this available under a very friendly,
-BSD-style Open Source License.
-
WWW: http://cscope.sourceforge.net/
+https://sourceforge.net/projects/cscope/
More information about the svn-ports-head
mailing list