diff options
author | yuri <yuri@FreeBSD.org> | 2018-02-28 08:49:46 +0800 |
---|---|---|
committer | yuri <yuri@FreeBSD.org> | 2018-02-28 08:49:46 +0800 |
commit | 3d93271f7670497835bc0b82de24309251596ebd (patch) | |
tree | ed1f098ae72fe1e9a03789714b2a46fc16f10708 /misc | |
parent | 3fcd0e4a10461ceefa09409bb98f96de29cda880 (diff) | |
download | freebsd-ports-gnome-3d93271f7670497835bc0b82de24309251596ebd.tar.gz freebsd-ports-gnome-3d93271f7670497835bc0b82de24309251596ebd.tar.zst freebsd-ports-gnome-3d93271f7670497835bc0b82de24309251596ebd.zip |
misc/nnn: Update to 1.7
Changelog:
https://github.com/jarun/nnn/releases/tag/v1.7
Port changes:
* Shell completion options removed, completions installed unconditionally
* Remove files/patch-nnn.c (merged upstream)
PR: 226253
Submitted by: Dmitri Goutnik <dg@syrec.org> (maintainer)
Approved by: tcberner (mentor, implicit)
Diffstat (limited to 'misc')
-rw-r--r-- | misc/nnn/Makefile | 32 | ||||
-rw-r--r-- | misc/nnn/distinfo | 6 | ||||
-rw-r--r-- | misc/nnn/files/patch-Makefile | 25 | ||||
-rw-r--r-- | misc/nnn/files/patch-nnn.c | 40 |
4 files changed, 31 insertions, 72 deletions
diff --git a/misc/nnn/Makefile b/misc/nnn/Makefile index e7989f22234e..3a7d8c3de834 100644 --- a/misc/nnn/Makefile +++ b/misc/nnn/Makefile @@ -2,7 +2,7 @@ PORTNAME= nnn DISTVERSIONPREFIX= v -DISTVERSION= 1.6 +DISTVERSION= 1.7 CATEGORIES= misc shells MAINTAINER= dg@syrec.org @@ -22,7 +22,7 @@ SHEBANG_FILES= nlay MAKE_ARGS= PREFIX=${PREFIX} MANPREFIX=${PREFIX}/man CFLAGS+= -D_WITH_DPRINTF # enable dprintf prototype -OPTIONS_DEFINE= ATOOL BASH DOCS EXAMPLES FISH MEDIAINFO ZSH +OPTIONS_DEFINE= ATOOL DOCS EXAMPLES MEDIAINFO OPTIONS_DEFAULT= ATOOL MEDIAINFO ATOOL_DESC= List and extract archives MEDIAINFO_DESC= Show media information @@ -30,21 +30,27 @@ MEDIAINFO_DESC= Show media information ATOOL_RUN_DEPENDS= atool:archivers/atool MEDIAINFO_RUN_DEPENDS= mediainfo:multimedia/mediainfo -BASH_PLIST_FILES= etc/bash_completion.d/nnn-completion.bash -FISH_PLIST_FILES= share/fish/completions/nnn.fish -ZSH_PLIST_FILES= share/zsh/site-functions/_nnn - PLIST_FILES= bin/nnn \ bin/nlay \ - man/man1/nnn.1.gz + man/man1/nnn.1.gz \ + etc/bash_completion.d/nnn-completion.bash \ + share/fish/completions/nnn.fish \ + share/zsh/site-functions/_nnn PORTDOCS= README.md PORTEXAMPLES= * -post-install-BASH-on: +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/nnn @${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d ${INSTALL_DATA} ${WRKSRC}/scripts/auto-completion/bash/nnn-completion.bash \ ${STAGEDIR}${PREFIX}/etc/bash_completion.d + @${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions + ${INSTALL_DATA} ${WRKSRC}/scripts/auto-completion/fish/nnn.fish \ + ${STAGEDIR}${PREFIX}/share/fish/completions + @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions + ${INSTALL_DATA} ${WRKSRC}/scripts/auto-completion/zsh/_nnn \ + ${STAGEDIR}${PREFIX}/share/zsh/site-functions post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} @@ -54,14 +60,4 @@ post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/scripts && ${COPYTREE_SHARE} "copier quitcd" ${STAGEDIR}${EXAMPLESDIR} -post-install-FISH-on: - @${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions - ${INSTALL_DATA} ${WRKSRC}/scripts/auto-completion/fish/nnn.fish \ - ${STAGEDIR}${PREFIX}/share/fish/completions - -post-install-ZSH-on: - @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions - ${INSTALL_DATA} ${WRKSRC}/scripts/auto-completion/zsh/_nnn \ - ${STAGEDIR}${PREFIX}/share/zsh/site-functions - .include <bsd.port.mk> diff --git a/misc/nnn/distinfo b/misc/nnn/distinfo index efe5f8eb7c8b..c8d6095bcfed 100644 --- a/misc/nnn/distinfo +++ b/misc/nnn/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1514234740 -SHA256 (jarun-nnn-v1.6_GH0.tar.gz) = e8b10a3b9847ba7ad3317f608691aaebcdaf2b67219d732f7a5d468221d3e83e -SIZE (jarun-nnn-v1.6_GH0.tar.gz) = 37456 +TIMESTAMP = 1519768390 +SHA256 (jarun-nnn-v1.7_GH0.tar.gz) = fbe26efbed8b467352f313b92f8617d873c8cf0209fb6377572cf8d1ddc2747c +SIZE (jarun-nnn-v1.7_GH0.tar.gz) = 40356 diff --git a/misc/nnn/files/patch-Makefile b/misc/nnn/files/patch-Makefile index 37b49666fffb..9378b9b8d70a 100644 --- a/misc/nnn/files/patch-Makefile +++ b/misc/nnn/files/patch-Makefile @@ -1,20 +1,23 @@ ---- Makefile.orig 2017-12-25 13:40:20 UTC +--- Makefile.orig 2018-02-27 20:44:53 UTC +++ Makefile -@@ -10,7 +10,7 @@ ifeq ($(shell pkg-config ncursesw && ech - CFLAGS += $(shell pkg-config --cflags ncursesw) - LDLIBS += $(shell pkg-config --libs ncursesw) +@@ -13,7 +13,7 @@ ifeq ($(shell $(PKG_CONFIG) ncursesw && + CFLAGS += $(shell $(PKG_CONFIG) --cflags ncursesw) + LDLIBS += $(shell $(PKG_CONFIG) --libs ncursesw) else - LDLIBS += -lncurses + LDLIBS += -lncursesw endif DISTFILES = nlay nnn.c nnn.h nnn.1 Makefile README.md LICENSE -@@ -23,7 +23,7 @@ all: $(BIN) $(PLAYER) - $(SRC): nnn.h +@@ -33,9 +33,9 @@ debug: $(SRC) - $(BIN): $(SRC) -- $(CC) -O2 $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS) -+ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS) - strip $@ + install: all + install -m 0755 -d $(DESTDIR)$(PREFIX)/bin +- install -m 0755 -t $(DESTDIR)$(PREFIX)/bin $(BIN) $(PLAYER) ++ install -m 0755 $(BIN) $(PLAYER) $(DESTDIR)$(PREFIX)/bin + install -m 0755 -d $(DESTDIR)$(MANPREFIX)/man1 +- install -m 0644 -t $(DESTDIR)$(MANPREFIX)/man1 $(BIN).1 ++ install -m 0644 $(BIN).1 $(DESTDIR)$(MANPREFIX)/man1 - debug: $(SRC) + uninstall: + $(RM) $(DESTDIR)$(PREFIX)/bin/$(BIN) diff --git a/misc/nnn/files/patch-nnn.c b/misc/nnn/files/patch-nnn.c deleted file mode 100644 index 081991b56312..000000000000 --- a/misc/nnn/files/patch-nnn.c +++ /dev/null @@ -1,40 +0,0 @@ -Upstreamed, remove after the next release: - - https://github.com/jarun/nnn/pull/70 - - https://github.com/jarun/nnn/pull/69 - ---- nnn.c.orig 2017-12-25 13:40:20 UTC -+++ nnn.c -@@ -260,7 +260,7 @@ static char * const utils[] = { - #ifdef __APPLE__ - "/usr/bin/open", - #else -- "/usr/bin/xdg-open", -+ "xdg-open", - #endif - "nlay", - "atool" -@@ -1544,20 +1544,22 @@ show_stats(char *fpath, char *fname, str - /* Show size, blocks, file type */ - #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) - dprintf(fd, "\n Size: %-15lld Blocks: %-10lld IO Block: %-6d %s", -+ (long long)sb->st_size, (long long)sb->st_blocks, sb->st_blksize, desc); - #else - dprintf(fd, "\n Size: %-15ld Blocks: %-10ld IO Block: %-6ld %s", --#endif - sb->st_size, sb->st_blocks, sb->st_blksize, desc); -+#endif - - /* Show containing device, inode, hardlink count */ - #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) - sprintf(g_buf, "%xh/%ud", sb->st_dev, sb->st_dev); - dprintf(fd, "\n Device: %-15s Inode: %-11llu Links: %-9hu", -+ g_buf, (unsigned long long)sb->st_ino, sb->st_nlink); - #else - sprintf(g_buf, "%lxh/%lud", sb->st_dev, sb->st_dev); - dprintf(fd, "\n Device: %-15s Inode: %-11lu Links: %-9lu", --#endif - g_buf, sb->st_ino, sb->st_nlink); -+#endif - - /* Show major, minor number for block or char device */ - if (perms[0] == 'b' || perms[0] == 'c') |