pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils Import wip/nnn as sysutils/nnn.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d74c644f6fdf
branches:  trunk
changeset: 316702:d74c644f6fdf
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Mon Dec 17 14:22:52 2018 +0000

description:
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!

diffstat:

 sysutils/Makefile                   |   3 +-
 sysutils/nnn/DESCR                  |   8 +++++++
 sysutils/nnn/Makefile               |  22 +++++++++++++++++++
 sysutils/nnn/PLIST                  |   3 ++
 sysutils/nnn/distinfo               |   7 ++++++
 sysutils/nnn/patches/patch-Makefile |  41 +++++++++++++++++++++++++++++++++++++
 6 files changed, 83 insertions(+), 1 deletions(-)

diffs (118 lines):

diff -r 34bf8b313c44 -r d74c644f6fdf sysutils/Makefile
--- a/sysutils/Makefile Mon Dec 17 13:46:34 2018 +0000
+++ b/sysutils/Makefile Mon Dec 17 14:22:52 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.788 2018/12/06 20:04:25 leot Exp $
+# $NetBSD: Makefile,v 1.789 2018/12/17 14:22:52 bsiegert Exp $
 #
 
 COMMENT=       System utilities
@@ -392,6 +392,7 @@
 SUBDIR+=       netbsd-kmod-tools
 SUBDIR+=       netbt-hcidump
 SUBDIR+=       news
+SUBDIR+=       nnn
 SUBDIR+=       noice
 SUBDIR+=       notification-daemon
 SUBDIR+=       nrg2iso
diff -r 34bf8b313c44 -r d74c644f6fdf sysutils/nnn/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/nnn/DESCR        Mon Dec 17 14:22:52 2018 +0000
@@ -0,0 +1,8 @@
+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!
diff -r 34bf8b313c44 -r d74c644f6fdf sysutils/nnn/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/nnn/Makefile     Mon Dec 17 14:22:52 2018 +0000
@@ -0,0 +1,22 @@
+# $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@localhost
+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"
diff -r 34bf8b313c44 -r d74c644f6fdf sysutils/nnn/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/nnn/PLIST        Mon Dec 17 14:22:52 2018 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2018/12/17 14:22:52 bsiegert Exp $
+bin/nnn
+man/man1/nnn.1
diff -r 34bf8b313c44 -r d74c644f6fdf sysutils/nnn/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/nnn/distinfo     Mon Dec 17 14:22:52 2018 +0000
@@ -0,0 +1,7 @@
+$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
diff -r 34bf8b313c44 -r d74c644f6fdf sysutils/nnn/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/nnn/patches/patch-Makefile       Mon Dec 17 14:22:52 2018 +0000
@@ -0,0 +1,41 @@
+$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



Home | Main Index | Thread Index | Old Index