summaryrefslogtreecommitdiff
path: root/dev-lang/go-bootstrap/go-bootstrap-1.22.12.ebuild
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2025-02-20 12:05:07 -0600
committerWilliam Hubbs <williamh@gentoo.org>2025-02-20 12:05:07 -0600
commit28b812da1e4ef8bd36718d0ed80c97b9dff177ee (patch)
tree48da8907398df88406bdcb487e219bd2ec741b8b /dev-lang/go-bootstrap/go-bootstrap-1.22.12.ebuild
parent037dca29a9ebfd9217abc98d798cd15280537251 (diff)
downloadgentoo-28b812da1e4ef8bd36718d0ed80c97b9dff177ee.tar.gz
gentoo-28b812da1e4ef8bd36718d0ed80c97b9dff177ee.tar.bz2
gentoo-28b812da1e4ef8bd36718d0ed80c97b9dff177ee.zip
dev-lang/go-bootstrap: add 1.22.12
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-lang/go-bootstrap/go-bootstrap-1.22.12.ebuild')
-rw-r--r--dev-lang/go-bootstrap/go-bootstrap-1.22.12.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-lang/go-bootstrap/go-bootstrap-1.22.12.ebuild b/dev-lang/go-bootstrap/go-bootstrap-1.22.12.ebuild
new file mode 100644
index 000000000000..e590f0e854ac
--- /dev/null
+++ b/dev-lang/go-bootstrap/go-bootstrap-1.22.12.ebuild
@@ -0,0 +1,51 @@
+# Copyright 2020-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Bootstrap package for dev-lang/go"
+HOMEPAGE="https://golang.org"
+BOOTSTRAP_DIST="https://dev.gentoo.org/~williamh/dist"
+SRC_URI="
+ x64-macos? ( ${BOOTSTRAP_DIST}/${P}-darwin-amd64.tbz )
+ arm64-macos? ( ${BOOTSTRAP_DIST}/${P}-darwin-arm64.tbz )
+ x86? ( ${BOOTSTRAP_DIST}/${P}-linux-386.tbz )
+ amd64? ( ${BOOTSTRAP_DIST}/${P}-linux-amd64.tbz )
+ arm64? ( ${BOOTSTRAP_DIST}/${P}-linux-arm64.tbz )
+ arm? ( ${BOOTSTRAP_DIST}/${P}-linux-arm.tbz )
+ loong? ( ${BOOTSTRAP_DIST}/${P}-linux-loong64.tbz )
+ mips? (
+ abi_mips_n64? (
+ !big-endian? ( ${BOOTSTRAP_DIST}/${P}-linux-mips64le.tbz )
+ big-endian? ( ${BOOTSTRAP_DIST}/${P}-linux-mips64.tbz )
+ )
+ abi_mips_o32? (
+ !big-endian? ( ${BOOTSTRAP_DIST}/${P}-linux-mipsle.tbz )
+ big-endian? ( ${BOOTSTRAP_DIST}/${P}-linux-mips.tbz )
+ )
+ )
+ ppc64? (
+ !big-endian? ( ${BOOTSTRAP_DIST}/${P}-linux-ppc64le.tbz )
+ big-endian? ( ${BOOTSTRAP_DIST}/${P}-linux-ppc64.tbz )
+ )
+ riscv? ( ${BOOTSTRAP_DIST}/${P}-linux-riscv64.tbz )
+ s390? ( ${BOOTSTRAP_DIST}/${P}-linux-s390x.tbz )
+ x64-solaris? ( ${BOOTSTRAP_DIST}/${P}-solaris-amd64.tbz )
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~s390 ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos ~x64-solaris"
+IUSE="abi_mips_n64 abi_mips_o32 big-endian"
+RESTRICT="strip"
+QA_PREBUILT="*"
+
+S="${WORKDIR}"
+
+src_install() {
+ dodir /usr/lib
+ mv go-*-bootstrap "${ED}/usr/lib/go-bootstrap" || die
+
+ # testdata directories are not needed on the installed system
+ rm -fr $(find "${ED}"/usr/lib/go-bootstrap -iname testdata -type d -print)
+}