From 667a8e7534d0b3f060c5778c4fa7db64df28fef8 Mon Sep 17 00:00:00 2001 From: bket Date: Wed, 12 Feb 2020 14:05:23 +0000 Subject: [PATCH] Update to nnn-3.0 Changes: https://github.com/jarun/nnn/releases/tag/v3.0 Patch has been committed upstream. From Martin Ziemer (MAINTAINER). Thank you! --- sysutils/nnn/Makefile | 6 +++--- sysutils/nnn/distinfo | 4 ++-- sysutils/nnn/patches/patch-src_nnn_c | 16 ---------------- 3 files changed, 5 insertions(+), 21 deletions(-) delete mode 100644 sysutils/nnn/patches/patch-src_nnn_c diff --git a/sysutils/nnn/Makefile b/sysutils/nnn/Makefile index 879b3dbb4e2..82a6dbb7b7d 100644 --- a/sysutils/nnn/Makefile +++ b/sysutils/nnn/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.5 2020/01/24 15:32:23 bket Exp $ +# $OpenBSD: Makefile,v 1.6 2020/02/12 14:05:23 bket Exp $ 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/ diff --git a/sysutils/nnn/distinfo b/sysutils/nnn/distinfo index 03abf5678b9..8974cfe3261 100644 --- a/sysutils/nnn/distinfo +++ b/sysutils/nnn/distinfo @@ -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 diff --git a/sysutils/nnn/patches/patch-src_nnn_c b/sysutils/nnn/patches/patch-src_nnn_c deleted file mode 100644 index 82b02e39edd..00000000000 --- a/sysutils/nnn/patches/patch-src_nnn_c +++ /dev/null @@ -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)); - }