Wed Apr 19 14:40:35 2023 UTC ()
sysutils/nnn: Update to 4.8

Changes:
- show total size (key S) of non-filtered selection in a directory
- fix tilde (~) handling in file name
- plugin `.nmv` now respects `-u` flag
- env var `$NNN_PREFER_SELECTION` exported to all plugins
- support for wezterm in `preview-tui`
- create new file or directory (tree) on startup
- run command as plugin now supports exported variables
- use `"$nnn"` anywhere when running command as plugin
- set defaults for some prompts on Enter
- improve archive, rename and create new workflows
- optimize link creation
- allow overwriting regular files on new empty file creation
- add patch for colemak keyboard (existing renamed to colemak-dh)
- add correct check for Wayland in clipboard plugins
- add quitcd script for nushell
- plugin `kdeconnect` - send multiple files
- plugin `preview-tui`: add `chafa` as preferred image viewer, multiple
  fixes
- plugin `nmount` - misc. improvements
- add icon for jxl files


(sjmulder)
diff -r1.31 -r1.32 pkgsrc/sysutils/nnn/Makefile
diff -r1.4 -r1.5 pkgsrc/sysutils/nnn/PLIST
diff -r1.28 -r1.29 pkgsrc/sysutils/nnn/distinfo

cvs diff -r1.31 -r1.32 pkgsrc/sysutils/nnn/Makefile (expand / switch to unified diff)

--- pkgsrc/sysutils/nnn/Makefile 2022/11/25 16:10:06 1.31
+++ pkgsrc/sysutils/nnn/Makefile 2023/04/19 14:40:35 1.32
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.31 2022/11/25 16:10:06 sjmulder Exp $ 1# $NetBSD: Makefile,v 1.32 2023/04/19 14:40:35 sjmulder Exp $
2 2
3DISTNAME= nnn-4.7 3DISTNAME= nnn-4.8
4CATEGORIES= sysutils 4CATEGORIES= sysutils
5MASTER_SITES= ${MASTER_SITE_GITHUB:=jarun/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=jarun/}
6GITHUB_TAG= v${PKGVERSION_NOREV} 6GITHUB_TAG= v${PKGVERSION_NOREV}
7 7
8MAINTAINER= sjmulder@NetBSD.org 8MAINTAINER= sjmulder@NetBSD.org
9HOMEPAGE= https://github.com/jarun/nnn/ 9HOMEPAGE= https://github.com/jarun/nnn/
10COMMENT= Optimized, feature-packed terminal file manager 10COMMENT= Optimized, feature-packed terminal file manager
11LICENSE= 2-clause-bsd 11LICENSE= 2-clause-bsd
12 12
13USE_TOOLS+= gmake pkg-config gsed:run 13USE_TOOLS+= gmake pkg-config gsed:run
14USE_CURSES= wide set_escdelay 14USE_CURSES= wide set_escdelay
15 15
16INSTALLATION_DIRS+= share/bash-completion/completions 16INSTALLATION_DIRS+= share/bash-completion/completions
@@ -33,28 +33,28 @@ READLINE_DEFAULT= readline @@ -33,28 +33,28 @@ READLINE_DEFAULT= readline
33 33
34# clock_gettime() on older glibc (eg RHEL 6). See: 34# clock_gettime() on older glibc (eg RHEL 6). See:
35# https://github.com/jarun/nnn/issues/453 35# https://github.com/jarun/nnn/issues/453
36MAKE_ENV.Linux+= LDLIBS=-lrt 36MAKE_ENV.Linux+= LDLIBS=-lrt
37 37
38CFLAGS+= -DCTX8 38CFLAGS+= -DCTX8
39CFLAGS.SunOS+= -D__EXTENSIONS__ 39CFLAGS.SunOS+= -D__EXTENSIONS__
40 40
41.include "../../mk/compiler.mk" 41.include "../../mk/compiler.mk"
42 42
43# nnn uses -std=c11 for `restrict` but c99 has it too, so use that on 43# nnn uses -std=c11 for `restrict` but c99 has it too, so use that on
44# old GCC versions that don't support c11. 44# old GCC versions that don't support c11.
45# https://github.com/jarun/nnn/issues/605 45# https://github.com/jarun/nnn/issues/605
46.if !empty(CC_VERSION:Mgcc-[123].*) || \ 46.if ${CC_VERSION:Mgcc-[123].*} || \
47 !empty(CC_VERSION:Mgcc-4.[0123456].*) 47 ${CC_VERSION:Mgcc-4.[0123456].*}
48SUBST_CLASSES+= c11 48SUBST_CLASSES+= c11
49SUBST_MESSAGE.c11= Use c99 on old GCC instead of c11 49SUBST_MESSAGE.c11= Use c99 on old GCC instead of c11
50SUBST_STAGE.c11= pre-configure 50SUBST_STAGE.c11= pre-configure
51SUBST_FILES.c11= Makefile 51SUBST_FILES.c11= Makefile
52SUBST_SED.c11= -e 's/-std=c11/-std=c99/' 52SUBST_SED.c11= -e 's/-std=c11/-std=c99/'
53.endif 53.endif
54 54
55MAKE_ENV+= MANPREFIX=${PREFIX}/${PKGMANDIR} 55MAKE_ENV+= MANPREFIX=${PREFIX}/${PKGMANDIR}
56MAKE_ENV+= CFLAGS_OPTIMIZATION= 56MAKE_ENV+= CFLAGS_OPTIMIZATION=
57MAKE_ENV+= CFLAGS_CURSES=${BUILDLINK_CFLAGS.curses:Q} 57MAKE_ENV+= CFLAGS_CURSES=${BUILDLINK_CFLAGS.curses:Q}
58MAKE_ENV+= LDLIBS_CURSES=${BUILDLINK_LDADD.curses:Q} 58MAKE_ENV+= LDLIBS_CURSES=${BUILDLINK_LDADD.curses:Q}
59 59
60post-install: 60post-install:

cvs diff -r1.4 -r1.5 pkgsrc/sysutils/nnn/PLIST (expand / switch to unified diff)

--- pkgsrc/sysutils/nnn/PLIST 2022/11/03 11:34:14 1.4
+++ pkgsrc/sysutils/nnn/PLIST 2023/04/19 14:40:35 1.5
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.4 2022/11/03 11:34:14 sjmulder Exp $ 1@comment $NetBSD: PLIST,v 1.5 2023/04/19 14:40:35 sjmulder Exp $
2bin/nnn 2bin/nnn
3man/man1/nnn.1 3man/man1/nnn.1
4share/bash-completion/completions/nnn 4share/bash-completion/completions/nnn
5share/examples/nnn/plugins/README.md 5share/examples/nnn/plugins/README.md
6share/examples/nnn/plugins/autojump 6share/examples/nnn/plugins/autojump
7share/examples/nnn/plugins/boom 7share/examples/nnn/plugins/boom
8share/examples/nnn/plugins/bulknew 8share/examples/nnn/plugins/bulknew
9share/examples/nnn/plugins/cdpath 9share/examples/nnn/plugins/cdpath
10share/examples/nnn/plugins/chksum 10share/examples/nnn/plugins/chksum
11share/examples/nnn/plugins/cmusq 11share/examples/nnn/plugins/cmusq
12share/examples/nnn/plugins/diffs 12share/examples/nnn/plugins/diffs
13share/examples/nnn/plugins/dragdrop 13share/examples/nnn/plugins/dragdrop
14share/examples/nnn/plugins/dups 14share/examples/nnn/plugins/dups

cvs diff -r1.28 -r1.29 pkgsrc/sysutils/nnn/distinfo (expand / switch to unified diff)

--- pkgsrc/sysutils/nnn/distinfo 2022/11/25 16:10:06 1.28
+++ pkgsrc/sysutils/nnn/distinfo 2023/04/19 14:40:35 1.29
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.28 2022/11/25 16:10:06 sjmulder Exp $ 1$NetBSD: distinfo,v 1.29 2023/04/19 14:40:35 sjmulder Exp $
2 2
3BLAKE2s (nnn-4.7.tar.gz) = 0f05150ecd3b56f924a244ea5fe90bf9bbf19b1cbb600c1623ed1f6500cb60ea 3BLAKE2s (nnn-4.8.tar.gz) = 31b69fae1ed3999b36d75d875de3d528701afcb8ee838a05a7ea143607d855d3
4SHA512 (nnn-4.7.tar.gz) = 28ec9b9ab93f979d77e80957df2a70ec687e56ada6d5e8555c121f2454b5c049466120e5eb3570174411a61e3855c869f96d306a43516cceff8c4cb7f1075875 4SHA512 (nnn-4.8.tar.gz) = 932e27ec1d7cd3db6ccba33edb3d1ad2620109cde3c4114b734eef3e04d6c6c22ddaa1c4727908dba2a107dd4cfe1f5193aec450f680a390671f48e63d0133bd
5Size (nnn-4.7.tar.gz) = 250038 bytes 5Size (nnn-4.8.tar.gz) = 253547 bytes
6SHA1 (patch-src_nnn.c) = cbd382a0fe4c5cce1f384987d006675cbf280bdc 6SHA1 (patch-src_nnn.c) = cbd382a0fe4c5cce1f384987d006675cbf280bdc