diff --git a/devel/cscope/Portfile b/devel/cscope/Portfile
index 72cc7d74248..a45c4e1c449 100644
a
|
b
|
|
1 | 1 | PortSystem 1.0 |
2 | 2 | |
3 | 3 | name cscope |
4 | | version 15.8a |
| 4 | version 15.9 |
5 | 5 | revision 1 |
6 | 6 | categories devel |
7 | 7 | platforms darwin freebsd |
… |
… |
long_description Cscope is a developer's tool for browsing source code. \ |
17 | 17 | |
18 | 18 | homepage http://cscope.sourceforge.net/ |
19 | 19 | master_sites sourceforge |
20 | | checksums rmd160 9536de3b7bdf6dd355dd9c28308457692c9a0b9f \ |
21 | | sha256 eb736ac40d5abebe8fa46820c7a8eccc8a17966a9a5f70375367b77177874d1e |
| 20 | checksums rmd160 afea7d56e0536bfe02fcd647a510ae022100c88d \ |
| 21 | sha256 c5505ae075a871a9cd8d9801859b0ff1c09782075df281c72c23e72115d9f159 |
22 | 22 | |
23 | | patchfiles patch-constants.h |
| 23 | patchfiles patch-symlink-not-found-fix.diff |
24 | 24 | |
25 | 25 | depends_lib port:ncurses |
26 | 26 | |
diff --git a/devel/cscope/files/patch-constants.h b/devel/cscope/files/patch-constants.h
deleted file mode 100644
index 9cc5a701b16..00000000000
+
|
-
|
|
1 | | --- src/constants.h 2009-12-10 13:07:26.000000000 -0800 |
2 | | +++ src/constants.h 2009-12-10 13:07:07.000000000 -0800 |
3 | | @@ -103,7 +103,7 @@ |
4 | | #define INCLUDES 8 |
5 | | #define FIELDS 9 |
6 | | |
7 | | -#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__ |
8 | | +#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__ && !__APPLE__ |
9 | | # define TERMINFO 0 /* no terminfo curses */ |
10 | | #else |
11 | | # define TERMINFO 1 |
12 | | |
diff --git a/devel/cscope/files/patch-symlink-not-found-fix.diff b/devel/cscope/files/patch-symlink-not-found-fix.diff
new file mode 100644
index 00000000000..ee41c023b92
-
|
+
|
|
| 1 | --- src/dir.c.orig 2019-12-19 07:15:19.000000000 -0600 |
| 2 | +++ src/dir.c 2019-12-19 07:03:36.000000000 -0600 |
| 3 | @@ -651,7 +651,7 @@ |
| 4 | struct stat stats; |
| 5 | |
| 6 | if (lstat(file, &stats) == 0 |
| 7 | - && S_ISREG(stats.st_mode)) { |
| 8 | + && (S_ISREG(stats.st_mode) || S_ISLNK(stats.st_mode))) { |
| 9 | return YES; |
| 10 | } |
| 11 | } |