mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
862613c58a
Changes: https://github.com/jarun/nnn/releases/tag/v2.7 Approved by: araujo (mentor) Differential Revision: https://reviews.freebsd.org/D21917
65 lines
1.9 KiB
Makefile
65 lines
1.9 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= nnn
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 2.7
|
|
CATEGORIES= misc shells
|
|
|
|
MAINTAINER= dmgk@FreeBSD.org
|
|
COMMENT= Missing terminal file browser for X
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= gmake localbase ncurses readline
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= jarun
|
|
|
|
MAKE_ARGS= PREFIX=${PREFIX} MANPREFIX=${PREFIX}/man \
|
|
LDLIBS_CURSES=-lncursesw CFLAGS_OPTIMIZATION=
|
|
CFLAGS+= -D_WITH_DPRINTF # enable dprintf prototype
|
|
|
|
OPTIONS_DEFINE= ATOOL DOCS EXAMPLES MEDIAINFO XDG
|
|
OPTIONS_DEFAULT=ATOOL MEDIAINFO XDG
|
|
|
|
ATOOL_DESC= List and extract archives
|
|
XDG_DESC= Open files with xdg-open
|
|
MEDIAINFO_DESC= Show media information
|
|
|
|
ATOOL_RUN_DEPENDS= atool:archivers/atool
|
|
MEDIAINFO_RUN_DEPENDS= mediainfo:multimedia/mediainfo
|
|
XDG_RUN_DEPENDS= xdg-open:devel/xdg-utils
|
|
|
|
PLIST_FILES= bin/nnn \
|
|
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}/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} "clipboard-copier natool nlaunch nlay quitcd" \
|
|
${STAGEDIR}${EXAMPLESDIR}/scripts
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} plugins ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|