blob: 26c846f9f22fd8503de63506cc794ca141b2b82a (
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
|
PORTNAME= git-bug
DISTVERSIONPREFIX= v
DISTVERSION= 0.7.2
PORTREVISION= 10
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= cc4a93c8ce931b1390c61035b888ad17110b7bd6
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}"
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 \
${STAGEDIR}${MAN1PREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d \
${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/misc/bash_completion/${PORTNAME} \
${STAGEDIR}${PREFIX}/etc/bash_completion.d
${INSTALL_DATA} ${WRKSRC}/misc/zsh_completion/${PORTNAME} \
${STAGEDIR}${PREFIX}/share/zsh/site-functions/_${PORTNAME}
.include <bsd.port.mk>
|