|
Lines 1-49
Link Here
|
| 1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
| 2 |
|
2 |
|
| 3 |
PORTNAME= gb |
3 |
PORTNAME= gb |
| 4 |
PORTVERSION= 0.0.0.2015080301 |
4 |
PORTVERSION= 0.1.0 |
|
|
5 |
DISTVERSIONPREFIX= v |
| 5 |
CATEGORIES= devel |
6 |
CATEGORIES= devel |
| 6 |
|
7 |
|
| 7 |
MAINTAINER= swills@FreeBSD.org |
8 |
MAINTAINER= swills@FreeBSD.org |
| 8 |
COMMENT= Project based build tool for Go |
9 |
COMMENT= Project based build tool for Go |
| 9 |
|
10 |
|
|
|
11 |
LICENSE= MIT |
| 12 |
|
| 10 |
BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go |
13 |
BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go |
| 11 |
|
14 |
|
| 12 |
USE_GITHUB= yes |
15 |
USE_GITHUB= yes |
| 13 |
GH_ACCOUNT= constabulary |
16 |
GH_ACCOUNT= constabulary |
| 14 |
GH_TAGNAME= 04254de |
|
|
| 15 |
|
17 |
|
| 16 |
PLIST_FILES= bin/gb bin/gb-vendor |
18 |
PLIST_FILES= bin/gb bin/gb-vendor |
| 17 |
|
19 |
|
| 18 |
PORTDOCS= README.md LICENSE |
20 |
PORTDOCS= README.md LICENSE |
| 19 |
|
21 |
|
| 20 |
STRIP= # stripping can break go binaries |
22 |
STRIP= # stripping can break go binaries |
| 21 |
|
23 |
GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT} |
| 22 |
.include <bsd.port.options.mk> |
24 |
GO_TARGET= ./... |
| 23 |
|
|
|
| 24 |
post-extract: |
| 25 |
@cd ${WRKSRC} ; ${MKDIR} src/github.com/${GH_ACCOUNT}/${GH_PROJECT} ; \ |
| 26 |
${MV} .gitignore LICENSE README.md build.go build_test.go \ |
| 27 |
cgo.go cgo14.go cgo15.go cmd context.go context_test.go \ |
| 28 |
defaultcc.go defaultcc_bsd.go example_test.go gb.go gb_test.go \ |
| 29 |
gc.go gc14.go gc15.go install.go log.go package.go \ |
| 30 |
package_test.go project.go src.go stdlib.go target.go testdata \ |
| 31 |
vendor wercker.yml \ |
| 32 |
src/github.com/${GH_ACCOUNT}/${GH_PROJECT} |
| 33 |
|
| 34 |
do-build: |
| 35 |
@cd ${WRKSRC} ; \ |
| 36 |
${SETENV} GOPATH=${WRKSRC} go install ./... |
| 37 |
|
25 |
|
| 38 |
do-install: |
26 |
do-install: |
| 39 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/gb \ |
27 |
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/* ${STAGEDIR}/${LOCALBASE}/bin |
| 40 |
${STAGEDIR}${PREFIX}/bin/ |
|
|
| 41 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/gb-vendor \ |
| 42 |
${STAGEDIR}${PREFIX}/bin/ |
| 43 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
| 44 |
${CP} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/README.md \ |
| 45 |
${STAGEDIR}${DOCSDIR} |
| 46 |
${CP} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/LICENSE \ |
| 47 |
${STAGEDIR}${DOCSDIR} |
| 48 |
|
28 |
|
| 49 |
.include <bsd.port.mk> |
29 |
.include <bsd.port.pre.mk> |
|
|
30 |
.include "${PORTSDIR}/lang/go/files/bsd.go.mk" |
| 31 |
.include <bsd.port.post.mk> |