From 16857b69f990738d17bc5842e3e49a6e82d1428d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 17 Jul 2024 12:28:32 +0100 Subject: gentoo auto-resync : 17:07:2024 - 12:28:31 --- dev-go/go-dep-tarball/Manifest | 6 +-- dev-go/go-dep-tarball/files/go-dep-tarball-0 | 59 ------------------------ dev-go/go-dep-tarball/files/go-dep-tarball-0.1 | 60 +++++++++++++++++++++++++ dev-go/go-dep-tarball/go-dep-tarball-0.1.ebuild | 17 +++++++ dev-go/go-dep-tarball/go-dep-tarball-0.ebuild | 17 ------- dev-go/go-dep-tarball/metadata.xml | 1 + 6 files changed, 81 insertions(+), 79 deletions(-) delete mode 100644 dev-go/go-dep-tarball/files/go-dep-tarball-0 create mode 100644 dev-go/go-dep-tarball/files/go-dep-tarball-0.1 create mode 100644 dev-go/go-dep-tarball/go-dep-tarball-0.1.ebuild delete mode 100644 dev-go/go-dep-tarball/go-dep-tarball-0.ebuild (limited to 'dev-go/go-dep-tarball') diff --git a/dev-go/go-dep-tarball/Manifest b/dev-go/go-dep-tarball/Manifest index 275a05ca01de..d217b99d3934 100644 --- a/dev-go/go-dep-tarball/Manifest +++ b/dev-go/go-dep-tarball/Manifest @@ -1,3 +1,3 @@ -AUX go-dep-tarball-0 2287 BLAKE2B 4fd20a155a4e15a3674652cde136e7f70318eb7d2234ae3f5118f345f4fe94deec0572be657abd2698a84d910799f83fd558b461e74c14e5e6bee65dc104c46c SHA512 055c795046b669470dffa45f50aedbe7797993d510f544b32e0c73f2e43c482fc2f9938fc31e2c9fff6141e7944a61642923da3755e62557b891c8fe93825f6a -EBUILD go-dep-tarball-0.ebuild 397 BLAKE2B 3699ba38f3aee0eebf26028fb538a850fe86f5c3043c11db15922dbb4fc5cfb4ffc707c8ab07a749e81a701922fb658a257a8ad02cba51b9b7abd4598e423b91 SHA512 f3c2616db1cdbcbe8dbb8b0d265e59586b90657cf550562be4452d6f4f99f4ea88d856970f6ce89ea3bb5c9e05f547016ffae35c5a5ff77f5a659f418c2175dc -MISC metadata.xml 243 BLAKE2B 63665ae2020bc799fa6ebd6e1fca6755be6498803fdbc17cc630f9f4ffa03fbd46a9ad396e70adc3bc1c32b0a746fe4bab1c6291f32e68e636251207bca9e95c SHA512 78eab20831018fcf4957171a83aaaca9ced53380e01f083c07450c30fa1adfc02dd50ff2fa9f491dd62802f6e779264add1c47a09ade0a35cda558c1d5529ad0 +AUX go-dep-tarball-0.1 2303 BLAKE2B c30ce2414635a0943d2bf69bfbe0f2256cc15362b4de35ae916c592168a614f327a0a7d4a0ac1f92576b870e1cd99196a781f9fa30948c6d1ff05cd627deddfb SHA512 e2be2ce328714dfaff33ed93e7b38e97c64223d5d5193ea6b07f45d1119b818aaf3c34eabac916439ca402cff92b8e76e4bdeff6c0bded218c02565e6ee9bcb0 +EBUILD go-dep-tarball-0.1.ebuild 441 BLAKE2B 375438f6d15a7d9ada9528aa711b3ba32a68f63cf450ab41bad0bb034972a5321e5c2664a3a1cd9d452eede080e4bf31837b7885fcb7a913d4598964116afe5e SHA512 6d86988ef1577e8982f848b553a6d2c7ec5d36987c9567b290060647e1368886953a41b3b5076d9e7cb693501e7cdf3ec30f2c3ac402654c57570d94d6e8507f +MISC metadata.xml 266 BLAKE2B f2ca38f226e772bb163927824b1694decc910a8bc9fc302d96f2cdaf0ee6837d12702c06bdac61e47436263d01de722a6275cd74426693745d6fb38ee7d384d3 SHA512 e489d727a1beec3caf3b51b4bf4c83a3f738f77d2cd285db0948a0b39d2d61cf038386bfda82ba6750553ca336a7c67f6d42c9ef014639ab24a228790cb1cc98 diff --git a/dev-go/go-dep-tarball/files/go-dep-tarball-0 b/dev-go/go-dep-tarball/files/go-dep-tarball-0 deleted file mode 100644 index d630445fa770..000000000000 --- a/dev-go/go-dep-tarball/files/go-dep-tarball-0 +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# Copyright (c) 2024, William Hubbs -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1. Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# 3. Neither the name of the copyright holder nor the names of its -# contributors may be used to endorse or promote products derived from -# this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -set -e -shopt -s lastpipe - -if [[ -z $1 ]]; then -printf "%s\n" "no tarball name specified" >&2 -exit 1 -fi - -if [[ ! -f go.mod ]]; then -printf "%s %s\n" "${PWD}" "does not contain a go project" >&2 -exit 1 -fi - -work=$(mktemp -d -p '' dep-tarball-XXXXXX) -export GOMODCACHE="${work}"/go-mod -go mod download -modcacherw -mapfile -t mod_paths < <(find . -mindepth 2 -name go.mod -print) -for p in "${mod_paths[@]}"; do - printf "entering %s\n" "${p%/go.mod}" - pushd "${p%/go.mod}" > /dev/null - go mod download -modcacherw - popd > /dev/null -done -find "${GOMODCACHE}/cache/download" -type f -name '*.zip' -delete -( -cd "${work}" -XZ_OPT='-T0 -9' \ -tar --owner 0 --group 0 --posix -acf "${1}"-deps.tar.xz go-mod -rm -fr go-mod -) -mv "${work}"/*xz . diff --git a/dev-go/go-dep-tarball/files/go-dep-tarball-0.1 b/dev-go/go-dep-tarball/files/go-dep-tarball-0.1 new file mode 100644 index 000000000000..50afdd5f068d --- /dev/null +++ b/dev-go/go-dep-tarball/files/go-dep-tarball-0.1 @@ -0,0 +1,60 @@ +#!/bin/bash +# Copyright (c) 2024, William Hubbs +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. Neither the name of the copyright holder nor the names of its +# contributors may be used to endorse or promote products derived from +# this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +# POSSIBILITY OF SUCH DAMAGE. + +set -e +shopt -s lastpipe + +if [[ -z $1 ]]; then +printf "%s\n" "no tarball name specified" >&2 +exit 1 +fi + +if [[ ! -f go.mod ]]; then +printf "%s %s\n" "${PWD}" "does not contain a go project" >&2 +exit 1 +fi + +work=$(mktemp -d -p '' dep-tarball-XXXXXX) +export GOMODCACHE="${work}"/go-mod +go mod download -modcacherw +mapfile -t mod_paths < <(find . -mindepth 2 -name go.mod -print) +for p in "${mod_paths[@]}"; do + printf "entering %s\n" "${p%/go.mod}" + pushd "${p%/go.mod}" > /dev/null + go mod download -modcacherw + popd > /dev/null +done +find "${GOMODCACHE}/cache/download" -type f -name '*.zip' -delete +( +cd "${work}" +XZ_OPT='-T0 -9' \ +tar --owner 0 --group 0 --posix -acf "${1}"-deps.tar.xz go-mod +rm -fr go-mod +) +mv "${work}"/*xz . +rmdir "${work}" diff --git a/dev-go/go-dep-tarball/go-dep-tarball-0.1.ebuild b/dev-go/go-dep-tarball/go-dep-tarball-0.1.ebuild new file mode 100644 index 000000000000..460c71d8bead --- /dev/null +++ b/dev-go/go-dep-tarball/go-dep-tarball-0.1.ebuild @@ -0,0 +1,17 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="script to package go dependencies" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" + +S="${WORKDIR}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris" + +src_install() { + newbin "${FILESDIR}/go-dep-tarball-${PV}" go-dep-tarball +} diff --git a/dev-go/go-dep-tarball/go-dep-tarball-0.ebuild b/dev-go/go-dep-tarball/go-dep-tarball-0.ebuild deleted file mode 100644 index 33119de78872..000000000000 --- a/dev-go/go-dep-tarball/go-dep-tarball-0.ebuild +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DESCRIPTION="script to package go dependencies" -HOMEPAGE="" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris" - -S="${WORKDIR}" - -src_install() { - newbin "${FILESDIR}/go-dep-tarball-0" go-dep-tarball -} diff --git a/dev-go/go-dep-tarball/metadata.xml b/dev-go/go-dep-tarball/metadata.xml index 3b2a9c591010..d43c670dc1ca 100644 --- a/dev-go/go-dep-tarball/metadata.xml +++ b/dev-go/go-dep-tarball/metadata.xml @@ -5,4 +5,5 @@ williamh@gentoo.org William Hubbs + -- cgit v1.2.3