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 (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,80 +1,80 @@ @@ -1,80 +1,80 @@
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
17INSTALLATION_DIRS+= share/fish/vendor_completions.d 17INSTALLATION_DIRS+= share/fish/vendor_completions.d
18INSTALLATION_DIRS+= share/zsh/site-functions 18INSTALLATION_DIRS+= share/zsh/site-functions
19INSTALLATION_DIRS+= share/examples/nnn/plugins 19INSTALLATION_DIRS+= share/examples/nnn/plugins
20 20
21.include "../../mk/bsd.prefs.mk" 21.include "../../mk/bsd.prefs.mk"
22 22
23# NetBSD: 23# NetBSD:
24# Prevent pulling in builtin termcap which conflicts with ncurses' 24# Prevent pulling in builtin termcap which conflicts with ncurses'
25# implementation, causing a crash at startup. See: 25# implementation, causing a crash at startup. See:
26# https://github.com/jarun/nnn/issues/445 26# https://github.com/jarun/nnn/issues/445
27# 27#
28# Illumos: 28# Illumos:
29# -lreadline links to system curses, causing conflicts with ncurses 29# -lreadline links to system curses, causing conflicts with ncurses
30.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS" 30.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
31READLINE_DEFAULT= readline 31READLINE_DEFAULT= readline
32.endif 32.endif
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:
61 ${INSTALL} \ 61 ${INSTALL} \
62 ${WRKSRC}/plugins/* \ 62 ${WRKSRC}/plugins/* \
63 ${DESTDIR}${PREFIX}/share/examples/nnn/plugins 63 ${DESTDIR}${PREFIX}/share/examples/nnn/plugins
64 ${INSTALL_DATA} \ 64 ${INSTALL_DATA} \
65 ${WRKSRC}/plugins/README.md \ 65 ${WRKSRC}/plugins/README.md \
66 ${DESTDIR}${PREFIX}/share/examples/nnn/plugins 66 ${DESTDIR}${PREFIX}/share/examples/nnn/plugins
67 ${INSTALL_DATA} \ 67 ${INSTALL_DATA} \
68 ${WRKSRC}/misc/auto-completion/bash/nnn-completion.bash \ 68 ${WRKSRC}/misc/auto-completion/bash/nnn-completion.bash \
69 ${DESTDIR}${PREFIX}/share/bash-completion/completions/nnn 69 ${DESTDIR}${PREFIX}/share/bash-completion/completions/nnn
70 ${INSTALL_DATA} \ 70 ${INSTALL_DATA} \
71 ${WRKSRC}/misc/auto-completion/fish/nnn.fish \ 71 ${WRKSRC}/misc/auto-completion/fish/nnn.fish \
72 ${DESTDIR}${PREFIX}/share/fish/vendor_completions.d/ 72 ${DESTDIR}${PREFIX}/share/fish/vendor_completions.d/
73 ${INSTALL_DATA} \ 73 ${INSTALL_DATA} \
74 ${WRKSRC}/misc/auto-completion/zsh/_nnn \ 74 ${WRKSRC}/misc/auto-completion/zsh/_nnn \
75 ${DESTDIR}${PREFIX}/share/zsh/site-functions 75 ${DESTDIR}${PREFIX}/share/zsh/site-functions
76 76
77.include "options.mk" 77.include "options.mk"
78 78
79.include "../../mk/curses.buildlink3.mk" 79.include "../../mk/curses.buildlink3.mk"
80.include "../../mk/bsd.pkg.mk" 80.include "../../mk/bsd.pkg.mk"

cvs diff -r1.4 -r1.5 pkgsrc/sysutils/nnn/PLIST (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,60 +1,60 @@ @@ -1,60 +1,60 @@
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
15share/examples/nnn/plugins/finder 15share/examples/nnn/plugins/finder
16share/examples/nnn/plugins/fixname 16share/examples/nnn/plugins/fixname
17share/examples/nnn/plugins/fzcd 17share/examples/nnn/plugins/fzcd
18share/examples/nnn/plugins/fzhist 18share/examples/nnn/plugins/fzhist
19share/examples/nnn/plugins/fzopen 19share/examples/nnn/plugins/fzopen
20share/examples/nnn/plugins/fzplug 20share/examples/nnn/plugins/fzplug
21share/examples/nnn/plugins/getplugs 21share/examples/nnn/plugins/getplugs
22share/examples/nnn/plugins/gitroot 22share/examples/nnn/plugins/gitroot
23share/examples/nnn/plugins/gpgd 23share/examples/nnn/plugins/gpgd
24share/examples/nnn/plugins/gpge 24share/examples/nnn/plugins/gpge
25share/examples/nnn/plugins/gsconnect 25share/examples/nnn/plugins/gsconnect
26share/examples/nnn/plugins/gutenread 26share/examples/nnn/plugins/gutenread
27share/examples/nnn/plugins/imgresize 27share/examples/nnn/plugins/imgresize
28share/examples/nnn/plugins/imgur 28share/examples/nnn/plugins/imgur
29share/examples/nnn/plugins/imgview 29share/examples/nnn/plugins/imgview
30share/examples/nnn/plugins/ipinfo 30share/examples/nnn/plugins/ipinfo
31share/examples/nnn/plugins/kdeconnect 31share/examples/nnn/plugins/kdeconnect
32share/examples/nnn/plugins/launch 32share/examples/nnn/plugins/launch
33share/examples/nnn/plugins/mimelist 33share/examples/nnn/plugins/mimelist
34share/examples/nnn/plugins/moclyrics 34share/examples/nnn/plugins/moclyrics
35share/examples/nnn/plugins/mocq 35share/examples/nnn/plugins/mocq
36share/examples/nnn/plugins/mp3conv 36share/examples/nnn/plugins/mp3conv
37share/examples/nnn/plugins/mtpmount 37share/examples/nnn/plugins/mtpmount
38share/examples/nnn/plugins/nbak 38share/examples/nnn/plugins/nbak
39share/examples/nnn/plugins/nmount 39share/examples/nnn/plugins/nmount
40share/examples/nnn/plugins/nuke 40share/examples/nnn/plugins/nuke
41share/examples/nnn/plugins/oldbigfile 41share/examples/nnn/plugins/oldbigfile
42share/examples/nnn/plugins/openall 42share/examples/nnn/plugins/openall
43share/examples/nnn/plugins/organize 43share/examples/nnn/plugins/organize
44share/examples/nnn/plugins/pdfread 44share/examples/nnn/plugins/pdfread
45share/examples/nnn/plugins/preview-tabbed 45share/examples/nnn/plugins/preview-tabbed
46share/examples/nnn/plugins/preview-tui 46share/examples/nnn/plugins/preview-tui
47share/examples/nnn/plugins/pskill 47share/examples/nnn/plugins/pskill
48share/examples/nnn/plugins/renamer 48share/examples/nnn/plugins/renamer
49share/examples/nnn/plugins/ringtone 49share/examples/nnn/plugins/ringtone
50share/examples/nnn/plugins/rsynccp 50share/examples/nnn/plugins/rsynccp
51share/examples/nnn/plugins/splitjoin 51share/examples/nnn/plugins/splitjoin
52share/examples/nnn/plugins/suedit 52share/examples/nnn/plugins/suedit
53share/examples/nnn/plugins/togglex 53share/examples/nnn/plugins/togglex
54share/examples/nnn/plugins/umounttree 54share/examples/nnn/plugins/umounttree
55share/examples/nnn/plugins/upload 55share/examples/nnn/plugins/upload
56share/examples/nnn/plugins/wallpaper 56share/examples/nnn/plugins/wallpaper
57share/examples/nnn/plugins/x2sel 57share/examples/nnn/plugins/x2sel
58share/examples/nnn/plugins/xdgdefault 58share/examples/nnn/plugins/xdgdefault
59share/fish/vendor_completions.d/nnn.fish 59share/fish/vendor_completions.d/nnn.fish
60share/zsh/site-functions/_nnn 60share/zsh/site-functions/_nnn

cvs diff -r1.28 -r1.29 pkgsrc/sysutils/nnn/distinfo (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