Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 May 2019 06:37:12 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r501915 - head/sysutils/gotop
Message-ID:  <201905180637.x4I6bCXU086949@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sat May 18 06:37:12 2019
New Revision: 501915
URL: https://svnweb.freebsd.org/changeset/ports/501915

Log:
  sysutils/gotop: Unbreak by switching to USES=go

Modified:
  head/sysutils/gotop/Makefile

Modified: head/sysutils/gotop/Makefile
==============================================================================
--- head/sysutils/gotop/Makefile	Sat May 18 06:06:49 2019	(r501914)
+++ head/sysutils/gotop/Makefile	Sat May 18 06:37:12 2019	(r501915)
@@ -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
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BROKEN=		fails to extract
-
 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}
 
-PLIST_FILES=	bin/${PORTNAME}
+GO_PKGNAME=	github.com/${GH_ACCOUNT}/${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
+PLIST_FILES=	bin/${PORTNAME}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905180637.x4I6bCXU086949>