commit:     415972438916cc92ec51098bd30e7b9682e43980
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 11 14:35:24 2025 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Fri Apr 11 14:35:24 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41597243

app-containers/docker-cli: add 28.0.4

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 app-containers/docker-cli/Manifest                 |  2 +
 app-containers/docker-cli/docker-cli-28.0.4.ebuild | 74 ++++++++++++++++++++++
 2 files changed, 76 insertions(+)

diff --git a/app-containers/docker-cli/Manifest 
b/app-containers/docker-cli/Manifest
index 9b854c8d3b31..31c6c92306e8 100644
--- a/app-containers/docker-cli/Manifest
+++ b/app-containers/docker-cli/Manifest
@@ -1,2 +1,4 @@
 DIST docker-cli-28.0.1-man.tar.xz 70360 BLAKE2B 
395736a74b314530fbbd6bf4016f7f211a3ee4754179cde0d8edf16f489c3fd92565cf73033defb80fd8280e4ef1e2add15541102944401123cfb251b06492f9
 SHA512 
b72e4f35a80d72d18f701edcace46eb11fbcf1ba40a1ab8efa913edc74e265dafbdc58c7c0d442293d71ce2cfc952fcbed5afee5d5f3ba52d9d25741d5a12593
 DIST docker-cli-28.0.1.tar.gz 7413092 BLAKE2B 
69075ba24eb7c46593d7c4ab80499b67994119af8096409f55eec9524173cb8d37263159cd834e3cfaf4e8d169b568232d400633b2d9b08112ced05c78338f92
 SHA512 
c3d7ca21b88c5f6925f6c99519a67581fd6c264cc96e6c0bc00751f87de6580a2d443cbe59b2e36771e37a78fe05ea054e292675e19bc4d73fcacfda047e0490
+DIST docker-cli-28.0.4-man.tar.xz 70440 BLAKE2B 
676eeafda725c759074124e1ccef693d3f0232e2acf3c2b468d28f48e7228b36c885d690cf041bab775b8410e65c1c6f1403b712a869a5610a03ae788f175a0b
 SHA512 
e36dccb3ea043b722993001ebc36180874b65df5fdd446c52ad2902812097a456ee5d1d432e4c5f5db553213c9956c1f2ef3d07e171760f1e29248f3a6dedf9f
+DIST docker-cli-28.0.4.tar.gz 7504883 BLAKE2B 
c975eff2bb4c0dd5430a67418804e8649c733a59ac6b2beb9f2a454a8e8839e12afbf61afccb1e3bd0cb2e38c51fbd59fee3de45490a02ec9ad074cd365ece2c
 SHA512 
fd7562815686fece20a0ea95501612e049e90192305464b06770643ae864baa87b0fb87fddadeb4f9beb33352940cef63ffd24af8b989e309cd5be5f32eddf62

diff --git a/app-containers/docker-cli/docker-cli-28.0.4.ebuild 
b/app-containers/docker-cli/docker-cli-28.0.4.ebuild
new file mode 100644
index 000000000000..ec5fe43c9a61
--- /dev/null
+++ b/app-containers/docker-cli/docker-cli-28.0.4.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1 go-module
+MY_PV=${PV/_/-}
+
+# update this on every bump
+GIT_COMMIT=b8034c0ed70494a90c133461d145cd072d920d7c
+
+# To create the man pages tarball, run the following in the git source
+# directory:
+#git checkout ${PV}
+# make manpages
+# tar -acf ${P}-man.tar.xz man/man?
+
+DESCRIPTION="the command line binary for docker"
+HOMEPAGE="https://www.docker.com/";
+SRC_URI="https://github.com/docker/cli/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-man.tar.xz";
+S="${WORKDIR}/cli-${PV}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE="hardened selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-docker )"
+
+RESTRICT="installsources strip test"
+
+src_unpack() {
+       default
+       cd "${S}"
+       ln -s vendor.mod go.mod
+       ln -s vendor.sum go.sum
+}
+
+src_prepare() {
+       default
+       sed -i 's@dockerd\?\.exe@@g' contrib/completion/bash/docker || die
+}
+
+src_compile() {
+       export DISABLE_WARN_OUTSIDE_CONTAINER=1
+       # setup CFLAGS and LDFLAGS for separate build target
+       # see https://github.com/tianon/docker-overlay/pull/10
+       CGO_CFLAGS+=" -I${ESYSROOT}/usr/include"
+       CGO_LDFLAGS+=" -L${ESYSROOT}/usr/$(get_libdir)"
+               emake \
+               LDFLAGS="$(usex hardened '-extldflags -fno-PIC' '')" \
+               VERSION="${PV}" \
+               GITCOMMIT="${GIT_COMMIT}" \
+               dynbinary
+}
+
+src_install() {
+       dobin build/docker
+       doman "${WORKDIR}"/man/man?/*
+       dobashcomp contrib/completion/bash/docker
+       bashcomp_alias docker dockerd
+       insinto /usr/share/fish/vendor_completions.d/
+       doins contrib/completion/fish/docker.fish
+       insinto /usr/share/zsh/site-functions
+       doins contrib/completion/zsh/_*
+}
+
+pkg_postinst() {
+       has_version "app-containers/docker-buildx" && return
+       ewarn "the 'docker build' command is deprecated and will be removed in 
a"
+       ewarn "future release. If you need this functionality, install"
+       ewarn "app-containers/docker-buildx."
+}

Reply via email to