mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
848f5b1b49
Changes: https://github.com/jarun/nnn/releases/tag/v1.9 PR: 230504 Submitted by: Dmitri Goutnik <dg@syrec.org> (maintainer)
65 lines
1.8 KiB
Makefile
65 lines
1.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= nnn
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.9
|
|
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 pkgconfig 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 \
|
|
man/man1/nlay.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>
|