1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00

sysutils/gotop: Unbreak by switching to USES=go

This commit is contained in:
Yuri Victorovich 2019-05-18 06:37:12 +00:00
parent 9a013f37c3
commit fbf3654f76
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=501915

View File

@ -8,27 +8,19 @@ MAINTAINER= yuri@FreeBSD.org
COMMENT= Terminal based graphical activity monitor inspired by gtop and vtop
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/LICENSE
BROKEN= fails to extract
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
USE_GITHUB= nodefault # the main code is in GH_TUPLE
USES= go
USE_GITHUB= yes
GH_ACCOUNT= cjbassi
GH_TUPLE= cjbassi:gotop:${DISTVERSIONFULL}:main/src/github.com/cjbassi/gotop \
docopt:docopt.go:ee0de3b:docopt/src/github.com/docopt/docopt-go \
GH_TUPLE= docopt:docopt.go:ee0de3b:docopt/src/github.com/docopt/docopt-go \
shirou:gopsutil:v2.19.01:gopsutil/src/github.com/shirou/gopsutil \
golang:sys:37707fd:sys/src/golang.org/x/sys
GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME}
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
PLIST_FILES= bin/${PORTNAME}
do-build:
@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME} && \
${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go install ./...
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>