- Update to 1.2 [1]

- Remove obsolete pkg-message [2]

PR:		ports/184454 [1], ports/176473 [2]
Submitted by:	lwhsu
This commit is contained in:
Julien Laffaye 2013-12-08 13:33:35 +00:00
parent ec724aee7e
commit 5d7fab8cad
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=335891
4 changed files with 290 additions and 226 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= go
PORTVERSION= 1.1.2
PORTVERSION= 1.2
PORTEPOCH= 1
CATEGORIES= lang
MASTER_SITES= GOOGLE_CODE
@ -24,24 +24,20 @@ sh_OLD_CMD= ${SETENV} bash
sh_CMD= ${SH}
WRKSRC= ${WRKDIR}/go
USE_GCC= any
ONLY_FOR_ARCHS= i386 amd64
SUB_FILES= pkg-message
SUB_LIST+= GOOBJ=${GOOBJ} \
ARCH=${GOARCH} \
GOOS=${OPSYS:L}
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
GOARCH=386
GOOBJ=8
PLIST_SUB+= ENAM="@comment "
PLIST_SUB+= I386_ONLY=""
PLIST_SUB+= AMD64_ONLY="@comment "
.else
GOARCH=amd64
GOOBJ=6
PLIST_SUB+= ENAM=""
PLIST_SUB+= I386_ONLY="@comment "
PLIST_SUB+= AMD64_ONLY=""
.endif
PLIST_SUB+= ARCH=${GOARCH} \
@ -57,13 +53,10 @@ do-build:
GOBIN= GOARCH=${GOARCH} GOOS=${OPSYS:L} \
${SH} make.bash
post-install:
@${CAT} ${PKGMESSAGE}
do-install:
@${CP} -a ${WRKSRC} ${PREFIX}
.for f in go godoc gofmt
@${LN} -sf ${PREFIX}/go/bin/${f} ${PREFIX}/bin/${f}
@${CP} -a ${WRKSRC} ${STAGEDIR}${PREFIX}
.for f in go gofmt
@${LN} -sf ${PREFIX}/go/bin/${f} ${STAGEDIR}${PREFIX}/bin/${f}
.endfor
regression-test: build

View File

@ -1,2 +1,2 @@
SHA256 (go1.1.2.src.tar.gz) = ffc7b3b46909add09cad8213d76dba34e92cc8f8e64a3ebe1a052cb22064eb70
SIZE (go1.1.2.src.tar.gz) = 9049357
SHA256 (go1.2.src.tar.gz) = 9ab83fb8eafe39f4204ef0f8e84e5ff7e8f1d533ddb05f51e6dc81503e8c0ae4
SIZE (go1.2.src.tar.gz) = 9519109

View File

@ -1,12 +0,0 @@
------------------------------------------------------------------
To build Go programs for FreeBSD, you'll want to set up your
environment properly. The following environment variables should
be set:
GOOS=%%GOOS%%
GOARCH=%%ARCH%%
GOROOT=%%PREFIX%%/go
For more information on programming in Go and for more
documentation, see http://www.golang.org.
------------------------------------------------------------------

File diff suppressed because it is too large Load Diff