diff options
Diffstat (limited to 'app-containers/docker-buildx')
-rw-r--r-- | app-containers/docker-buildx/Manifest | 4 | ||||
-rw-r--r-- | app-containers/docker-buildx/docker-buildx-0.10.4.ebuild | 62 | ||||
-rw-r--r-- | app-containers/docker-buildx/docker-buildx-9999.ebuild | 6 |
3 files changed, 70 insertions, 2 deletions
diff --git a/app-containers/docker-buildx/Manifest b/app-containers/docker-buildx/Manifest index e8bbbfd48655..e231ec75f0de 100644 --- a/app-containers/docker-buildx/Manifest +++ b/app-containers/docker-buildx/Manifest @@ -1,4 +1,6 @@ DIST docker-buildx-0.10.2.tar.gz 9187634 BLAKE2B 9a43a7bcb224f33d718928ef3070449cac4db87c951f4337368d0c994f211d4c3db3a5e9c309ce10e357ab24746bed2507e2867c9fdab3b51a5423787362fee1 SHA512 ba6b8baae1a8e24bf9ddc58d5e2451270fa6e3891bae83112ca00ae56b7a4842b45ec970898ec27a2123e312885bf0d8c58cc600d8462787242eb878f45cd877 +DIST docker-buildx-0.10.4.tar.gz 9184825 BLAKE2B f0e71c0f6dda5f02da4cf0b0514f67f5d339ba10359afc69aae25abf907447fd22fe3d92427299bc67aeaa6a84e748a8a5cbd86151b2baba2dd01f25cc04a793 SHA512 f82b89b8dd4e45524c8d353c4d7588f47b1c7b7ecf759fd9605247c1c7aa0ca152c3ecdec0e0b62b5eef05e6b65d2ca1f5ccab6d75819b92fc92ff62b44105b7 EBUILD docker-buildx-0.10.2.ebuild 1419 BLAKE2B 9270f5131fc4ff742928ad8308a6017d5ec96dca156b50992d3df77477af5d302be5457b9745026e14f7129aaefb0a0aef6e1ddf3778f2157c73c26adce1f4b7 SHA512 b57cabd264c6e89158107691581ede6fab15cc108c7a7c3248f38c12d3137dd8d610bec6e2757f4c7863bfbebc43a68c6cd82d19d4e3c2ad8b5aefccf0d8b0bd -EBUILD docker-buildx-9999.ebuild 1419 BLAKE2B 9270f5131fc4ff742928ad8308a6017d5ec96dca156b50992d3df77477af5d302be5457b9745026e14f7129aaefb0a0aef6e1ddf3778f2157c73c26adce1f4b7 SHA512 b57cabd264c6e89158107691581ede6fab15cc108c7a7c3248f38c12d3137dd8d610bec6e2757f4c7863bfbebc43a68c6cd82d19d4e3c2ad8b5aefccf0d8b0bd +EBUILD docker-buildx-0.10.4.ebuild 1521 BLAKE2B 1947c4345adb1d3c642f88733330fee5a7e2cfcabe1ed68a8f9dd02f7cc8478d197ccec328a3ab3b206b8b7dfc9bb5a62900d27dc7ea96c82a7b280c905fe4da SHA512 c8559990538a01f78345f2f10650edeb18d89220be9e1125a7f24a5f3ac1d32a6ceda757d39cf30d6fd58bad8f21a2466364f1933cf10fcf64f8ab859b0635dc +EBUILD docker-buildx-9999.ebuild 1521 BLAKE2B 1947c4345adb1d3c642f88733330fee5a7e2cfcabe1ed68a8f9dd02f7cc8478d197ccec328a3ab3b206b8b7dfc9bb5a62900d27dc7ea96c82a7b280c905fe4da SHA512 c8559990538a01f78345f2f10650edeb18d89220be9e1125a7f24a5f3ac1d32a6ceda757d39cf30d6fd58bad8f21a2466364f1933cf10fcf64f8ab859b0635dc MISC metadata.xml 710 BLAKE2B e54ba5993825b2fa455c7ad33dc37d3edddbf74f19cc2e8ce3260fdac0d581c3c719d5f7252b7836d263efd020b4d3d90d717c3873531055418dbb556f02288c SHA512 f217f1f7f8ac31cbf5516630eea107a686394efc960384c67a216f80b57c61323b6b02b5dd1ae458817a851b9f166c684087790079e48b7d4a2a78130dc2a411 diff --git a/app-containers/docker-buildx/docker-buildx-0.10.4.ebuild b/app-containers/docker-buildx/docker-buildx-0.10.4.ebuild new file mode 100644 index 000000000000..e46ea450eaef --- /dev/null +++ b/app-containers/docker-buildx/docker-buildx-0.10.4.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +MY_PN="buildx" +DESCRIPTION="Docker CLI plugin for extended build capabilities with BuildKit" +HOMEPAGE="https://github.com/docker/buildx" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/docker/buildx.git" +else + SRC_URI="https://github.com/docker/buildx/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64" + S="${WORKDIR}/${MY_PN}-${PV}" +fi + +LICENSE="Apache-2.0" +SLOT="0" + +# This gives us the ability to neatly `-skip` tests. +# not required once ::gentoo is all > 1.20 +RESTRICT="!test? ( test )" +IUSE="test" + +BDEPEND=" + test? ( >=dev-lang/go-1.20 ) +" +DEPEND="app-containers/docker" +RDEPEND="${DEPEND}" + +src_compile() { + local _buildx_r='github.com/docker/buildx' + local version=${PV} + if [[ ${PV} == 9999 ]]; then + version="$(git rev-parse --short HEAD)" + fi + ego build -mod=vendor -o docker-buildx \ + -ldflags "-linkmode=external \ + -X $_buildx_r/version.Version=${version} \ + -X $_buildx_r/version.Revision=$(date -u +%FT%T%z) \ + -X $_buildx_r/version.Package=$_buildx_r" \ + ./cmd/buildx +} + +src_test() { + # TestGit can't work in a source tarball; TestReadTargets fails seemingly due to parallelism. + if [[ ${PV} == 9999 ]]; then + ego test ./... -skip "TestReadTargets" + else + ego test ./... -skip "TestGit|TestReadTargets" + fi +} + +src_install() { + exeinto /usr/libexec/docker/cli-plugins + doexe docker-buildx + + dodoc README.md +} diff --git a/app-containers/docker-buildx/docker-buildx-9999.ebuild b/app-containers/docker-buildx/docker-buildx-9999.ebuild index 4c9132f3eb3f..e46ea450eaef 100644 --- a/app-containers/docker-buildx/docker-buildx-9999.ebuild +++ b/app-containers/docker-buildx/docker-buildx-9999.ebuild @@ -33,9 +33,13 @@ RDEPEND="${DEPEND}" src_compile() { local _buildx_r='github.com/docker/buildx' + local version=${PV} + if [[ ${PV} == 9999 ]]; then + version="$(git rev-parse --short HEAD)" + fi ego build -mod=vendor -o docker-buildx \ -ldflags "-linkmode=external \ - -X $_buildx_r/version.Version=${PV} \ + -X $_buildx_r/version.Version=${version} \ -X $_buildx_r/version.Revision=$(date -u +%FT%T%z) \ -X $_buildx_r/version.Package=$_buildx_r" \ ./cmd/buildx |