View | Details | Raw Unified | Return to bug 179529
Collapse All | Expand All

(-)./Makefile (-14 / +20 lines)
Lines 1-8 Link Here
1
# Created by: Devon H. O'Dell <devon.odell@gmail.com>
1
# Created by: Devon H. O'Dell <devon.odell@gmail.com>
2
# $FreeBSD: lang/go/Makefile 319677 2013-06-02 15:40:29Z jlaffaye $
2
# $FreeBSD: head/lang/go/Makefile 319677 2013-06-02 15:40:29Z jlaffaye $
3
3
4
PORTNAME=	go
4
PORTNAME=	go
5
PORTVERSION=	1.1
5
PORTVERSION=	1.1.1
6
PORTEPOCH=	1
6
PORTEPOCH=	1
7
CATEGORIES=	lang
7
CATEGORIES=	lang
8
MASTER_SITES=	GOOGLE_CODE
8
MASTER_SITES=	GOOGLE_CODE
Lines 13-20 Link Here
13
13
14
LICENSE=	BSD
14
LICENSE=	BSD
15
15
16
BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash	\
16
USES=		shebangfix
17
		bison:${PORTSDIR}/devel/bison
17
SHEBANG_LANG=	sh
18
SHEBANG_FILES=	${WRKSRC}/src/*.bash \
19
		${WRKSRC}/doc/progs/run \
20
		${WRKSRC}/doc/articles/wiki/*.bash \
21
		${WRKSRC}/test/bench/shootout/timing.sh
22
23
sh_OLD_CMD=	${SETENV} bash
24
sh_CMD=		${SH}
18
25
19
WRKSRC=		${WRKDIR}/go
26
WRKSRC=		${WRKDIR}/go
20
ONLY_FOR_ARCHS=	i386 amd64
27
ONLY_FOR_ARCHS=	i386 amd64
Lines 35-52 Link Here
35
PLIST_SUB+=	ENAM=""
42
PLIST_SUB+=	ENAM=""
36
.endif
43
.endif
37
44
38
PLIST_SUB+=	ARCH=${GOARCH}		\
45
PLIST_SUB+=	ARCH=${GOARCH} \
39
		GOOBJ=${GOOBJ}
46
		GOOBJ=${GOOBJ}
40
47
48
post-patch:
49
	@cd ${WRKSRC} && ${FIND} . -name '*.orig' -delete
50
41
do-build:
51
do-build:
42
	(cd ${WRKSRC}/src &&			\
52
	cd ${WRKSRC}/src && \
43
		GOTRACEBACK=2			\
53
		GOTRACEBACK=2 GOROOT=${WRKSRC} GOROOT_FINAL=${PREFIX}/go \
44
		GOROOT=${WRKSRC}		\
54
		GOBIN= GOARCH=${GOARCH} GOOS=${OPSYS:L} \
45
		GOROOT_FINAL=${PREFIX}/go	\
55
		${SH} make.bash
46
		GOBIN=				\
47
		GOARCH=${GOARCH}		\
48
		GOOS=${OPSYS:L}			\
49
		bash make.bash)
50
56
51
post-install:
57
post-install:
52
	@${CAT} ${PKGMESSAGE}
58
	@${CAT} ${PKGMESSAGE}
Lines 58-63 Link Here
58
.endfor
64
.endfor
59
65
60
regression-test: build
66
regression-test: build
61
	(cd ${WRKSRC}/src && GOROOT=${WRKSRC} ./run.bash --no-rebuild --banner)
67
	cd ${WRKSRC}/src && GOROOT=${WRKSRC} PATH=${WRKSRC}/bin:${PATH} ${SH} run.bash --no-rebuild --banner
62
68
63
.include <bsd.port.post.mk>
69
.include <bsd.port.post.mk>
(-)./distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (go1.1.src.tar.gz) = bf1d057d8386e840f9cd3f787252e26d8ee196852e9232a6f9ce762337b19cb6
1
SHA256 (go1.1.1.src.tar.gz) = 257f74b8d812bbdec695e842de587a1495e7728b4e63d280586a14786adbb5af
2
SIZE (go1.1.src.tar.gz) = 9041413
2
SIZE (go1.1.1.src.tar.gz) = 9045336
(-)./files/patch-doc__progs__run (+11 lines)
Line 0 Link Here
1
--- ./doc/progs/run.orig	2013-06-09 23:20:14.695515753 +1000
2
+++ ./doc/progs/run	2013-06-09 23:20:14.695515753 +1000
3
@@ -87,7 +87,7 @@
4
 # Write to temporary file to avoid mingw bash bug.
5
 TMPFILE="${TMPDIR:-/tmp}/gotest3.$USER"
6
 
7
-function testit {
8
+testit () {
9
 	./$1 >"$TMPFILE" 2>&1 || true
10
 	x=$(echo $(cat "$TMPFILE")) # extra echo canonicalizes
11
 	if ! echo "$x" | grep "$2" > /dev/null
(-)./files/patch-test__bench__shootout__timing.sh (+11 lines)
Line 0 Link Here
1
--- ./test/bench/shootout/timing.sh.orig	2013-06-09 23:33:01.405924747 +1000
2
+++ ./test/bench/shootout/timing.sh	2013-06-09 23:33:16.526347653 +1000
3
@@ -81,7 +81,7 @@
4
 	$1
5
 	shift
6
 	
7
-	echo $((time -p $* >/dev/null) 2>&1) | awk '{print $4 "u " $6 "s " $2 "r"}'
8
+	echo $( (time -p $* >/dev/null) 2>&1) | awk '{print $4 "u " $6 "s " $2 "r"}'
9
 }
10
 
11
 fasta() {
(-)./pkg-plist (+13 lines)
Lines 3678-3683 Link Here
3678
go/test/fixedbugs/issue5125.go
3678
go/test/fixedbugs/issue5125.go
3679
go/test/fixedbugs/issue5162.go
3679
go/test/fixedbugs/issue5162.go
3680
go/test/fixedbugs/issue5231.go
3680
go/test/fixedbugs/issue5231.go
3681
go/test/fixedbugs/issue5244.go
3681
go/test/fixedbugs/issue5259.dir/bug.go
3682
go/test/fixedbugs/issue5259.dir/bug.go
3682
go/test/fixedbugs/issue5259.dir/main.go
3683
go/test/fixedbugs/issue5259.dir/main.go
3683
go/test/fixedbugs/issue5259.go
3684
go/test/fixedbugs/issue5259.go
Lines 3687-3692 Link Here
3687
go/test/fixedbugs/issue5291.dir/pkg1.go
3688
go/test/fixedbugs/issue5291.dir/pkg1.go
3688
go/test/fixedbugs/issue5291.dir/prog.go
3689
go/test/fixedbugs/issue5291.dir/prog.go
3689
go/test/fixedbugs/issue5291.go
3690
go/test/fixedbugs/issue5291.go
3691
go/test/fixedbugs/issue5470.dir/a.go
3692
go/test/fixedbugs/issue5470.dir/b.go
3693
go/test/fixedbugs/issue5470.go
3694
go/test/fixedbugs/issue5493.go
3695
go/test/fixedbugs/issue5515.go
3696
go/test/fixedbugs/issue5607.go
3697
go/test/fixedbugs/issue5614.dir/rethinkgo.go
3698
go/test/fixedbugs/issue5614.dir/y.go
3699
go/test/fixedbugs/issue5614.dir/x.go
3700
go/test/fixedbugs/issue5614.go
3690
go/test/fixedbugs/issue887.go
3701
go/test/fixedbugs/issue887.go
3691
go/test/float_lit.go
3702
go/test/float_lit.go
3692
go/test/floatcmp.go
3703
go/test/floatcmp.go
Lines 3912-3917 Link Here
3912
@dirrm go/test/interface
3923
@dirrm go/test/interface
3913
@dirrm go/test/import4.dir
3924
@dirrm go/test/import4.dir
3914
@dirrm go/test/import2.dir
3925
@dirrm go/test/import2.dir
3926
@dirrm go/test/fixedbugs/issue5614.dir
3927
@dirrm go/test/fixedbugs/issue5470.dir
3915
@dirrm go/test/fixedbugs/issue5291.dir
3928
@dirrm go/test/fixedbugs/issue5291.dir
3916
@dirrm go/test/fixedbugs/issue5260.dir
3929
@dirrm go/test/fixedbugs/issue5260.dir
3917
@dirrm go/test/fixedbugs/issue5259.dir
3930
@dirrm go/test/fixedbugs/issue5259.dir

Return to bug 179529