Mon Dec 17 14:22:52 2018 UTC ()
Import wip/nnn as sysutils/nnn.

From DESCR:

nnn is probably the fastest and most resource-sensitive file manager you have
ever used. It integrates seamlessly with your DE and favourite GUI utilities,
has a unique navigate-as-you-type mode with auto-select, disk usage analyzer
mode, bookmarks, contexts, application launcher, familiar navigation shortcuts,
subshell spawning and much more.

Integrate utilities like sxiv or fzy easily, transfer selected files using
lftp or use it as a (neo)vim plugin; nnn supports as many scripts as you need!


(bsiegert)
diff -r1.788 -r1.789 pkgsrc/sysutils/Makefile
diff -r0 -r1.1 pkgsrc/sysutils/nnn/DESCR
diff -r0 -r1.1 pkgsrc/sysutils/nnn/Makefile
diff -r0 -r1.1 pkgsrc/sysutils/nnn/PLIST
diff -r0 -r1.1 pkgsrc/sysutils/nnn/distinfo
diff -r0 -r1.1 pkgsrc/sysutils/nnn/patches/patch-Makefile

cvs diff -r1.788 -r1.789 pkgsrc/sysutils/Makefile (expand / switch to unified diff)

--- pkgsrc/sysutils/Makefile 2018/12/06 20:04:25 1.788
+++ pkgsrc/sysutils/Makefile 2018/12/17 14:22:52 1.789
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.788 2018/12/06 20:04:25 leot Exp $ 1# $NetBSD: Makefile,v 1.789 2018/12/17 14:22:52 bsiegert Exp $
2# 2#
3 3
4COMMENT= System utilities 4COMMENT= System utilities
5 5
6SUBDIR+= 855resolution 6SUBDIR+= 855resolution
7SUBDIR+= 915resolution 7SUBDIR+= 915resolution
8SUBDIR+= 9base 8SUBDIR+= 9base
9SUBDIR+= WCMCommander 9SUBDIR+= WCMCommander
10SUBDIR+= accountsservice 10SUBDIR+= accountsservice
11SUBDIR+= acpica-utils 11SUBDIR+= acpica-utils
12SUBDIR+= acpidump 12SUBDIR+= acpidump
13SUBDIR+= adtool 13SUBDIR+= adtool
14SUBDIR+= afbinit 14SUBDIR+= afbinit
@@ -382,26 +382,27 @@ SUBDIR+= mtx @@ -382,26 +382,27 @@ SUBDIR+= mtx
382SUBDIR+= munin-doc 382SUBDIR+= munin-doc
383SUBDIR+= munin-node 383SUBDIR+= munin-node
384SUBDIR+= munin-server 384SUBDIR+= munin-server
385SUBDIR+= nautilus 385SUBDIR+= nautilus
386SUBDIR+= nautilus-sendto 386SUBDIR+= nautilus-sendto
387SUBDIR+= nbase 387SUBDIR+= nbase
388SUBDIR+= ncdu 388SUBDIR+= ncdu
389SUBDIR+= ndesk-dbus 389SUBDIR+= ndesk-dbus
390SUBDIR+= ndesk-dbus-glib 390SUBDIR+= ndesk-dbus-glib
391SUBDIR+= neb-wipe 391SUBDIR+= neb-wipe
392SUBDIR+= netbsd-kmod-tools 392SUBDIR+= netbsd-kmod-tools
393SUBDIR+= netbt-hcidump 393SUBDIR+= netbt-hcidump
394SUBDIR+= news 394SUBDIR+= news
 395SUBDIR+= nnn
395SUBDIR+= noice 396SUBDIR+= noice
396SUBDIR+= notification-daemon 397SUBDIR+= notification-daemon
397SUBDIR+= nrg2iso 398SUBDIR+= nrg2iso
398SUBDIR+= ntfsprogs 399SUBDIR+= ntfsprogs
399SUBDIR+= nvnet 400SUBDIR+= nvnet
400SUBDIR+= nvramtool 401SUBDIR+= nvramtool
401SUBDIR+= oak 402SUBDIR+= oak
402SUBDIR+= open-vm-tools 403SUBDIR+= open-vm-tools
403SUBDIR+= openstack_init 404SUBDIR+= openstack_init
404SUBDIR+= openxenmanager 405SUBDIR+= openxenmanager
405SUBDIR+= osname 406SUBDIR+= osname
406SUBDIR+= ovmf 407SUBDIR+= ovmf
407SUBDIR+= p5-BackupPC-XS 408SUBDIR+= p5-BackupPC-XS

File Added: pkgsrc/sysutils/nnn/DESCR
nnn is probably the fastest and most resource-sensitive file manager you have
ever used. It integrates seamlessly with your DE and favourite GUI utilities,
has a unique navigate-as-you-type mode with auto-select, disk usage analyzer
mode, bookmarks, contexts, application launcher, familiar navigation shortcuts,
subshell spawning and much more.

Integrate utilities like sxiv or fzy easily, transfer selected files using
lftp or use it as a (neo)vim plugin; nnn supports as many scripts as you need!

File Added: pkgsrc/sysutils/nnn/Makefile
# $NetBSD: Makefile,v 1.1 2018/12/17 14:22:52 bsiegert Exp $

DISTNAME=	nnn-2.1
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_GITHUB:=jarun/}
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	ik@sjmulder.nl
HOMEPAGE=	https://github.com/jarun/nnn/
COMMENT=	Optimized, feature-packed terminal file manager
LICENSE=	2-clause-bsd

USE_TOOLS+=	gmake pkg-config
USE_CURSES=	wide

MAKE_ENV+=	MANPREFIX=${PREFIX}/${PKGMANDIR}
MAKE_ENV+=	CFLAGS_OPTIMIZATION=
MAKE_ENV+=	CFLAGS_CURSES=${BUILDLINK_CFLAGS.curses:Q}
MAKE_ENV+=	LDLIBS_CURSES=${BUILDLINK_LDADD.curses:Q}

.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/sysutils/nnn/PLIST
@comment $NetBSD: PLIST,v 1.1 2018/12/17 14:22:52 bsiegert Exp $
bin/nnn
man/man1/nnn.1

File Added: pkgsrc/sysutils/nnn/distinfo
$NetBSD: distinfo,v 1.1 2018/12/17 14:22:52 bsiegert Exp $

SHA1 (nnn-2.1.tar.gz) = 033413269dd31604c188fe4d1cd798290a071bac
RMD160 (nnn-2.1.tar.gz) = ac391618655cfc6c1d3a605cc4b3c4218c5cc074
SHA512 (nnn-2.1.tar.gz) = 4ce20944df613706545cffb70896b9c494ed0304a591b1ffdae4886ac3783c2c1ab321b336b9873bd8b1382bc9c6ae8e0226f7abb98fb461ed64b28e1302d8f2
Size (nnn-2.1.tar.gz) = 48481 bytes
SHA1 (patch-Makefile) = df888894fd091e6a57ceb46aeb3443a369e1c79d

File Added: pkgsrc/sysutils/nnn/patches/Attic/patch-Makefile
$NetBSD: patch-Makefile,v 1.1 2018/12/17 14:22:52 bsiegert Exp $

 - Make curses flags configurable
 - Also use pkg-config for regular ncurses
 - Make optimization flags configurable

Upstream PR:
https://github.com/jarun/nnn/pull/166

--- Makefile
+++ Makefile
@@ -6,16 +6,24 @@ STRIP ?= strip
 PKG_CONFIG ?= pkg-config
 INSTALL ?= install
 
-CFLAGS ?= -O3
-CFLAGS += -Wall -Wextra -Wno-unused-parameter
+CFLAGS_OPTIMIZATION ?= -O3
 
 ifeq ($(shell $(PKG_CONFIG) ncursesw && echo 1),1)
-	CFLAGS += $(shell $(PKG_CONFIG) --cflags ncursesw)
-	LDLIBS += $(shell $(PKG_CONFIG) --libs   ncursesw)
+	CFLAGS_CURSES ?= $(shell $(PKG_CONFIG) --cflags ncursesw)
+	LDLIBS_CURSES ?= $(shell $(PKG_CONFIG) --libs   ncursesw)
+else ifeq ($(shell $(PKG_CONFIG) ncurses && echo 1),1)
+	CFLAGS_CURSES ?= $(shell $(PKG_CONFIG) --cflags ncurses)
+	LDLIBS_CURSES ?= $(shell $(PKG_CONFIG) --libs   ncurses)
 else
-	LDLIBS += -lncurses
+	LDLIBS_CURSES ?= -lncurses
 endif
 
+CFLAGS += -Wall -Wextra -Wno-unused-parameter
+CFLAGS += $(CFLAGS_OPTIMIZATION)
+CFLAGS += $(CFLAGS_CURSES)
+
+LDLIBS += $(LDLIBS_CURSES)
+
 DISTFILES = src nnn.1 Makefile README.md LICENSE
 SRC = src/nnn.c
 BIN = nnn