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,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 | |||
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 | |
@@ -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 | |
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: |
@@ -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 $ | |
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 |
@@ -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 |