head	1.17;
access;
symbols
	RELEASE_8_3_0:1.11
	RELEASE_9_0_0:1.11
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.4
	RELEASE_8_1_0:1.2
	RELEASE_7_3_0:1.1;
locks; strict;
comment	@# @;


1.17
date	2013.02.13.20.15.14;	author svnexp;	state Exp;
branches;
next	1.16;

1.16
date	2013.01.24.19.44.11;	author svnexp;	state Exp;
branches;
next	1.15;

1.15
date	2012.11.17.05.58.51;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2012.09.25.19.11.57;	author jlaffaye;	state Exp;
branches;
next	1.13;

1.13
date	2012.06.19.18.41.01;	author jlaffaye;	state Exp;
branches;
next	1.12;

1.12
date	2012.05.14.22.00.36;	author jlaffaye;	state Exp;
branches;
next	1.11;

1.11
date	2011.11.30.20.35.18;	author jlaffaye;	state Exp;
branches;
next	1.10;

1.10
date	2011.11.26.22.56.45;	author jlaffaye;	state Exp;
branches;
next	1.9;

1.9
date	2011.10.07.09.16.38;	author jlaffaye;	state Exp;
branches;
next	1.8;

1.8
date	2011.09.22.16.42.55;	author jlaffaye;	state Exp;
branches;
next	1.7;

1.7
date	2011.09.02.23.30.47;	author jlaffaye;	state Exp;
branches;
next	1.6;

1.6
date	2011.05.26.20.49.30;	author skreuzer;	state Exp;
branches;
next	1.5;

1.5
date	2011.01.15.00.23.22;	author swills;	state Exp;
branches;
next	1.4;

1.4
date	2010.11.24.14.45.50;	author wxs;	state Exp;
branches;
next	1.3;

1.3
date	2010.10.31.19.09.51;	author wxs;	state Exp;
branches;
next	1.2;

1.2
date	2010.04.25.15.37.42;	author wxs;	state Exp;
branches;
next	1.1;

1.1
date	2010.01.23.17.44.55;	author wxs;	state Exp;
branches;
next	;


desc
@@


1.17
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312170
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Devon H. O'Dell <devon.odell@@gmail.com>
# $FreeBSD: head/lang/go/Makefile 312170 2013-02-13 19:26:48Z jlaffaye $

PORTNAME=	go
PORTVERSION=	1.0.3
PORTREVISION=	1
PORTEPOCH=	1
CATEGORIES=	lang
MASTER_SITES=	GOOGLE_CODE
DISTNAME=	go${PORTVERSION}.src

MAINTAINER=	jlaffaye@@FreeBSD.org
COMMENT=	A concurrent, garbage-collected language

LICENSE=	BSD

BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash	\
		bison:${PORTSDIR}/devel/bison

WRKSRC=		${WRKDIR}/go
ONLY_FOR_ARCHS=	i386 amd64
SUB_FILES=	pkg-message
SUB_LIST+=	GOOBJ=${GOOBJ} \
		ARCH=${GOARCH}

.include <bsd.port.pre.mk>

.if ${ARCH} == "i386"
GOARCH=386
GOOBJ=8
PLIST_SUB+=	ENAM="@@comment "
.else
GOARCH=amd64
GOOBJ=6
PLIST_SUB+=	ENAM=""
.endif

PLIST_SUB+=	ARCH=${GOARCH}		\
		GOOBJ=${GOOBJ}

do-build:
	(cd ${WRKSRC}/src &&			\
		GOTRACEBACK=2			\
		GOROOT=${WRKSRC}		\
		GOROOT_FINAL=${PREFIX}/go	\
		GOBIN=				\
		GOARCH=${GOARCH}		\
		GOOS=freebsd			\
		bash make.bash)

post-install:
	@@${CAT} ${PKGMESSAGE}

do-install:
	@@${CP} -a ${WRKSRC} ${PREFIX}
.for f in go godoc gofmt
	@@${LN} -s ${PREFIX}/go/bin/${f} ${PREFIX}/bin/${f}
.endfor

.include <bsd.port.post.mk>
@


1.16
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310941
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/go/Makefile 310941 2013-01-24 19:11:46Z jlaffaye $
d6 1
d31 1
d35 1
@


1.15
log
@Switch exporter over
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/go/Makefile 304855 2012-09-25 19:11:57Z jlaffaye $
d20 1
a20 1
ONLY_FOR_ARCHS=	amd64
@


1.14
log
@SVN rev 304855 on 2012-09-25 19:11:57Z by jlaffaye

- Update to 1.0.3
- Switch to new Makefile header style
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.13
log
@- Update to 1.0.2
@
text
@d1 1
a1 4
# Ports collection makefile for:  go
# Date created:			  04 December 2010
# Whom:				  Devon H. O'Dell <devon.odell@@gmail.com>
#
a2 1
#
d5 1
a5 1
PORTVERSION=	1.0.2
@


1.12
log
@- Update to 1.0.1
- Only for amd64 until i386 is fixed
@
text
@d9 1
a9 1
PORTVERSION=	1.0.1
@


1.11
log
@- 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
@
text
@d9 2
a10 2
PORTVERSION=	20111017
PORTREVISION=	1
d12 2
a13 1
MASTER_SITES=	LOCAL/jlaffaye
d16 1
a16 1
COMMENT=	An experimental, concurrent, garbage-collected language
d23 2
a24 3
ONLY_FOR_ARCHS=	i386 amd64
USE_XZ=		yes
USE_GMAKE=	yes
d43 7
a49 5
	(cd ${WRKSRC}/src &&		\
		GOROOT=${WRKSRC}	\
		GOBIN=			\
		GOARCH=${GOARCH}	\
		GOOS=freebsd		\
d56 4
a59 13
.if !defined(NOPORTDOCS)
	${INSTALL} -d -m 0755 ${DOCSDIR}
	${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
.endif
	${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${PREFIX}/bin/
	${INSTALL} -d ${PREFIX}/go/pkg
	(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)
@


1.10
log
@- Update go to 20111017 (r60.3)
- Install the lib folder to fix goinstall [1]

Reported by:	Andy Kosela <akosela@@andykosela.com> [1]
PR:		ports/162621
Feature safe:	yes
@
text
@d10 1
d45 1
d63 2
@


1.9
log
@Update to 20111005
@
text
@d9 1
a9 1
PORTVERSION=	20111005
d56 4
a59 4
	${CP} ${WRKSRC}/bin/* ${PREFIX}/bin/
	${INSTALL} -d -m 0755 ${PREFIX}/go/pkg
	${CP} -R ${WRKSRC}/pkg/* ${PREFIX}/go/pkg/
	${INSTALL} -d -m 0755 ${PREFIX}/go/src/
d61 2
@


1.8
log
@- Update to 20110920
- Cleanup
- Install into PREFIX/go
@
text
@d9 1
a9 1
PORTVERSION=	20110920
@


1.7
log
@Take maintainership

Approved by:	maintainer (private mail)
@
text
@d9 1
a9 1
PORTVERSION=	20110515
d11 1
a11 2
MASTER_SITES=	http://www.exit2shell.com/~skreuzer/distfiles/
DISTNAME=	go-${PORTVERSION}
d16 2
d22 1
a23 1
GOMAKEDIR=	lib/go/src
a37 5
GOBIN=		${WRKDIR}/bin
MAKE_ENV=	GOROOT=${WRKSRC}	\
		GOARCH=${GOARCH}	\
		GOBIN=${GOBIN}		\
		GOOS=freebsd
d39 1
a39 5
		GOOBJ=${GOOBJ} \
		GOMAKEDIR=${GOMAKEDIR}

pre-build:
	@@${MKDIR} ${GOBIN}
a40 1
.if !defined(MAINTAINER_MODE)
a44 1
		GOBIN=${GOBIN}		\
a46 8
.else
	(cd ${WRKSRC}/src &&		\
		GOROOT=${WRKSRC}	\
		GOARCH=${GOARCH}	\
		GOBIN=${GOBIN}		\
		GOOS=freebsd		\
		bash all.bash)
.endif
d56 5
a60 10
	${INSTALL} -d -m 0755 ${PREFIX}/${GOMAKEDIR}
	${INSTALL} -d -m 0755 ${PREFIX}/lib/go/pkg
	${INSTALL} -m 0644 ${WRKSRC}/src/Make.common ${PREFIX}/${GOMAKEDIR}
	${INSTALL} -m 0644 ${WRKSRC}/src/Make.pkg ${PREFIX}/${GOMAKEDIR}
	${INSTALL} -m 0644 ${WRKSRC}/src/Make.cmd ${PREFIX}/${GOMAKEDIR}
	${INSTALL} -m 0644 ${WRKSRC}/src/Make.ccmd ${PREFIX}/${GOMAKEDIR}
	${INSTALL} -m 0644 ${WRKSRC}/src/Make.clib ${PREFIX}/${GOMAKEDIR}
	${INSTALL} -m 0644 ${WRKSRC}/src/Make.inc ${PREFIX}/${GOMAKEDIR}
	${CP} -R ${WRKSRC}/pkg/* ${PREFIX}/lib/go/pkg/
	${CP} -R ${WRKDIR}/bin/* ${PREFIX}/bin/
@


1.6
log
@Update to 20110515

PR:		ports/157348
Approved by:	Devon H. O'Dell (maintainer)
@
text
@d14 1
a14 1
MAINTAINER=	devon.odell@@gmail.com
@


1.5
log
@- Update to 20101225 snapshot

PR:		ports/153464
Submitted by:	wen
Approved by:	wxs@@ and pgolluci@@ (mentor implicit)
Feature safe:	yes
@
text
@d9 1
a9 2
PORTVERSION=	20101225
PORTREVISION=	0
d11 1
a11 1
MASTER_SITES=	LOCAL/wen
@


1.4
log
@Use pkg-message.in.
Install Make.* into ${GOROOT}/src so go packages can be used.

Submitted by:	wen@@
@
text
@d9 2
a10 2
PORTVERSION=	20101027
PORTREVISION=	1
@


1.3
log
@Update to 20101027.

Submitted by:	wen@@
Approved by:	devon.odell@@gmail.com (maintainer)
@
text
@d10 1
d23 4
d44 2
a45 1
		GOOBJ=${GOOBJ}
d68 1
a68 4
	@@${CAT} ${PKGMESSAGE} | ${SED}		\
		-e "s|%%PREFIX%%|${PREFIX}|g"	\
		-e "s|%%ARCH%%|${GOARCH}|g"	\
		-e "s|%%GOOBJ%%|${GOOBJ}|g"
d75 1
a75 1
	${INSTALL} -d -m 0755 ${DATADIR}
d77 6
a82 6
	${INSTALL} -m 0644 ${WRKSRC}/src/Make.common ${DATADIR}
	${INSTALL} -m 0644 ${WRKSRC}/src/Make.pkg ${DATADIR}
	${INSTALL} -m 0644 ${WRKSRC}/src/Make.cmd ${DATADIR}
	${INSTALL} -m 0644 ${WRKSRC}/src/Make.ccmd ${DATADIR}
	${INSTALL} -m 0644 ${WRKSRC}/src/Make.clib ${DATADIR}
	${INSTALL} -m 0644 ${WRKSRC}/src/Make.inc ${DATADIR}
@


1.2
log
@Update to 20100413

Submitted by:	devon.odell@@gmail.com (maintainer, private mail)
@
text
@d9 1
a9 1
PORTVERSION=	20100413
d11 1
a11 3
MASTER_SITES=	${MASTER_SITE_LOCAL} \
		http://www.atarininja.org/~wxs/distfiles/
MASTER_SITE_SUBDIR=	wxs
a20 1
USE_BZIP2=	yes
d74 1
a74 1
	${INSTALL} -m 0644 ${WRKSRC}/src/Make.${GOARCH} ${DATADIR}
d77 3
@


1.1
log
@An experimental, concurrent, garbage collected language.

Submitted by:	devon.odell@@gmail.com (private mail)
@
text
@d9 1
a9 1
PORTVERSION=	20100113
a24 4
MAKEFILE=	${WRKSRC}/src/Makefile
.if !defined(MAINTAINER_MODE)
ALL_TARGET=	build
.endif
d47 17
d76 1
a76 1
	${INSTALL} -d -m 0755 ${PREFIX}/lib/go
d80 2
a81 2
	${CP} -R ${WRKSRC}/pkg/ ${PREFIX}/lib/go
	${CP} -R ${WRKDIR}/bin/ ${PREFIX}/bin
@

