1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

New port: lang/go-devel

A development snapshot of lang/go.  This port is intended to be
used by port maintainers for testing with future Go versions.

PR:		238374
Submitted by:	dg@syrec.org
This commit is contained in:
Tobias Kortkamp 2019-06-23 11:38:44 +00:00
parent 58836f0b9a
commit 9a3c0ab0ca
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=504941
6 changed files with 103 additions and 1 deletions

View File

@ -128,6 +128,7 @@
SUBDIR += gnu-cobol
SUBDIR += gnustep-base
SUBDIR += go
SUBDIR += go-devel
SUBDIR += go14
SUBDIR += gomacro
SUBDIR += gprolog

90
lang/go-devel/Makefile Normal file
View File

@ -0,0 +1,90 @@
# Created by: Devon H. O'Dell <devon.odell@gmail.com>
# $FreeBSD$
PORTNAME= go
PORTVERSION= g20190604
CATEGORIES= lang
PKGNAMESUFFIX= -devel
MAINTAINER= dg@syrec.org
COMMENT= Go programming language (development version)
LICENSE= BSD3CLAUSE
ONLY_FOR_ARCHS= amd64 armv6 armv7 i386
BUILD_DEPENDS= go14>=1.4:lang/go14
USES= shebangfix
USE_GITHUB= yes
GH_ACCOUNT= golang
GH_TAGNAME= ac8dbe7747
SHEBANG_FILES= misc/benchcmp \
misc/nacl/go_nacl_*_exec \
misc/wasm/go_js_wasm_exec \
src/net/http/cgi/testdata/test.cgi
SHEBANG_GLOB= *.bash *.pl *.sh
SHEBANG_LANG= sh
sh_OLD_CMD= /bin/bash "/usr/bin/env bash"
sh_CMD= ${SH}
CONFLICTS_INSTALL= go
OPTIONS_DEFINE_i386= GO387
GO387_DESC= Do not generate code with SSE2 (for old x86 CPU)
.include <bsd.port.pre.mk>
.if ${ARCH} == i386
GOARCH=386
.elif ${ARCH} == "amd64"
GOARCH=amd64
.elif ${ARCH} == armv6 || ${ARCH} == armv7
GOARCH=arm
.else
IGNORE= unknown arch ${ARCH}
.endif
.if ${PORT_OPTIONS:MGO387}
GO386=387
.endif
BINARIES= go gofmt
post-patch:
@cd ${WRKSRC} && ${FIND} . -name '*.orig' -delete
@${REINPLACE_CMD} -e 's|^if ulimit -T|false \&\& &|' ${WRKSRC}/src/run.bash
@${ECHO_CMD} "devel-${GH_TAGNAME}" > ${WRKSRC}/VERSION
do-build:
cd ${WRKSRC}/src && \
GOROOT=${WRKSRC} GOROOT_FINAL=${PREFIX}/go \
GOROOT_BOOTSTRAP=${LOCALBASE}/go14 \
GOBIN= GOARCH=${GOARCH} GOOS=${OPSYS:tl} \
GO386=${GO386} \
${SH} make.bash -v
${RM} -r ${WRKSRC}/pkg/obj \
${WRKSRC}/pkg/bootstrap \
${WRKSRC}/pkg/${OPSYS:tl}_${GOARCH}/cmd
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/go
@${CP} -a ${WRKSRC}/* ${STAGEDIR}${PREFIX}/go
.for f in ${BINARIES}
@${LN} -sf ../go/bin/${f} ${STAGEDIR}${PREFIX}/bin/${f}
.endfor
post-install:
.for f in ${BINARIES}
@${ECHO_CMD} bin/${f} >> ${TMPPLIST}
.endfor
@cd ${STAGEDIR}${PREFIX} && \
${FIND} go -type f >> ${TMPPLIST}
do-test:
cd ${WRKSRC}/src && \
GOROOT=${WRKSRC} PATH=${WRKSRC}/bin:${PATH} \
${SH} run.bash -no-rebuild -banner ""
.include <bsd.port.post.mk>

3
lang/go-devel/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1559846326
SHA256 (golang-go-g20190604-ac8dbe7747_GH0.tar.gz) = 09815f8dd4663bfebadbad943ba61a4b3d4a2bc069ded646b70224d7d16a752a
SIZE (golang-go-g20190604-ac8dbe7747_GH0.tar.gz) = 21497169

6
lang/go-devel/pkg-descr Normal file
View File

@ -0,0 +1,6 @@
Go is an open source programming environment that makes it easy to build
simple, reliable, and efficient software.
This ports tracks Go development (master) branch.
WWW: https://golang.org

View File

@ -35,6 +35,8 @@ sh_CMD= ${SH}
WRKSRC= ${WRKDIR}/go
ONLY_FOR_ARCHS= i386 amd64 armv6 armv7
CONFLICTS_INSTALL= go-devel
OPTIONS_DEFINE_i386= GO387
GO387_DESC= Do not generate code with SSE2 (for old x86 CPU)

View File

@ -1,4 +1,4 @@
Go is an open source programming environment that makes it easy to build
simple, reliable, and efficient software.
WWW: http://golang.org
WWW: https://golang.org