Index: finance/cointop/Makefile =================================================================== --- finance/cointop/Makefile (revision 508920) +++ finance/cointop/Makefile (working copy) @@ -10,23 +10,13 @@ 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