mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
176b7648bf
- Pet portfmt and portclippy while here. Changes: https://github.com/jarun/nnn/releases/tag/v3.1 Reported by: portscout
67 lines
1.9 KiB
Makefile
67 lines
1.9 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= nnn
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 3.1
|
|
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= CFLAGS_OPTIMIZATION= \
|
|
LDLIBS_CURSES=-lncursesw \
|
|
MANPREFIX=${PREFIX}/share/man
|
|
# enable dprintf prototype
|
|
CFLAGS+= -D_WITH_DPRINTF
|
|
|
|
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>
|