Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Feb 2017 14:48:55 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r434671 - head/textproc/jid
Message-ID:  <201702231448.v1NEmtWF007355@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Thu Feb 23 14:48:55 2017
New Revision: 434671
URL: https://svnweb.freebsd.org/changeset/ports/434671

Log:
  Fix USE_GITHUB usage.
  
  (USES=go needs a bit more work though.)
  
  Sponsored by:	Absolight

Modified:
  head/textproc/jid/Makefile   (contents, props changed)

Modified: head/textproc/jid/Makefile
==============================================================================
--- head/textproc/jid/Makefile	Thu Feb 23 14:34:47 2017	(r434670)
+++ head/textproc/jid/Makefile	Thu Feb 23 14:48:55 2017	(r434671)
@@ -13,35 +13,20 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	simeji
-GH_TUPLE=	bitly:go-simplejson:aabad6e:simplejson \
-		fatih:color:7824417:color \
-		mattn:go-runewidth:9e777a8:runewidth \
-		nsf:termbox-go:3540b76:termbox \
-		nwidger:jsoncolor:75a6de4:jsoncolor \
-		pkg:errors:645ef00:errors
+GH_SUBDIR=	src/github.com/simeji/jid
+GH_TUPLE=	bitly:go-simplejson:aabad6e:simplejson/src/github.com/bitly/go-simplejson \
+		fatih:color:7824417:color/src/github.com/fatih/color \
+		mattn:go-runewidth:9e777a8:runewidth/src/github.com/mattn/go-runewidth \
+		nsf:termbox-go:3540b76:termbox/src/github.com/nsf/termbox-go \
+		nwidger:jsoncolor:75a6de4:jsoncolor/src/github.com/nwidger/jsoncolor \
+		pkg:errors:645ef00:errors/src/github.com/pkg/errors
 
 USES=		go
 
 PLIST_FILES=	bin/jid
 
-pre-build: .SILENT
-	${MKDIR} ${WRKDIR}/src/github.com/mattn
-	${MV} ${WRKDIR}/go-runewidth-9e777a8 ${WRKDIR}/src/github.com/mattn/go-runewidth
-	${MKDIR} ${WRKDIR}/src/github.com/fatih
-	${MV} ${WRKDIR}/color-7824417 ${WRKDIR}/src/github.com/fatih/color
-	${MKDIR} ${WRKDIR}/src/github.com/bitly
-	${MV} ${WRKDIR}/go-simplejson-aabad6e ${WRKDIR}/src/github.com/bitly/go-simplejson
-	${MKDIR} ${WRKDIR}/src/github.com/nsf
-	${MV} ${WRKDIR}/termbox-go-3540b76 ${WRKDIR}/src/github.com/nsf/termbox-go
-	${MKDIR} ${WRKDIR}/src/github.com/nwidger
-	${MV} ${WRKDIR}/jsoncolor-75a6de4 ${WRKDIR}/src/github.com/nwidger/jsoncolor
-	${MKDIR} ${WRKDIR}/src/github.com/pkg
-	${MV} ${WRKDIR}/errors-645ef00 ${WRKDIR}/src/github.com/pkg/errors
-	${MKDIR} ${WRKDIR}/src/github.com/simeji
-	${CP} -r ${WRKDIR}/jid-${PORTVERSION} ${WRKDIR}/src/github.com/simeji/jid
-
 do-build:
-	@(cd ${WRKDIR}/src/github.com/simeji/jid; \
-		${SETENV} ${GO_ENV} ${GO_CMD} build -v -o ${WRKDIR}/bin/jid cmd/jid/jid.go)
+	@(cd ${WRKSRC}; \
+		${SETENV} ${GO_ENV} GOPATH=${WRKSRC} ${GO_CMD} build -v -o ${WRKSRC}/bin/jid cmd/jid/jid.go)
 
 .include <bsd.port.mk>



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