summaryrefslogtreecommitdiff
path: root/sysutils/nnn
diff options
context:
space:
mode:
authorsjmulder <sjmulder@pkgsrc.org>2020-05-30 03:06:03 +0000
committersjmulder <sjmulder@pkgsrc.org>2020-05-30 03:06:03 +0000
commitaf844f2b8d7802cf6e63f5d194b1e1a43a068619 (patch)
tree2c9803c1ed84118a671548ae56096ce128bbd8c6 /sysutils/nnn
parenta11e00ef7546b787a81d952b8e538381a83504cf (diff)
downloadpkgsrc-af844f2b8d7802cf6e63f5d194b1e1a43a068619.tar.gz
sysutils/nnn: Update to 3.2
Changes: - an official logo - previews - config `NNN_FIFO` to write hovered file paths a previewer can read - plugin `preview-tabbed`: tabbed[1]/xembed based file previewer - plugin `preview-tui`: simple TUI file previewer in tmux/xterm - plugin `preview-kitty`: preview using kitty terminal's capabilities - live preview[2] configuration example - find & list - send list of files from (cmd run as) plugin to `nnn` - plugin `finder`: find/fd/fzf/grep/ripgrep/fzf (in subtree) and list in `nnn` - `Right` or `l` on symlink in list dir takes to target file - persistent session option `-S` [for disk usage, run `nnn -T d` (see help)] - hover on the file when a file path is passed as positional argument - go to first file or match with `'` (followed by `'` or `char`) - config `NNN_SEL` to specify custom selection file - config `NNN_LOCKER` to specify locker program - dim file details in detail mode - call `chdir()` on directory change - option `-l`: number of lines to move on mouse scroll - graphical keybind map[3] - let `NNN_COLORS` override `NO_COLOR` - plugins - option `-P`: run plugin by key at start - run plugins with `Alt+key` - allow `NNN_PIPE` usage by commands run as plugin - input format to `NNN_PIPE`: `<ctxcode><opcode><data>` (see plugins doc) - set `ctxcode` to `+` for smart context usage (next inactive, else current) - `getplugs` to fetch plugins by installed version of `nnn` - plugin `mimelist`: list files by mime type in subtree - plugin `bookmarks`: named bookmarks using symlinks - plugin `nbak`: backup `nnn` config - `nuke` adds lowdown as alternative markdown viewer - several plugin improvements - fix broken screen on resize (see #520) - fix broken version sort (see #550) - fix list and pipe modes not working together - fix multiple issues with listing files - fix `@` shown in detail mode for symlink to dir - fix listing files directly under `/` - move to `-std=c11` Package changes: - To retain more backwards compatibility, on old GCC versions (<4.7), -std=c99 is used instead of -std=c11. [1] https://tools.suckless.org/tabbed [2] https://github.com/jarun/nnn/wiki/Live-previews [3] https://github.com/jarun/nnn/wiki/Usage#graphical-map
Diffstat (limited to 'sysutils/nnn')
-rw-r--r--sysutils/nnn/Makefile18
-rw-r--r--sysutils/nnn/distinfo10
2 files changed, 21 insertions, 7 deletions
diff --git a/sysutils/nnn/Makefile b/sysutils/nnn/Makefile
index 6a2a105f294..6572ce764b4 100644
--- a/sysutils/nnn/Makefile
+++ b/sysutils/nnn/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.17 2020/04/29 09:29:38 sjmulder Exp $
+# $NetBSD: Makefile,v 1.18 2020/05/30 03:06:03 sjmulder Exp $
-DISTNAME= nnn-3.1
+DISTNAME= nnn-3.2
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=jarun/}
GITHUB_TAG= v${PKGVERSION_NOREV}
@@ -30,6 +30,20 @@ READLINE_DEFAULT= readline
# https://github.com/jarun/nnn/issues/453
MAKE_ENV.Linux+= LDLIBS=-lrt
+.include "../../mk/compiler.mk"
+
+# nnn uses -std=c11 for `restrict` but c99 has it too, so use that on
+# old GCC versions that don't support c11.
+# https://github.com/jarun/nnn/issues/605
+.if !empty(CC_VERSION:Mgcc-[123].*) || \
+ !empty(CC_VERSION:Mgcc-4.[0123456].*)
+SUBST_CLASSES+= c11
+SUBST_MESSAGE.c11= Use c99 on old GCC instead of c11
+SUBST_STAGE.c11= pre-configure
+SUBST_FILES.c11= Makefile
+SUBST_SED.c11= -e 's/-std=c11/-std=c99/'
+.endif
+
MAKE_ENV+= MANPREFIX=${PREFIX}/${PKGMANDIR}
MAKE_ENV+= CFLAGS_OPTIMIZATION=
MAKE_ENV+= CFLAGS_CURSES=${BUILDLINK_CFLAGS.curses:Q}
diff --git a/sysutils/nnn/distinfo b/sysutils/nnn/distinfo
index 6d2dbcf6ecf..1c5e3637646 100644
--- a/sysutils/nnn/distinfo
+++ b/sysutils/nnn/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.12 2020/04/29 09:29:38 sjmulder Exp $
+$NetBSD: distinfo,v 1.13 2020/05/30 03:06:03 sjmulder Exp $
-SHA1 (nnn-3.1.tar.gz) = 70e40acc2e2a9cd330e75ea8641751d69089597d
-RMD160 (nnn-3.1.tar.gz) = fd18ec2f3dcb17ff90463afc21c6f764bf08d806
-SHA512 (nnn-3.1.tar.gz) = f17bdcf95bba3eb50d20cb06725022bcdc2fae34a365e55dea1baa49e40c567e175a3d5c66fcf70f560e64a8933f0ed9a8ca39af67fd39edcb81c82be5aedca9
-Size (nnn-3.1.tar.gz) = 110005 bytes
+SHA1 (nnn-3.2.tar.gz) = 074b20d4a9da51a673e9a43e6ccc1bd8d0b9b425
+RMD160 (nnn-3.2.tar.gz) = 3a0bc30d30da0cb468390f8a583489f0725f1a6e
+SHA512 (nnn-3.2.tar.gz) = 9cdc8d0d74162ddd4b90f69a4f558a25845732497ebdb129159fda658a799a949fe237013bf69a2d6a649433254ba2ed4c65f8f10cddd119f713c1d5518ea378
+Size (nnn-3.2.tar.gz) = 143122 bytes