commit:     0c701b2a6ae76d6eff0c205cd7973d516260cd6e
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 24 19:40:08 2023 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Jul 24 19:40:08 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c701b2a

app-containers/docker-cli: add 24.0.5

Closes: https://bugs.gentoo.org/911119
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

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

diff --git a/app-containers/docker-cli/Manifest 
b/app-containers/docker-cli/Manifest
index bc86c8a968ec..c82b988aaaa2 100644
--- a/app-containers/docker-cli/Manifest
+++ b/app-containers/docker-cli/Manifest
@@ -2,3 +2,5 @@ DIST docker-cli-23.0.3-man.tar.xz 81976 BLAKE2B 
e7390b429d0db2445035da506bb79636
 DIST docker-cli-23.0.3.tar.gz 6215298 BLAKE2B 
817ca474d61839c8b5929db9bfa964b936285622859ab30f45be2f382238a5e49987fdbcdc896eaa7109f114166cf0e1dbc4f001cefe293a6c286b50e2737258
 SHA512 
873783a0fe9ecab3b8f251c842ba69070e0dffbb4a758c16165441b2f483d55d15b98fd7da0707e483995ac2d1fbb9a0f13f570b78486382b26d6ca6c5e612a9
 DIST docker-cli-24.0.4-man.tar.xz 82500 BLAKE2B 
67b113ea0a0b8377a2ab8c887849e2d8e6a57cf914bf1c6a1cdcc44978e154ee5b18abdc1b509d3c7367760204bcb1b896f2335a6ff18470433b08f3ce82d346
 SHA512 
fe7320bb0bacbddba0b00c1351591eceb96386e0e5141b7c399d483f6e549b687b8b3db4b33c127ded118f723d6eb5cbb995733be13c362a0e680f96b221b351
 DIST docker-cli-24.0.4.tar.gz 6242506 BLAKE2B 
2cc66a43dce613f0940a0aa2ffac075562ff58a483e68511f47a05bb27dc997547522ebd546d314c932d79eb366699b319d9ed561d481ef072bcd40d6993a6d1
 SHA512 
6b59e01ad975961f64a7c04c719b83dcd95875c223fc11dc3cb4fc6792b6a478fd014559a775ab59b8156e4476a1424cb997c7ae97a692be317b9e7d24ed92fb
+DIST docker-cli-24.0.5-man.tar.xz 82496 BLAKE2B 
f3295b684dbf8d251ba13a19b9bad9b828fce7d2f76b6643b1cf579cd297b770e8f7304bd3fce823badfbe97e9b760a108b819ca3c760a55e352cf3c5235d815
 SHA512 
683b0f131902e0a57512207daa49534d73aac6db99dc8621ac6b48eeef26b873e2ba03fe4afe6f1e84c5922e4c60bf0e80e24cc95cdbf2a4953d1c11b80d56ad
+DIST docker-cli-24.0.5.tar.gz 6243993 BLAKE2B 
a7ce84ecf329bc74e48f3a6e1b12a9e310a8f27ac68918ffeb40ab9c4eab8b79e753265b48220fcd3ab40b4136de5ebd44607831f642664eaf732111bd8f41b1
 SHA512 
765c67634d91d248b156d3e407398b98b7a0a89507bbac0310d4a68b95aa1a05e3af43c8b90bc10166748749d8cc36670619fc9efca110beefbdcd4385dc96be

diff --git a/app-containers/docker-cli/docker-cli-24.0.5.ebuild 
b/app-containers/docker-cli/docker-cli-24.0.5.ebuild
new file mode 100644
index 000000000000..3f84cac1b061
--- /dev/null
+++ b/app-containers/docker-cli/docker-cli-24.0.5.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+GIT_COMMIT=ced0996600
+EGO_PN="github.com/docker/cli"
+MY_PV=${PV/_/-}
+inherit bash-completion-r1  golang-vcs-snapshot
+
+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";
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE="hardened selinux"
+
+RDEPEND="!<app-containers/docker-20.10.1
+       selinux? ( sec-policy/selinux-docker )"
+BDEPEND="
+       >=dev-lang/go-1.16.6"
+
+PATCHES=(
+#      "${FILESDIR}/${P}-vendor.patch"
+)
+
+RESTRICT="installsources strip test"
+
+S="${WORKDIR}/${P}/src/${EGO_PN}"
+
+src_unpack() {
+       golang-vcs-snapshot_src_unpack
+       set -- ${A}
+       unpack ${2}
+}
+
+src_prepare() {
+       default
+       sed -i 's@dockerd\?\.exe@@g' contrib/completion/bash/docker || die
+}
+
+src_compile() {
+       export DISABLE_WARN_OUTSIDE_CONTAINER=1
+       export GOPATH="${WORKDIR}/${P}"
+       # setup CFLAGS and LDFLAGS for separate build target
+       # see https://github.com/tianon/docker-overlay/pull/10
+       export CGO_CFLAGS="-I${ESYSROOT}/usr/include"
+       export 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/*
+       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