mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
finance/cointop: Switch to USES=go:modules, fix build with go1.13
PR: 239866 Submitted by: Dmitri Goutnik <dg@syrec.org> Approved by: portmgr (unbreak with the upcoming go1.13)
This commit is contained in:
parent
9047e3d3e3
commit
e5de2e08c2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=509135
@ -10,23 +10,13 @@ COMMENT= Light cryptocurrency coin stats
|
||||
LICENSE= APACHE20
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE.md
|
||||
|
||||
USES= go
|
||||
USES= go:modules
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= miguelmota
|
||||
GH_PROJECT= cointop
|
||||
|
||||
GO_BUILDFLAGS= -ldflags="-X main.Version=${DISTVERSION}"
|
||||
|
||||
PLIST_FILES= bin/cointop
|
||||
|
||||
do-build:
|
||||
@${MKDIR} ${WRKSRC}/github.com/${GH_ACCOUNT}
|
||||
@${RLN} ${WRKSRC} ${WRKSRC}/github.com/${GH_ACCOUNT}/${PORTNAME}
|
||||
@${RLN} ${WRKSRC} ${WRKSRC}/src
|
||||
cd ${WRKSRC} && \
|
||||
${SETENV} ${MAKE_ENV} ${GO_ENV} CGO_ENABLED=0 GOPATH=${WRKSRC} \
|
||||
${GO_CMD} build -ldflags "-X main.Version=${DISTVERSION}" -o bin/${PORTNAME}
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user