This patch updates nnn from 2.9 to 3.0. With the new version we dont need our patch for sizes any more.
Tested so far on two amd64 systems. Index: Makefile =================================================================== RCS file: /cvs/ports/sysutils/nnn/Makefile,v retrieving revision 1.5 diff -u -p -u -p -r1.5 Makefile --- Makefile 24 Jan 2020 15:32:23 -0000 1.5 +++ Makefile 12 Feb 2020 08:12:53 -0000 @@ -2,7 +2,7 @@ COMMENT = the missing terminal file browser for X -V = 2.9 +V = 3.0 DISTNAME = nnn-v${V} PKGNAME = nnn-${V} @@ -26,7 +26,7 @@ FAKE_FLAGS = MANPREFIX="$(PREFIX)/man" USE_GMAKE = Yes NO_TEST = Yes -WRKDIST = ${WRKDIR}/nnn +WRKDIST = ${WRKDIR}/nnn-${V} post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/bash-completion/completions/ Index: distinfo =================================================================== RCS file: /cvs/ports/sysutils/nnn/distinfo,v retrieving revision 1.3 diff -u -p -u -p -r1.3 distinfo --- distinfo 24 Jan 2020 15:32:23 -0000 1.3 +++ distinfo 12 Feb 2020 08:12:53 -0000 @@ -1,2 +1,2 @@ -SHA256 (nnn-v2.9.tar.gz) = ugsHsNh7ptZEIlnal22OM+1pjeQygjr7b8b2gBy92fY= -SIZE (nnn-v2.9.tar.gz) = 99324 +SHA256 (nnn-v3.0.tar.gz) = BNttZxDOEjLHeb9wE3qGVX5IZhTiAydxcSK7Y/NjSPc= +SIZE (nnn-v3.0.tar.gz) = 102636 Index: patches/patch-src_nnn_c =================================================================== RCS file: patches/patch-src_nnn_c diff -N patches/patch-src_nnn_c --- patches/patch-src_nnn_c 24 Jan 2020 15:32:23 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,16 +0,0 @@ -$OpenBSD: patch-src_nnn_c,v 1.1 2020/01/24 15:32:23 bket Exp $ - -Fix displaying wrong capacity. Taken from https://github.com/jarun/nnn/pull/441 - -Index: src/nnn.c ---- src/nnn.c.orig -+++ src/nnn.c -@@ -3285,7 +3285,7 @@ static size_t get_fs_info(const char *path, bool type) - return 0; - - if (type == CAPACITY) -- return svb.f_blocks << ffs((int)(svb.f_bsize >> 1)); -+ return svb.f_blocks << ffs((int)(svb.f_frsize >> 1)); - - return svb.f_bavail << ffs((int)(svb.f_frsize >> 1)); - }