26bc3dde3d
While here, add COMPLETIONS option (ON by default). Changelog: https://github.com/RivoLink/leaf/blob/1.26.0/CHANGELOG.md Reported by: GitHub (watch releases)
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
PORTNAME= leaf
|
|
DISTVERSION= 1.26.0
|
|
CATEGORIES= sysutils
|
|
|
|
MAINTAINER= tagattie@FreeBSD.org
|
|
COMMENT= Terminal-based Markdown previewer with a GUI-like experience
|
|
WWW= https://leaf.rivolink.mg/
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libonig.so:devel/oniguruma
|
|
|
|
USES= cargo
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= RivoLink
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
PORTDOCS= CHANGELOG.md CONTRIBUTING.md README.md SECURITY.md
|
|
|
|
OPTIONS_DEFINE= COMPLETIONS DOCS
|
|
OPTIONS_DEFAULT=COMPLETIONS
|
|
|
|
COMPLETIONS_PLIST_FILES=etc/bash_completion.d/${PORTNAME} \
|
|
share/fish/completions/${PORTNAME}.fish \
|
|
share/zsh/site-functions/_${PORTNAME}
|
|
|
|
post-install-COMPLETIONS-on:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d \
|
|
${STAGEDIR}${PREFIX}/share/fish/completions \
|
|
${STAGEDIR}${PREFIX}/share/zsh/site-functions
|
|
${INSTALL_DATA} ${WRKSRC}/completions/${PORTNAME}.bash \
|
|
${STAGEDIR}${PREFIX}/etc/bash_completion.d/${PORTNAME}
|
|
${INSTALL_DATA} ${WRKSRC}/completions/${PORTNAME}.fish \
|
|
${STAGEDIR}${PREFIX}/share/fish/completions/${PORTNAME}.fish
|
|
${INSTALL_DATA} ${WRKSRC}/completions/${PORTNAME}.zsh \
|
|
${STAGEDIR}${PREFIX}/share/zsh/site-functions/_${PORTNAME}
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|