freebsd-ports/misc/nnn/Makefile
Yuri Victorovich a9ea46635a 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)
2018-02-28 00:49:46 +00:00

64 lines
1.8 KiB
Makefile

# $FreeBSD$
PORTNAME= nnn
DISTVERSIONPREFIX= v
DISTVERSION= 1.7
CATEGORIES= misc shells
MAINTAINER= dg@syrec.org
COMMENT= Missing terminal file browser for X
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= bash:shells/bash \
xdg-open:devel/xdg-utils
USES= gmake localbase ncurses readline shebangfix
USE_GITHUB= yes
GH_ACCOUNT= jarun
SHEBANG_FILES= nlay
MAKE_ARGS= PREFIX=${PREFIX} MANPREFIX=${PREFIX}/man
CFLAGS+= -D_WITH_DPRINTF # enable dprintf prototype
OPTIONS_DEFINE= ATOOL DOCS EXAMPLES MEDIAINFO
OPTIONS_DEFAULT= ATOOL MEDIAINFO
ATOOL_DESC= List and extract archives
MEDIAINFO_DESC= Show media information
ATOOL_RUN_DEPENDS= atool:archivers/atool
MEDIAINFO_RUN_DEPENDS= mediainfo:multimedia/mediainfo
PLIST_FILES= bin/nnn \
bin/nlay \
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:
${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}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/scripts && ${COPYTREE_SHARE} "copier quitcd" ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>