aboutsummaryrefslogtreecommitdiff
path: root/devel/usage/Makefile
blob: a455d4f4d90cf298e038690b3c9e417d93c6f5b5 (plain) (blame)
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
PORTNAME=	usage
DISTVERSIONPREFIX=	v
DISTVERSION=	6.12.0
CATEGORIES=	devel

MAINTAINER=	jkh@FreeBSD.org
COMMENT=	Specification and toolkit for CLI argument parsing and completions
WWW=		https://usage.jdx.dev/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cargo
USE_GITHUB=	yes
GH_ACCOUNT=	jdx

CARGO_INSTALL_PATH=	cli

PLIST_FILES=	bin/${PORTNAME} \
		share/bash-completion/completions/${PORTNAME} \
		share/fish/vendor_completions.d/${PORTNAME}.fish \
		share/man/man1/${PORTNAME}.1.gz \
		share/zsh/site-functions/_${PORTNAME}

post-install:
	${INSTALL_MAN} ${WRKSRC}/cli/assets/${PORTNAME}.1 \
		${STAGEDIR}${PREFIX}/share/man/man1
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions \
		${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d \
		${STAGEDIR}${PREFIX}/share/zsh/site-functions
	${INSTALL_DATA} ${WRKSRC}/cli/assets/completions/${PORTNAME}.bash \
		${STAGEDIR}${PREFIX}/share/bash-completion/completions/${PORTNAME}
	${INSTALL_DATA} ${WRKSRC}/cli/assets/completions/${PORTNAME}.fish \
		${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d
	${INSTALL_DATA} ${WRKSRC}/cli/assets/completions/_${PORTNAME} \
		${STAGEDIR}${PREFIX}/share/zsh/site-functions

.include <bsd.port.mk>