blob: ed8ffdb2d3c069253976ac9f199827dc9602f4f2 (
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
39
40
41
42
43
44
45
|
PORTNAME= git-bug
DISTVERSIONPREFIX= v
DISTVERSION= 0.8.0
PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= lcook@FreeBSD.org
COMMENT= Distributed, offline-first bug tracker embedded in git, with bridges
WWW= https://github.com/MichaelMure/git-bug
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= git:devel/git
USES= go:modules
_BUILD_COMMIT= a3fa445
GO_MODULE= github.com/MichaelMure/${PORTNAME}
GO_BUILDFLAGS= -ldflags "\
-s -w \
-X ${GO_MODULE}/commands.GitCommit=${_BUILD_COMMIT} \
-X ${GO_MODULE}/commands.GitLastTag=${DISTVERSION} \
-X ${GO_MODULE}/commands.GitExactTag=${DISTVERSION}"
OPTIONS_DEFINE= COMPLETIONS MANPAGES
OPTIONS_DEFAULT= COMPLETIONS MANPAGES
OPTIONS_SUB= yes
COMPLETIONS_DESC= Build and 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-COMPLETIONS-on:
.for _shell in bash fish zsh
${GO_WRKDIR_BIN}/${PORTNAME} completion ${_shell} \
>${STAGEDIR}${PREFIX}/${COMPLETIONS_PLIST_FILES:M*${_shell}*}
.endfor
post-install-MANPAGES-on:
${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.include <bsd.port.mk>
|