summaryrefslogtreecommitdiffstats
path: root/editors/nvi-perl
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2004-01-04 23:42:04 +0000
committerpetef <petef@FreeBSD.org>2004-01-04 23:42:04 +0000
commit9fbfd7693cae3c4b349f1dec01c0b3fe85727c99 (patch)
treee010341b0cafb3b55c7ea74830e04512ea63fe1e /editors/nvi-perl
parent2245f37a4a6f640931655af60b3c8b31d2f2ada8 (diff)
downloadFreeBSD-ports-9fbfd7693cae3c4b349f1dec01c0b3fe85727c99.zip
FreeBSD-ports-9fbfd7693cae3c4b349f1dec01c0b3fe85727c99.tar.gz
Since we prefix the binary names with "pn", we need this patch so
'pnview' sets the 'readonly' flag by default. PR: 59088
Diffstat (limited to 'editors/nvi-perl')
-rw-r--r--editors/nvi-perl/Makefile2
-rw-r--r--editors/nvi-perl/files/patch-common::main.c12
2 files changed, 13 insertions, 1 deletions
diff --git a/editors/nvi-perl/Makefile b/editors/nvi-perl/Makefile
index 9866863..697baaf 100644
--- a/editors/nvi-perl/Makefile
+++ b/editors/nvi-perl/Makefile
@@ -7,7 +7,7 @@
PORTNAME= nvi
PORTVERSION= 1.79
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= editors
MASTER_SITES= ftp://ftp.sleepycat.com/pub/
PKGNAMESUFFIX= -perl
diff --git a/editors/nvi-perl/files/patch-common::main.c b/editors/nvi-perl/files/patch-common::main.c
new file mode 100644
index 0000000..d4f3633
--- /dev/null
+++ b/editors/nvi-perl/files/patch-common::main.c
@@ -0,0 +1,12 @@
+$FreeBSD$
+
+--- common/main.c.orig Sun Jan 4 17:35:52 2004
++++ common/main.c Sun Jan 4 17:36:09 2004
+@@ -93,6 +93,7 @@
+ else {
+ /* Nview, view are readonly. */
+ if (!strcmp(gp->progname, "nview") ||
++ !strcmp(gp->progname, "pnview") ||
+ !strcmp(gp->progname, "view"))
+ readonly = 1;
+
OpenPOWER on IntegriCloud