View | Details | Raw Unified | Return to bug 239877
Collapse All | Expand All

(-)devel/lab/Makefile (-10 / +4 lines)
Lines 11-17 Link Here
11
LICENSE=	UNLICENSE
11
LICENSE=	UNLICENSE
12
LICENSE_FILE=	${WRKSRC}/LICENSE
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
13
14
USES=		go
14
USES=		go:modules
15
15
16
OPTIONS_DEFINE=	GIT_SUBVERSION
16
OPTIONS_DEFINE=	GIT_SUBVERSION
17
17
Lines 21-27 Link Here
21
21
22
USE_GITHUB=	yes
22
USE_GITHUB=	yes
23
23
24
GH_TUPLE=	zaquestion:${PORTNAME}:${DISTVERSIONPREFIX}${PORTVERSION}:DEFAULT/src/github.com/zaquestion/${PORTNAME} \
24
GH_TUPLE=	zaquestion:${PORTNAME}:${DISTVERSIONPREFIX}${PORTVERSION}:DEFAULT \
25
		avast:retry-go:5469272a8171:avast_retry_go/vendor/github.com/avast/retry-go \
25
		avast:retry-go:5469272a8171:avast_retry_go/vendor/github.com/avast/retry-go \
26
		cpuguy83:go-md2man:v1.0.8:cpuguy83_go_md2man/vendor/github.com/cpuguy83/go-md2man \
26
		cpuguy83:go-md2man:v1.0.8:cpuguy83_go_md2man/vendor/github.com/cpuguy83/go-md2man \
27
		davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
27
		davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
Lines 58-72 Link Here
58
		stretchr:testify:v1.2.2:stretchr_testify/vendor/github.com/stretchr/testify \
58
		stretchr:testify:v1.2.2:stretchr_testify/vendor/github.com/stretchr/testify \
59
		tcnksm:go-gitconfig:v0.1.2:tcnksm_go_gitconfig/vendor/github.com/tcnksm/go-gitconfig \
59
		tcnksm:go-gitconfig:v0.1.2:tcnksm_go_gitconfig/vendor/github.com/tcnksm/go-gitconfig \
60
		xanzy:go-gitlab:7bc4155e8bf8:xanzy_go_gitlab/vendor/github.com/xanzy/go-gitlab
60
		xanzy:go-gitlab:7bc4155e8bf8:xanzy_go_gitlab/vendor/github.com/xanzy/go-gitlab
61
PLIST_FILES=	bin/lab
62
61
63
do-build:
62
GO_BUILDFLAGS=	-ldflags="-X main.version=${PORTVERSION}"
64
	@cd ${WRKSRC}/src/github.com/zaquestion/${PORTNAME}; \
65
		${SETENV} ${MAKE_ENV} CGO_ENABLED=0 ${BUILD_ENV} \
66
		GOPATH=${WRKSRC} go build \
67
		-ldflags "-X \"main.version=${PORTVERSION}\""
68
63
69
do-install:
64
PLIST_FILES=	bin/lab
70
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
71
65
72
.include <bsd.port.mk>
66
.include <bsd.port.mk>

Return to bug 239877