blob: a29c95ff5398e4dc9202b93cce3e84491a6ef4e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
PORTNAME= tealdeer
DISTVERSIONPREFIX= v
DISTVERSION= 1.6.1
PORTREVISION= 2
CATEGORIES= sysutils
MAINTAINER= lcook@FreeBSD.org
COMMENT= Fast tldr client written in Rust
WWW= https://github.com/dbrgn/tealdeer
LICENSE= APACHE20 MIT
LICENSE_COMB= dual
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
USES= cargo ssl
USE_GITHUB= yes
GH_ACCOUNT= dbrgn
PLIST_FILES= bin/tldr
PORTDOCS= CHANGELOG.md README.md
OPTIONS_DEFINE= COMPLETIONS DOCS LOGGER
OPTIONS_DEFAULT= COMPLETIONS
LOGGER_DESC= Debug build with logging enabled
LOGGER_VARS= CARGO_FEATURES+=logging
COMPLETIONS_DESC= Install bash, fish and zsh shell completions
COMPLETIONS_PLIST_FILES= share/bash-completion/completions/${PORTNAME} \
share/fish/vendor_completions.d/${PORTNAME}.fish \
share/zsh/site-functions/_${PORTNAME}
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tldr
.for _shell in bash fish zsh
${INSTALL_DATA} ${WRKSRC}/completion/${_shell}_${PORTNAME} \
${STAGEDIR}${PREFIX}/${COMPLETIONS_PLIST_FILES:M*${_shell}*}
.endfor
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|