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 filesdiff -r1.31 -r1.32 pkgsrc/sysutils/nnn/Makefile
(sjmulder)
@@ -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 | |||
3 | DISTNAME= nnn-4.7 | 3 | DISTNAME= nnn-4.8 | |
4 | CATEGORIES= sysutils | 4 | CATEGORIES= sysutils | |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=jarun/} | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=jarun/} | |
6 | GITHUB_TAG= v${PKGVERSION_NOREV} | 6 | GITHUB_TAG= v${PKGVERSION_NOREV} | |
7 | 7 | |||
8 | MAINTAINER= sjmulder@NetBSD.org | 8 | MAINTAINER= sjmulder@NetBSD.org | |
9 | HOMEPAGE= https://github.com/jarun/nnn/ | 9 | HOMEPAGE= https://github.com/jarun/nnn/ | |
10 | COMMENT= Optimized, feature-packed terminal file manager | 10 | COMMENT= Optimized, feature-packed terminal file manager | |
11 | LICENSE= 2-clause-bsd | 11 | LICENSE= 2-clause-bsd | |
12 | 12 | |||
13 | USE_TOOLS+= gmake pkg-config gsed:run | 13 | USE_TOOLS+= gmake pkg-config gsed:run | |
14 | USE_CURSES= wide set_escdelay | 14 | USE_CURSES= wide set_escdelay | |
15 | 15 | |||
16 | INSTALLATION_DIRS+= share/bash-completion/completions | 16 | INSTALLATION_DIRS+= share/bash-completion/completions | |
17 | INSTALLATION_DIRS+= share/fish/vendor_completions.d | 17 | INSTALLATION_DIRS+= share/fish/vendor_completions.d | |
18 | INSTALLATION_DIRS+= share/zsh/site-functions | 18 | INSTALLATION_DIRS+= share/zsh/site-functions | |
19 | INSTALLATION_DIRS+= share/examples/nnn/plugins | 19 | INSTALLATION_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" | |
31 | READLINE_DEFAULT= readline | 31 | READLINE_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 | |
36 | MAKE_ENV.Linux+= LDLIBS=-lrt | 36 | MAKE_ENV.Linux+= LDLIBS=-lrt | |
37 | 37 | |||
38 | CFLAGS+= -DCTX8 | 38 | CFLAGS+= -DCTX8 | |
39 | CFLAGS.SunOS+= -D__EXTENSIONS__ | 39 | CFLAGS.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].*} | |
48 | SUBST_CLASSES+= c11 | 48 | SUBST_CLASSES+= c11 | |
49 | SUBST_MESSAGE.c11= Use c99 on old GCC instead of c11 | 49 | SUBST_MESSAGE.c11= Use c99 on old GCC instead of c11 | |
50 | SUBST_STAGE.c11= pre-configure | 50 | SUBST_STAGE.c11= pre-configure | |
51 | SUBST_FILES.c11= Makefile | 51 | SUBST_FILES.c11= Makefile | |
52 | SUBST_SED.c11= -e 's/-std=c11/-std=c99/' | 52 | SUBST_SED.c11= -e 's/-std=c11/-std=c99/' | |
53 | .endif | 53 | .endif | |
54 | 54 | |||
55 | MAKE_ENV+= MANPREFIX=${PREFIX}/${PKGMANDIR} | 55 | MAKE_ENV+= MANPREFIX=${PREFIX}/${PKGMANDIR} | |
56 | MAKE_ENV+= CFLAGS_OPTIMIZATION= | 56 | MAKE_ENV+= CFLAGS_OPTIMIZATION= | |
57 | MAKE_ENV+= CFLAGS_CURSES=${BUILDLINK_CFLAGS.curses:Q} | 57 | MAKE_ENV+= CFLAGS_CURSES=${BUILDLINK_CFLAGS.curses:Q} | |
58 | MAKE_ENV+= LDLIBS_CURSES=${BUILDLINK_LDADD.curses:Q} | 58 | MAKE_ENV+= LDLIBS_CURSES=${BUILDLINK_LDADD.curses:Q} | |
59 | 59 | |||
60 | post-install: | 60 | post-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" |
@@ -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 $ | |
2 | bin/nnn | 2 | bin/nnn | |
3 | man/man1/nnn.1 | 3 | man/man1/nnn.1 | |
4 | share/bash-completion/completions/nnn | 4 | share/bash-completion/completions/nnn | |
5 | share/examples/nnn/plugins/README.md | 5 | share/examples/nnn/plugins/README.md | |
6 | share/examples/nnn/plugins/autojump | 6 | share/examples/nnn/plugins/autojump | |
7 | share/examples/nnn/plugins/boom | 7 | share/examples/nnn/plugins/boom | |
8 | share/examples/nnn/plugins/bulknew | 8 | share/examples/nnn/plugins/bulknew | |
9 | share/examples/nnn/plugins/cdpath | 9 | share/examples/nnn/plugins/cdpath | |
10 | share/examples/nnn/plugins/chksum | 10 | share/examples/nnn/plugins/chksum | |
11 | share/examples/nnn/plugins/cmusq | 11 | share/examples/nnn/plugins/cmusq | |
12 | share/examples/nnn/plugins/diffs | 12 | share/examples/nnn/plugins/diffs | |
13 | share/examples/nnn/plugins/dragdrop | 13 | share/examples/nnn/plugins/dragdrop | |
14 | share/examples/nnn/plugins/dups | 14 | share/examples/nnn/plugins/dups | |
15 | share/examples/nnn/plugins/finder | 15 | share/examples/nnn/plugins/finder | |
16 | share/examples/nnn/plugins/fixname | 16 | share/examples/nnn/plugins/fixname | |
17 | share/examples/nnn/plugins/fzcd | 17 | share/examples/nnn/plugins/fzcd | |
18 | share/examples/nnn/plugins/fzhist | 18 | share/examples/nnn/plugins/fzhist | |
19 | share/examples/nnn/plugins/fzopen | 19 | share/examples/nnn/plugins/fzopen | |
20 | share/examples/nnn/plugins/fzplug | 20 | share/examples/nnn/plugins/fzplug | |
21 | share/examples/nnn/plugins/getplugs | 21 | share/examples/nnn/plugins/getplugs | |
22 | share/examples/nnn/plugins/gitroot | 22 | share/examples/nnn/plugins/gitroot | |
23 | share/examples/nnn/plugins/gpgd | 23 | share/examples/nnn/plugins/gpgd | |
24 | share/examples/nnn/plugins/gpge | 24 | share/examples/nnn/plugins/gpge | |
25 | share/examples/nnn/plugins/gsconnect | 25 | share/examples/nnn/plugins/gsconnect | |
26 | share/examples/nnn/plugins/gutenread | 26 | share/examples/nnn/plugins/gutenread | |
27 | share/examples/nnn/plugins/imgresize | 27 | share/examples/nnn/plugins/imgresize | |
28 | share/examples/nnn/plugins/imgur | 28 | share/examples/nnn/plugins/imgur | |
29 | share/examples/nnn/plugins/imgview | 29 | share/examples/nnn/plugins/imgview | |
30 | share/examples/nnn/plugins/ipinfo | 30 | share/examples/nnn/plugins/ipinfo | |
31 | share/examples/nnn/plugins/kdeconnect | 31 | share/examples/nnn/plugins/kdeconnect | |
32 | share/examples/nnn/plugins/launch | 32 | share/examples/nnn/plugins/launch | |
33 | share/examples/nnn/plugins/mimelist | 33 | share/examples/nnn/plugins/mimelist | |
34 | share/examples/nnn/plugins/moclyrics | 34 | share/examples/nnn/plugins/moclyrics | |
35 | share/examples/nnn/plugins/mocq | 35 | share/examples/nnn/plugins/mocq | |
36 | share/examples/nnn/plugins/mp3conv | 36 | share/examples/nnn/plugins/mp3conv | |
37 | share/examples/nnn/plugins/mtpmount | 37 | share/examples/nnn/plugins/mtpmount | |
38 | share/examples/nnn/plugins/nbak | 38 | share/examples/nnn/plugins/nbak | |
39 | share/examples/nnn/plugins/nmount | 39 | share/examples/nnn/plugins/nmount | |
40 | share/examples/nnn/plugins/nuke | 40 | share/examples/nnn/plugins/nuke | |
41 | share/examples/nnn/plugins/oldbigfile | 41 | share/examples/nnn/plugins/oldbigfile | |
42 | share/examples/nnn/plugins/openall | 42 | share/examples/nnn/plugins/openall | |
43 | share/examples/nnn/plugins/organize | 43 | share/examples/nnn/plugins/organize | |
44 | share/examples/nnn/plugins/pdfread | 44 | share/examples/nnn/plugins/pdfread | |
45 | share/examples/nnn/plugins/preview-tabbed | 45 | share/examples/nnn/plugins/preview-tabbed | |
46 | share/examples/nnn/plugins/preview-tui | 46 | share/examples/nnn/plugins/preview-tui | |
47 | share/examples/nnn/plugins/pskill | 47 | share/examples/nnn/plugins/pskill | |
48 | share/examples/nnn/plugins/renamer | 48 | share/examples/nnn/plugins/renamer | |
49 | share/examples/nnn/plugins/ringtone | 49 | share/examples/nnn/plugins/ringtone | |
50 | share/examples/nnn/plugins/rsynccp | 50 | share/examples/nnn/plugins/rsynccp | |
51 | share/examples/nnn/plugins/splitjoin | 51 | share/examples/nnn/plugins/splitjoin | |
52 | share/examples/nnn/plugins/suedit | 52 | share/examples/nnn/plugins/suedit | |
53 | share/examples/nnn/plugins/togglex | 53 | share/examples/nnn/plugins/togglex | |
54 | share/examples/nnn/plugins/umounttree | 54 | share/examples/nnn/plugins/umounttree | |
55 | share/examples/nnn/plugins/upload | 55 | share/examples/nnn/plugins/upload | |
56 | share/examples/nnn/plugins/wallpaper | 56 | share/examples/nnn/plugins/wallpaper | |
57 | share/examples/nnn/plugins/x2sel | 57 | share/examples/nnn/plugins/x2sel | |
58 | share/examples/nnn/plugins/xdgdefault | 58 | share/examples/nnn/plugins/xdgdefault | |
59 | share/fish/vendor_completions.d/nnn.fish | 59 | share/fish/vendor_completions.d/nnn.fish | |
60 | share/zsh/site-functions/_nnn | 60 | share/zsh/site-functions/_nnn |
@@ -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 | |||
3 | BLAKE2s (nnn-4.7.tar.gz) = 0f05150ecd3b56f924a244ea5fe90bf9bbf19b1cbb600c1623ed1f6500cb60ea | 3 | BLAKE2s (nnn-4.8.tar.gz) = 31b69fae1ed3999b36d75d875de3d528701afcb8ee838a05a7ea143607d855d3 | |
4 | SHA512 (nnn-4.7.tar.gz) = 28ec9b9ab93f979d77e80957df2a70ec687e56ada6d5e8555c121f2454b5c049466120e5eb3570174411a61e3855c869f96d306a43516cceff8c4cb7f1075875 | 4 | SHA512 (nnn-4.8.tar.gz) = 932e27ec1d7cd3db6ccba33edb3d1ad2620109cde3c4114b734eef3e04d6c6c22ddaa1c4727908dba2a107dd4cfe1f5193aec450f680a390671f48e63d0133bd | |
5 | Size (nnn-4.7.tar.gz) = 250038 bytes | 5 | Size (nnn-4.8.tar.gz) = 253547 bytes | |
6 | SHA1 (patch-src_nnn.c) = cbd382a0fe4c5cce1f384987d006675cbf280bdc | 6 | SHA1 (patch-src_nnn.c) = cbd382a0fe4c5cce1f384987d006675cbf280bdc |