pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils



Module Name:    pkgsrc
Committed By:   bsiegert
Date:           Mon Dec 17 14:22:52 UTC 2018

Modified Files:
        pkgsrc/sysutils: Makefile
Added Files:
        pkgsrc/sysutils/nnn: DESCR Makefile PLIST distinfo
        pkgsrc/sysutils/nnn/patches: patch-Makefile

Log Message:
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!


To generate a diff of this commit:
cvs rdiff -u -r1.788 -r1.789 pkgsrc/sysutils/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/nnn/DESCR pkgsrc/sysutils/nnn/Makefile \
    pkgsrc/sysutils/nnn/PLIST pkgsrc/sysutils/nnn/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/nnn/patches/patch-Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/Makefile
diff -u pkgsrc/sysutils/Makefile:1.788 pkgsrc/sysutils/Makefile:1.789
--- pkgsrc/sysutils/Makefile:1.788      Thu Dec  6 20:04:25 2018
+++ pkgsrc/sysutils/Makefile    Mon Dec 17 14:22:52 2018
@@ -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+=    neb-wipe
 SUBDIR+=       netbsd-kmod-tools
 SUBDIR+=       netbt-hcidump
 SUBDIR+=       news
+SUBDIR+=       nnn
 SUBDIR+=       noice
 SUBDIR+=       notification-daemon
 SUBDIR+=       nrg2iso

Added files:

Index: pkgsrc/sysutils/nnn/DESCR
diff -u /dev/null pkgsrc/sysutils/nnn/DESCR:1.1
--- /dev/null   Mon Dec 17 14:22:52 2018
+++ pkgsrc/sysutils/nnn/DESCR   Mon Dec 17 14:22:52 2018
@@ -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!
Index: pkgsrc/sysutils/nnn/Makefile
diff -u /dev/null pkgsrc/sysutils/nnn/Makefile:1.1
--- /dev/null   Mon Dec 17 14:22:52 2018
+++ pkgsrc/sysutils/nnn/Makefile        Mon Dec 17 14:22:52 2018
@@ -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"
Index: pkgsrc/sysutils/nnn/PLIST
diff -u /dev/null pkgsrc/sysutils/nnn/PLIST:1.1
--- /dev/null   Mon Dec 17 14:22:52 2018
+++ pkgsrc/sysutils/nnn/PLIST   Mon Dec 17 14:22:52 2018
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2018/12/17 14:22:52 bsiegert Exp $
+bin/nnn
+man/man1/nnn.1
Index: pkgsrc/sysutils/nnn/distinfo
diff -u /dev/null pkgsrc/sysutils/nnn/distinfo:1.1
--- /dev/null   Mon Dec 17 14:22:52 2018
+++ pkgsrc/sysutils/nnn/distinfo        Mon Dec 17 14:22:52 2018
@@ -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

Index: pkgsrc/sysutils/nnn/patches/patch-Makefile
diff -u /dev/null pkgsrc/sysutils/nnn/patches/patch-Makefile:1.1
--- /dev/null   Mon Dec 17 14:22:53 2018
+++ pkgsrc/sysutils/nnn/patches/patch-Makefile  Mon Dec 17 14:22:52 2018
@@ -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