mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 02:21:15 +02:00
added go122 go124
This commit is contained in:
115
lang/go122/Makefile
Normal file
115
lang/go122/Makefile
Normal file
@@ -0,0 +1,115 @@
|
||||
# Created by: Devon H. O'Dell <devon.odell@gmail.com>
|
||||
# $FreeBSD: head/lang/go/Makefile 470619 2018-05-22 14:32:09Z jlaffaye $
|
||||
|
||||
PORTNAME= go
|
||||
PORTVERSION= 1.22.8
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= https://golang.org/dl/
|
||||
MASTER_SITES+= https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap
|
||||
MASTER_SITES+= LOCAL/dmgk:bootstrap
|
||||
DISTFILES= go${PORTVERSION}.src.tar.gz
|
||||
DISTFILES+= go-${OPSYS:tl}-${GOARCH}${GOARM}-${BOOTSTRAP_TAG}.tar.xz:bootstrap
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
DISTINFO_FILE = ${MASTERDIR}/distinfo.${ARCH}
|
||||
|
||||
BOOTSTRAP_TAG= go1.20
|
||||
|
||||
|
||||
.if ${ARCH} == amd64
|
||||
GOARCH=amd64
|
||||
.elif ${ARCH} == i386
|
||||
GOARCH=386
|
||||
.elif ${ARCH} == armv6
|
||||
GOARCH=arm
|
||||
GOARM=6
|
||||
.elif ${ARCH} == armv7
|
||||
GOARCH=arm
|
||||
GOARM=7
|
||||
.elif ${ARCH} == aarch64
|
||||
GOARCH=arm64
|
||||
.else
|
||||
IGNORE= unknown arch ${ARCH}
|
||||
.endif
|
||||
|
||||
MAINTAINER= jlaffaye@FreeBSD.org
|
||||
COMMENT= Go programming language
|
||||
|
||||
RUN_DEPENDS= bash:lang/bash
|
||||
BUILD_DEPENDS= bash:lang/bash
|
||||
|
||||
USES= shebangfix
|
||||
SHEBANG_LANG= sh perl
|
||||
SHEBANG_FILES+= misc/wasm/go_js_wasm_exec
|
||||
SHEBANG_FILES+= src/net/http/cgi/testdata/test.cgi
|
||||
SHEBANG_GLOB= *.bash *.pl *.sh
|
||||
|
||||
sh_OLD_CMD= /bin/bash
|
||||
sh_CMD= "/usr/bin/env bash"
|
||||
|
||||
WRKSRC= ${WRKDIR}/go
|
||||
ONLY_FOR_ARCHS= i386 amd64 armv6 armv7 aarch64
|
||||
|
||||
USE_LOCALE= en_US.UTF-8
|
||||
EXTRACT_CMD= ${SETENV} LC_ALL=en_US.UTF-8 ${TAR}
|
||||
|
||||
post-patch:
|
||||
cd ${WRKSRC} && ${FIND} . -name '*.orig' -delete
|
||||
${REINPLACE_CMD} -e 's|type -ap |type |' ${WRKSRC}/src/make.bash
|
||||
${REINPLACE_CMD} -e 's|^if ulimit -T|false \&\& &|' ${WRKSRC}/src/run.bash
|
||||
|
||||
|
||||
PLIST= pkg-plist.${ARCH}
|
||||
|
||||
#GOROOT_BOOTSTRAP=${WRKDIR}/go-${OPSYS:tl}-${GOARCH}${GOARM}-bootstrap
|
||||
GOROOT_BOOTSTRAP=${LOCALBASE}/lib/go
|
||||
|
||||
do-build:
|
||||
# cd ${WRKSRC}/src ; ${SETENV} \
|
||||
# XDG_CACHE_HOME=${WRKDIR} \
|
||||
# GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP} \
|
||||
# GOROOT=${WRKSRC} \
|
||||
# GOROOT_FINAL=${PREFIX}/go \
|
||||
# GOBIN= \
|
||||
# GOOS=${OPSYS:tl} \
|
||||
# GOARCH=${GOARCH} \
|
||||
# GO386=${GO386} \
|
||||
# GOARM=${GOARM} \
|
||||
# CC=${CC} \
|
||||
# ${LOCALBASE}/bin/bash make.bash -v
|
||||
|
||||
cd ${WRKSRC}/src ; ${SETENV} \
|
||||
XDG_CACHE_HOME=${WRKDIR} \
|
||||
GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP} \
|
||||
GOROOT=${WRKSRC} \
|
||||
GOROOT_FINAL=${PREFIX}/go \
|
||||
GOBIN=${GOROOT_BOOTSTRAP}/bin/go \
|
||||
GOOS=${OPSYS:tl} \
|
||||
GOARCH=${GOARCH} \
|
||||
GO386=${GO386} \
|
||||
GOARM=${GOARM} \
|
||||
CC=${CC} \
|
||||
GOMEMLIMIT=256KiB GOGC=20 \
|
||||
${LOCALBASE}/bin/bash make.bash -v
|
||||
|
||||
|
||||
|
||||
${RM} -r ${WRKSRC}/pkg/obj \
|
||||
${WRKSRC}/pkg/bootstrap \
|
||||
${WRKSRC}/pkg/${OPSYS:tl}_${GOARCH}/cmd
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC} && \
|
||||
${RM} -r .gitattributes .gitignore .github favicon.ico robots.txt \
|
||||
pkg/obj pkg/bootstrap pkg/${OPSYS:tl}_${GOARCH_${ARCH}}/cmd
|
||||
|
||||
${CP} -a ${WRKSRC} ${STAGEDIR}${PREFIX}/lib
|
||||
.for f in go gofmt
|
||||
${LN} -sf ../lib/go/bin/${f} ${STAGEDIR}${PREFIX}/bin/${f}
|
||||
.endfor
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/go/bin/*
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/go/pkg/tool/*/*
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
#EOF
|
||||
5
lang/go122/distinfo.amd64
Normal file
5
lang/go122/distinfo.amd64
Normal file
@@ -0,0 +1,5 @@
|
||||
TIMESTAMP = 1728892977
|
||||
SHA256 (go1.22.8.src.tar.gz) = df12c23ebf19dea0f4bf46a22cbeda4a3eca6f474f318390ce774974278440b8
|
||||
SIZE (go1.22.8.src.tar.gz) = 27563052
|
||||
SHA256 (go-freebsd-amd64-go1.20.tar.xz) = 170f612c4b8a59400f27d642aab37afa831fe2d6df3e7473dec2d4574a59a46c
|
||||
SIZE (go-freebsd-amd64-go1.20.tar.xz) = 34684360
|
||||
4
lang/go122/pkg-descr
Normal file
4
lang/go122/pkg-descr
Normal file
@@ -0,0 +1,4 @@
|
||||
Go is an open source programming environment that makes it easy to build
|
||||
simple, reliable, and efficient software.
|
||||
|
||||
WWW: http://golang.org
|
||||
14311
lang/go122/pkg-plist.amd64
Normal file
14311
lang/go122/pkg-plist.amd64
Normal file
File diff suppressed because it is too large
Load Diff
115
lang/go124/Makefile
Normal file
115
lang/go124/Makefile
Normal file
@@ -0,0 +1,115 @@
|
||||
# Created by: Devon H. O'Dell <devon.odell@gmail.com>
|
||||
# $FreeBSD: head/lang/go/Makefile 470619 2018-05-22 14:32:09Z jlaffaye $
|
||||
|
||||
PORTNAME= go
|
||||
PORTVERSION= 1.24.4
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= https://golang.org/dl/
|
||||
MASTER_SITES+= https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap
|
||||
MASTER_SITES+= LOCAL/dmgk:bootstrap
|
||||
DISTFILES= go${PORTVERSION}.src.tar.gz
|
||||
DISTFILES+= go-${OPSYS:tl}-${GOARCH}${GOARM}-${BOOTSTRAP_TAG}.tar.xz:bootstrap
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
DISTINFO_FILE = ${MASTERDIR}/distinfo.${ARCH}
|
||||
|
||||
BOOTSTRAP_TAG= go1.20
|
||||
|
||||
|
||||
.if ${ARCH} == amd64
|
||||
GOARCH=amd64
|
||||
.elif ${ARCH} == i386
|
||||
GOARCH=386
|
||||
.elif ${ARCH} == armv6
|
||||
GOARCH=arm
|
||||
GOARM=6
|
||||
.elif ${ARCH} == armv7
|
||||
GOARCH=arm
|
||||
GOARM=7
|
||||
.elif ${ARCH} == aarch64
|
||||
GOARCH=arm64
|
||||
.else
|
||||
IGNORE= unknown arch ${ARCH}
|
||||
.endif
|
||||
|
||||
MAINTAINER= jlaffaye@FreeBSD.org
|
||||
COMMENT= Go programming language
|
||||
|
||||
RUN_DEPENDS= bash:lang/bash
|
||||
BUILD_DEPENDS= bash:lang/bash
|
||||
|
||||
USES= shebangfix
|
||||
SHEBANG_LANG= sh perl
|
||||
SHEBANG_FILES+= misc/wasm/go_js_wasm_exec
|
||||
SHEBANG_FILES+= src/net/http/cgi/testdata/test.cgi
|
||||
SHEBANG_GLOB= *.bash *.pl *.sh
|
||||
|
||||
sh_OLD_CMD= /bin/bash
|
||||
sh_CMD= "/usr/bin/env bash"
|
||||
|
||||
WRKSRC= ${WRKDIR}/go
|
||||
ONLY_FOR_ARCHS= i386 amd64 armv6 armv7 aarch64
|
||||
|
||||
USE_LOCALE= en_US.UTF-8
|
||||
EXTRACT_CMD= ${SETENV} LC_ALL=en_US.UTF-8 ${TAR}
|
||||
|
||||
post-patch:
|
||||
cd ${WRKSRC} && ${FIND} . -name '*.orig' -delete
|
||||
${REINPLACE_CMD} -e 's|type -ap |type |' ${WRKSRC}/src/make.bash
|
||||
${REINPLACE_CMD} -e 's|^if ulimit -T|false \&\& &|' ${WRKSRC}/src/run.bash
|
||||
|
||||
|
||||
PLIST= pkg-plist.${ARCH}
|
||||
|
||||
#GOROOT_BOOTSTRAP=${WRKDIR}/go-${OPSYS:tl}-${GOARCH}${GOARM}-bootstrap
|
||||
GOROOT_BOOTSTRAP=${LOCALBASE}/lib/go
|
||||
|
||||
do-build:
|
||||
# cd ${WRKSRC}/src ; ${SETENV} \
|
||||
# XDG_CACHE_HOME=${WRKDIR} \
|
||||
# GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP} \
|
||||
# GOROOT=${WRKSRC} \
|
||||
# GOROOT_FINAL=${PREFIX}/go \
|
||||
# GOBIN= \
|
||||
# GOOS=${OPSYS:tl} \
|
||||
# GOARCH=${GOARCH} \
|
||||
# GO386=${GO386} \
|
||||
# GOARM=${GOARM} \
|
||||
# CC=${CC} \
|
||||
# ${LOCALBASE}/bin/bash make.bash -v
|
||||
|
||||
cd ${WRKSRC}/src ; ${SETENV} \
|
||||
XDG_CACHE_HOME=${WRKDIR} \
|
||||
GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP} \
|
||||
GOROOT=${WRKSRC} \
|
||||
GOROOT_FINAL=${PREFIX}/go \
|
||||
GOBIN=${GOROOT_BOOTSTRAP}/bin/go \
|
||||
GOOS=${OPSYS:tl} \
|
||||
GOARCH=${GOARCH} \
|
||||
GO386=${GO386} \
|
||||
GOARM=${GOARM} \
|
||||
CC=${CC} \
|
||||
GOMEMLIMIT=256KiB GOGC=20 \
|
||||
${LOCALBASE}/bin/bash make.bash -v
|
||||
|
||||
|
||||
|
||||
${RM} -r ${WRKSRC}/pkg/obj \
|
||||
${WRKSRC}/pkg/bootstrap \
|
||||
${WRKSRC}/pkg/${OPSYS:tl}_${GOARCH}/cmd
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC} && \
|
||||
${RM} -r .gitattributes .gitignore .github favicon.ico robots.txt \
|
||||
pkg/obj pkg/bootstrap pkg/${OPSYS:tl}_${GOARCH_${ARCH}}/cmd
|
||||
|
||||
${CP} -a ${WRKSRC} ${STAGEDIR}${PREFIX}/lib
|
||||
.for f in go gofmt
|
||||
${LN} -sf ../lib/go/bin/${f} ${STAGEDIR}${PREFIX}/bin/${f}
|
||||
.endfor
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/go/bin/*
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/go/pkg/tool/*/*
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
#EOF
|
||||
5
lang/go124/distinfo.amd64
Normal file
5
lang/go124/distinfo.amd64
Normal file
@@ -0,0 +1,5 @@
|
||||
TIMESTAMP = 1751294654
|
||||
SHA256 (go1.24.4.src.tar.gz) = 5a86a83a31f9fa81490b8c5420ac384fd3d95a3e71fba665c7b3f95d1dfef2b4
|
||||
SIZE (go1.24.4.src.tar.gz) = 30788576
|
||||
SHA256 (go-freebsd-amd64-go1.20.tar.xz) = 170f612c4b8a59400f27d642aab37afa831fe2d6df3e7473dec2d4574a59a46c
|
||||
SIZE (go-freebsd-amd64-go1.20.tar.xz) = 34684360
|
||||
4
lang/go124/pkg-descr
Normal file
4
lang/go124/pkg-descr
Normal file
@@ -0,0 +1,4 @@
|
||||
Go is an open source programming environment that makes it easy to build
|
||||
simple, reliable, and efficient software.
|
||||
|
||||
WWW: http://golang.org
|
||||
15732
lang/go124/pkg-plist.amd64
Normal file
15732
lang/go124/pkg-plist.amd64
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user