ports/devel/git-codereview/Makefile
Tobias Kortkamp 3726f94254 Convert all Go ports to USES=go
This allows for port testing with lang/go-devel via GO_PORT, setting
up the Go build environment in a single place, and is step one in
simplifying Go ports that often define too complicated do-build
targets themselves.

USES=go gains new arguments 'run' to add lang/go to RUN_DEPENDS and
'no_targets' for ports with composite builds that call 'go' themselves
and do not need the do-build/do-install targets of USES=go.

PR:		238849
Submitted by:	dg@syrec.org (also D20745)
Reviewed by:	mat, tobik
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D20746
2019-06-29 03:51:13 +00:00

32 lines
774 B
Makefile

# $FreeBSD$
PORTNAME= git-codereview
PORTVERSION= 0.0.0.2016030201
CATEGORIES= devel
MAINTAINER= swills@FreeBSD.org
COMMENT= Command-line tool for working with Gerrit
USES= go
USE_GITHUB= yes
GH_ACCOUNT= golang
GH_PROJECT= review
GH_TAGNAME= 77ae237
PLIST_FILES= bin/git-codereview
post-patch:
@${MKDIR} ${WRKSRC}/src/golang.org/x/review
.for src in .gitattributes AUTHORS CONTRIBUTING.md CONTRIBUTORS LICENSE PATENTS \
README codereview.cfg git-codereview
@${MV} ${WRKSRC}/${src} ${WRKSRC}/src/golang.org/x/review
.endfor
do-build:
@cd ${WRKSRC}/src/golang.org/x/review ; ${SETENV} ${MAKE_ENV} ${BUILD_ENV} GOPATH=${WRKSRC} go install ./...
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>