Commit 8166be89 authored by swills's avatar swills
Browse files

devel/gb: add port

gb, the project based build tool for Go

WWW: https://github.com/constabulary/gb
parent 73d6b644
......@@ -485,6 +485,7 @@
SUBDIR += gauche-readline
SUBDIR += gaul
SUBDIR += gazpacho
SUBDIR += gb
SUBDIR += gcc-arm-embedded
SUBDIR += gccmakedep
SUBDIR += gconf2
......
# $FreeBSD$
PORTNAME= gb
PORTVERSION= 0.0.0.2015050101
CATEGORIES= devel
MAINTAINER= swills@FreeBSD.org
COMMENT= Project based build tool for Go
BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go
USE_GITHUB= yes
GH_ACCOUNT= constabulary
GH_PROJECT= gb
GH_TAGNAME= 400dce5e5172bcbaf609e6a1107988bb5571dc90
PLIST_FILES= bin/gb bin/gb-env bin/gb-vendor
PORTDOCS= README.md
STRIP= # stripping can break go binaries
.include <bsd.port.options.mk>
post-patch:
@cd ${WRKSRC} ; ${MKDIR} src/github.com/${GH_ACCOUNT}/${GH_PROJECT} ; \
${CP} -R LICENSE README.md build.go build_test.go cgo.go cmd \
context.go gb.go gc.go getting-started.md gotest_go11.go \
install.go log.go package.go package_test.go project.go \
stdlib.go target.go test.go test_test.go testdata toolchain.go \
util.go wercker.yml \
src/github.com/${GH_ACCOUNT}/${GH_PROJECT}
do-build:
cd ${WRKSRC} ; \
${SETENV} GOPATH=${WRKSRC} go build -o gb-env \
src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/cmd/gb-env/main.go ; \
${SETENV} GOPATH=${WRKSRC} go build -o gb \
src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/cmd/gb/main.go \
src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/cmd/gb/plugin.go \
src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/cmd/gb/build.go \
src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/cmd/gb/test.go ; \
${SETENV} GOPATH=${WRKSRC} go build -o gb-vendor \
src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/cmd/gb-vendor/main.go
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gb \
${STAGEDIR}${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/gb-env \
${STAGEDIR}${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/gb-vendor \
${STAGEDIR}${PREFIX}/bin/
${MKDIR} ${STAGEDIR}${DOCSDIR}
${CP} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/README.md \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
SHA256 (constabulary-gb-0.0.0.2015050101-400dce5e5172bcbaf609e6a1107988bb5571dc90_GH0.tar.gz) = daff70f492a566e98347e9d68b898c6896a7d4adf954c8788a020aa4764bf486
SIZE (constabulary-gb-0.0.0.2015050101-400dce5e5172bcbaf609e6a1107988bb5571dc90_GH0.tar.gz) = 21774
gb, the project based build tool for Go
WWW: https://github.com/constabulary/gb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment