From 825de9eea711e5db70d02933f6aaa23eaa575589 Mon Sep 17 00:00:00 2001 From: nia Date: Tue, 24 Nov 2020 18:27:00 +0000 Subject: [PATCH] nvi2: Update to 2.2.0 Changes: Vim-style expandtab option (#75, #76, #80) Provides Turkish translation (#68) Backspace now deletes \ rather than being escaped (#25) T during motion commands is now VI-compatible (#35) Encoding related fixes, such as UTF-8 detection (#61, #42, #65) Fixed a number of memory management issues (#56) --- editors/nvi2/Makefile | 17 ++++++++++++----- editors/nvi2/distinfo | 12 +++++------- editors/nvi2/patches/patch-common_cut.c | 12 ------------ editors/nvi2/patches/patch-ex_ex__filter.c | 12 ------------ 4 files changed, 17 insertions(+), 36 deletions(-) delete mode 100644 editors/nvi2/patches/patch-common_cut.c delete mode 100644 editors/nvi2/patches/patch-ex_ex__filter.c diff --git a/editors/nvi2/Makefile b/editors/nvi2/Makefile index 9f453eb07277..12c0acd9936b 100644 --- a/editors/nvi2/Makefile +++ b/editors/nvi2/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.1 2020/06/14 11:44:02 nia Exp $ +# $NetBSD: Makefile,v 1.2 2020/11/24 18:27:00 nia Exp $ -DISTNAME= nvi2-2.1.3 +DISTNAME= nvi2-2.2.0 CATEGORIES= editors MASTER_SITES= ${MASTER_SITE_GITHUB:=lichray/} GITHUB_TAG= v${PKGVERSION_NOREV} @@ -15,9 +15,13 @@ CONFLICTS+= nvi-m17n-[0-9]* USE_CMAKE= yes +CMAKE_ARG_PATH= .. CONFIGURE_DIRS= build BUILD_DIRS= build +# gcc: error: unrecognized command line option '-fcolor-diagnostics' +BUILDLINK_TRANSFORM+= rm:-fcolor-diagnostics + INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 .include "options.mk" @@ -25,13 +29,16 @@ INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 SUBST_CLASSES+= curses SUBST_STAGE.curses= pre-configure SUBST_MESSAGE.curses= Correcting the path to curses. -SUBST_FILES.curses+= build/CMakeLists.txt +SUBST_FILES.curses+= CMakeLists.txt SUBST_SED.curses+= -e "s,HINTS /usr/lib,HINTS ${BUILDLINK_PREFIX.curses}/lib NO_DEFAULT_PATH,g" +pre-configure: + ${MKDIR} -p ${WRKSRC}/build + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/build/nvi ${DESTDIR}${PREFIX}/bin/nex ${INSTALL_PROGRAM} ${WRKSRC}/build/nvi ${DESTDIR}${PREFIX}/bin/nvi - ${INSTALL_MAN} ${WRKSRC}/docs/man/vi.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/nex.1 - ${INSTALL_MAN} ${WRKSRC}/docs/man/vi.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/nvi.1 + ${INSTALL_MAN} ${WRKSRC}/man/vi.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/nex.1 + ${INSTALL_MAN} ${WRKSRC}/man/vi.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/nvi.1 .include "../../mk/bsd.pkg.mk" diff --git a/editors/nvi2/distinfo b/editors/nvi2/distinfo index 9b83bcdc06b2..65e654a2b525 100644 --- a/editors/nvi2/distinfo +++ b/editors/nvi2/distinfo @@ -1,9 +1,7 @@ -$NetBSD: distinfo,v 1.1 2020/06/14 11:44:02 nia Exp $ +$NetBSD: distinfo,v 1.2 2020/11/24 18:27:00 nia Exp $ -SHA1 (nvi2-2.1.3.tar.gz) = 8840cbc6c128e1f47517754be06d71be0e4446dc -RMD160 (nvi2-2.1.3.tar.gz) = a8d2ed70388a6d698371f5e25bd53e2b49d80375 -SHA512 (nvi2-2.1.3.tar.gz) = d3f8837990aa59dd524a55a302dc892325b232a949f4f2a7114c9efdfa3406cae821edb48dd5d2763bbadd42624bda5a47a4fc21267db86c9021b1a09164db8c -Size (nvi2-2.1.3.tar.gz) = 437664 bytes +SHA1 (nvi2-2.2.0.tar.gz) = 00606c4ffaa2d3cb7b69ab73722114c59e2d811b +RMD160 (nvi2-2.2.0.tar.gz) = e304f500deea1ba54cde58a086a3b1702b3fe423 +SHA512 (nvi2-2.2.0.tar.gz) = 46251f8b9b1e663e38cb7386a9497b8f9e96e9364ee04f89e73081b2351c7ff51b41a272ab7aaffc37b9485781600218e1529d9436fa1b5ad5505e297f63c9eb +Size (nvi2-2.2.0.tar.gz) = 439545 bytes SHA1 (patch-cl_cl__screen.c) = de98539a79da66d2489ec6df29351d3cbaac3c56 -SHA1 (patch-common_cut.c) = 87f42be3f61aa13059391665851895534c30c762 -SHA1 (patch-ex_ex__filter.c) = b1d15ec6129fe427af61d4a2ea726d8565325f02 diff --git a/editors/nvi2/patches/patch-common_cut.c b/editors/nvi2/patches/patch-common_cut.c deleted file mode 100644 index b47715db51d4..000000000000 --- a/editors/nvi2/patches/patch-common_cut.c +++ /dev/null @@ -1,12 +0,0 @@ -$NetBSD: patch-common_cut.c,v 1.1 2020/06/14 11:44:02 nia Exp $ - -Missing timespec definition. - ---- common/cut.c.orig 2015-04-08 21:20:21.000000000 +0000 -+++ common/cut.c -@@ -14,4 +14,5 @@ static const char sccsid[] = "$Id: cut.c - #endif /* not lint */ - -+#include - #include - #include diff --git a/editors/nvi2/patches/patch-ex_ex__filter.c b/editors/nvi2/patches/patch-ex_ex__filter.c deleted file mode 100644 index fc9e66731596..000000000000 --- a/editors/nvi2/patches/patch-ex_ex__filter.c +++ /dev/null @@ -1,12 +0,0 @@ -$NetBSD: patch-ex_ex__filter.c,v 1.1 2020/06/14 11:44:02 nia Exp $ - -Missing timespec definition. - ---- ex/ex_filter.c.orig 2015-04-08 21:20:21.000000000 +0000 -+++ ex/ex_filter.c -@@ -14,4 +14,5 @@ static const char sccsid[] = "$Id: ex_fi - #endif /* not lint */ - -+#include - #include - #include