diff options
author | dd <dd@FreeBSD.org> | 2001-07-07 23:45:42 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-07-07 23:45:42 +0000 |
commit | be21d5d533f27a0fe5471f242dffa67a9a248401 (patch) | |
tree | a97f697df643a167bc48d7793b3d2a60c4384d0a | |
parent | 88e5955a1c4927745e3e71ceeabe1cc8a819ab89 (diff) | |
download | FreeBSD-ports-be21d5d533f27a0fe5471f242dffa67a9a248401.zip FreeBSD-ports-be21d5d533f27a0fe5471f242dffa67a9a248401.tar.gz |
Add nvi-devel, the development snapshot of nvi.
-rw-r--r-- | editors/Makefile | 1 | ||||
-rw-r--r-- | editors/nvi-devel/Makefile | 39 | ||||
-rw-r--r-- | editors/nvi-devel/distinfo | 1 | ||||
-rw-r--r-- | editors/nvi-devel/files/patch-configure-incl | 17 | ||||
-rw-r--r-- | editors/nvi-devel/files/patch-lr-num | 19 | ||||
-rw-r--r-- | editors/nvi-devel/pkg-comment | 1 | ||||
-rw-r--r-- | editors/nvi-devel/pkg-descr | 4 | ||||
-rw-r--r-- | editors/nvi-devel/pkg-plist | 5 |
8 files changed, 87 insertions, 0 deletions
diff --git a/editors/Makefile b/editors/Makefile index eed6f45..799b621 100644 --- a/editors/Makefile +++ b/editors/Makefile @@ -81,6 +81,7 @@ SUBDIR += mule-common SUBDIR += nano SUBDIR += nedit + SUBDIR += nvi-devel SUBDIR += nvi-m17n SUBDIR += nvi-perl SUBDIR += offix-editor diff --git a/editors/nvi-devel/Makefile b/editors/nvi-devel/Makefile new file mode 100644 index 0000000..2c14e6e --- /dev/null +++ b/editors/nvi-devel/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: nvi-devel +# Date created: 6 July 2001 +# Whom: dd +# +# $FreeBSD$ +# + +PORTNAME= nvi +PORTVERSION= 1.81.4 +CATEGORIES= editors +MASTER_SITES= http://www.kotnet.org/~skimo/nvi/devel/ \ + ${MASTER_SITE_LOCAL} \ + http://www.unixfreak.org/~dima/distfiles/ +MASTER_SITE_SUBDIR= dd + +MAINTAINER= dd@FreeBSD.org + +BUILD_DEPENDS= iconv:${PORTSDIR}/converters/iconv +LIB_DEPENDS= db3.2:${PORTSDIR}/databases/db3 + +WRKSRC= ${WRKDIR}/${DISTNAME}/build.unix +PATCH_WRKSRC= ${WRKDIR} +GNU_CONFIGURE= yes +INSTALLS_SHLIB= yes +CONFIGURE_ARGS+= --with-db3=${PREFIX} +CONFIGURE_SCRIPT= ../dist/configure + +.include <bsd.port.pre.mk> + +# We need src/include/wchar.h and friends. This isn't the exact +# version we need, but it's close enough. +.if ${OSVERSION} < 500019 +BROKEN= "need wide character support" +.endif + +post-install: + ${MV} ${PREFIX}/bin/vi ${PREFIX}/bin/nvi-devel + +.include <bsd.port.post.mk> diff --git a/editors/nvi-devel/distinfo b/editors/nvi-devel/distinfo new file mode 100644 index 0000000..31e74af --- /dev/null +++ b/editors/nvi-devel/distinfo @@ -0,0 +1 @@ +MD5 (nvi-1.81.4.tar.gz) = 5826bdceb43cb3787ee89ef57de033f6 diff --git a/editors/nvi-devel/files/patch-configure-incl b/editors/nvi-devel/files/patch-configure-incl new file mode 100644 index 0000000..475f48c --- /dev/null +++ b/editors/nvi-devel/files/patch-configure-incl @@ -0,0 +1,17 @@ +# The db3 port installs its include files into ${PREFIX}/include/db3, +# but the distfile assumes they're in ${PREFIX}/include. This seems +# to be a FreeBSDism, so this patch has not, and probably should not, +# be submitted to the maintainer. + +diff -ru nvi-1.81.4.orig/dist/configure nvi-1.81.4/dist/configure +--- nvi-1.81.4.orig/dist/configure Mon Jun 18 14:24:37 2001 ++++ nvi-1.81.4/dist/configure Fri Jul 6 03:27:53 2001 +@@ -6980,7 +6980,7 @@ + saveLDFLAGS="$LDFLAGS" + if test "x$with_db3" != "x"; then + LDFLAGS="-L$with_db3/lib $LDFLAGS" +- CFLAGS="-I$with_db3/include $CFLAGS" ++ CFLAGS="-I$with_db3/include -I$with_db3/include/db3 $CFLAGS" + fi; + + echo $ac_n "checking for db_create in -ldb""... $ac_c" 1>&6 diff --git a/editors/nvi-devel/files/patch-lr-num b/editors/nvi-devel/files/patch-lr-num new file mode 100644 index 0000000..acad5ed --- /dev/null +++ b/editors/nvi-devel/files/patch-lr-num @@ -0,0 +1,19 @@ +# This fixes an infinite loop in the case of: +# +# :set leftright +# :set number +# +# See PR 28687. Patch has been submitted to maintainer. + +diff -ru nvi-1.81.4.orig/vi/vs_refresh.c nvi-1.81.4/vi/vs_refresh.c +--- nvi-1.81.4.orig/vi/vs_refresh.c Wed Jul 19 10:05:20 2000 ++++ nvi-1.81.4/vi/vs_refresh.c Sat Jul 7 16:11:51 2001 +@@ -573,7 +573,7 @@ + * for the number option offset. + */ + cnt = vs_columns(sp, NULL, LNO, &CNO, NULL); +- if (O_ISSET(sp, O_NUMBER)) ++ if (O_ISSET(sp, O_NUMBER) && cnt >= O_NUMBER_LENGTH) + cnt -= O_NUMBER_LENGTH; + + /* Adjust the window towards the beginning of the line. */ diff --git a/editors/nvi-devel/pkg-comment b/editors/nvi-devel/pkg-comment new file mode 100644 index 0000000..82a97cb --- /dev/null +++ b/editors/nvi-devel/pkg-comment @@ -0,0 +1 @@ +Development snapshot of the world-renown nvi editor diff --git a/editors/nvi-devel/pkg-descr b/editors/nvi-devel/pkg-descr new file mode 100644 index 0000000..870694d --- /dev/null +++ b/editors/nvi-devel/pkg-descr @@ -0,0 +1,4 @@ +This is the development snapshot of the world-renown nvi editor +maintained by Sven Verdoolaege and Keith Bostic. + +WWW: http://www.kotnet.org/~skimo/nvi/ diff --git a/editors/nvi-devel/pkg-plist b/editors/nvi-devel/pkg-plist new file mode 100644 index 0000000..d21a1a2 --- /dev/null +++ b/editors/nvi-devel/pkg-plist @@ -0,0 +1,5 @@ +bin/nvi-devel +lib/libvi.a +lib/libvi.la +lib/libvi.so +lib/libvi.so.0 |