svn commit: r509135 - head/finance/cointop
Yuri Victorovich
yuri at FreeBSD.org
Sat Aug 17 02:06:07 UTC 2019
Author: yuri
Date: Sat Aug 17 02:06:06 2019
New Revision: 509135
URL: https://svnweb.freebsd.org/changeset/ports/509135
Log:
finance/cointop: Switch to USES=go:modules, fix build with go1.13
PR: 239866
Submitted by: Dmitri Goutnik <dg at syrec.org>
Approved by: portmgr (unbreak with the upcoming go1.13)
Modified:
head/finance/cointop/Makefile
Modified: head/finance/cointop/Makefile
==============================================================================
--- head/finance/cointop/Makefile Sat Aug 17 02:02:13 2019 (r509134)
+++ head/finance/cointop/Makefile Sat Aug 17 02:06:06 2019 (r509135)
@@ -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
-PLIST_FILES= bin/cointop
+GO_BUILDFLAGS= -ldflags="-X main.Version=${DISTVERSION}"
-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/
+PLIST_FILES= bin/cointop
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list