mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
23a77eb357
Changelog: https://github.com/jarun/nnn/releases/tag/v4.9 PR: 273512 Approved by: dmgk (maintainer-timeout)
67 lines
1.9 KiB
Makefile
67 lines
1.9 KiB
Makefile
PORTNAME= nnn
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 4.9
|
|
CATEGORIES= misc shells
|
|
|
|
MAINTAINER= dmgk@FreeBSD.org
|
|
COMMENT= Missing terminal file browser for X
|
|
WWW= https://github.com/jarun/nnn
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= gsed:textproc/gsed
|
|
|
|
USES= compiler:c11 gmake localbase ncurses readline
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= jarun
|
|
|
|
MAKE_ARGS= CFLAGS_OPTIMIZATION= \
|
|
LDLIBS_CURSES=-lncursesw \
|
|
MANPREFIX=${PREFIX}/share/man \
|
|
PKG_CONFIG=/usr/bin/true
|
|
|
|
PLIST_FILES= bin/nnn \
|
|
etc/bash_completion.d/nnn-completion.bash \
|
|
share/fish/completions/nnn.fish \
|
|
share/man/man1/nnn.1.gz \
|
|
share/zsh/site-functions/_nnn
|
|
|
|
PORTDOCS= README.md
|
|
PORTEXAMPLES= *
|
|
|
|
OPTIONS_DEFINE= ATOOL DOCS EXAMPLES MEDIAINFO XDG
|
|
OPTIONS_DEFAULT= ATOOL MEDIAINFO XDG
|
|
|
|
ATOOL_DESC= List and extract archives
|
|
MEDIAINFO_DESC= Show media information
|
|
XDG_DESC= Open files with xdg-open
|
|
|
|
ATOOL_RUN_DEPENDS= atool:archivers/atool
|
|
MEDIAINFO_RUN_DEPENDS= mediainfo:multimedia/mediainfo
|
|
XDG_RUN_DEPENDS= xdg-open:devel/xdg-utils
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/nnn
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
|
|
${INSTALL_DATA} ${WRKSRC}/misc/auto-completion/bash/nnn-completion.bash \
|
|
${STAGEDIR}${PREFIX}/etc/bash_completion.d
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions
|
|
${INSTALL_DATA} ${WRKSRC}/misc/auto-completion/fish/nnn.fish \
|
|
${STAGEDIR}${PREFIX}/share/fish/completions
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
|
|
${INSTALL_DATA} ${WRKSRC}/misc/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}/scripts
|
|
cd ${WRKSRC}/misc && ${COPYTREE_SHARE} "natool quitcd" \
|
|
${STAGEDIR}${EXAMPLESDIR}/scripts
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} plugins ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|