aboutsummaryrefslogtreecommitdiffstats
path: root/lang/go/Makefile
diff options
context:
space:
mode:
authorjlaffaye <jlaffaye@FreeBSD.org>2011-12-01 04:35:18 +0800
committerjlaffaye <jlaffaye@FreeBSD.org>2011-12-01 04:35:18 +0800
commit3005a3945b368734866b840ef0512f43f077c94f (patch)
tree4beb6fd0c9b4f298fb129e4ce987d99b5e350b92 /lang/go/Makefile
parent69e1ecf33c239588e1084b3369bd53b027bd6499 (diff)
downloadfreebsd-ports-gnome-3005a3945b368734866b840ef0512f43f077c94f.tar.gz
freebsd-ports-gnome-3005a3945b368734866b840ef0512f43f077c94f.tar.zst
freebsd-ports-gnome-3005a3945b368734866b840ef0512f43f077c94f.zip
- Install sources to fix goinstall and godoc [1] [2]
- Unset GOBIN while installing [3] PR: ports/154179 [1], ports/162910 [2], ports/162954 [3] Feature safe: yes
Diffstat (limited to 'lang/go/Makefile')
-rw-r--r--lang/go/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/lang/go/Makefile b/lang/go/Makefile
index 3e37cd46823b..1c9b305446b9 100644
--- a/lang/go/Makefile
+++ b/lang/go/Makefile
@@ -7,6 +7,7 @@
PORTNAME= go
PORTVERSION= 20111017
+PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= LOCAL/jlaffaye
@@ -41,6 +42,7 @@ PLIST_SUB+= ARCH=${GOARCH} \
do-build:
(cd ${WRKSRC}/src && \
GOROOT=${WRKSRC} \
+ GOBIN= \
GOARCH=${GOARCH} \
GOOS=freebsd \
bash make.bash)
@@ -58,6 +60,8 @@ do-install:
(cd ${WRKSRC}/pkg/ && ${COPYTREE_SHARE} \* ${PREFIX}/go/pkg)
${INSTALL} -d ${PREFIX}/go/src/
${INSTALL} -m 0644 ${WRKSRC}/src/Make.* ${PREFIX}/go/src/
+ ${INSTALL} -d ${PREFIX}/go/src/pkg/
+ (cd ${WRKSRC}/src/pkg/ && ${COPYTREE_SHARE} \* ${PREFIX}/go/src/pkg)
${INSTALL} -d ${PREFIX}/go/lib/
(cd ${WRKSRC}/lib/ && ${COPYTREE_SHARE} \* ${PREFIX}/go/lib)