commit:     bd5c6fbc314173acd2a19373c01e30f3fa67f416
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 17 21:39:19 2022 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Mar 17 21:39:19 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd5c6fbc

app-containers/docker-compose: add 2.3.3-r2

This makes the messages about the new command and depclean more
prominent.

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

 .../docker-compose/docker-compose-2.3.3-r2.ebuild  | 51 ++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/app-containers/docker-compose/docker-compose-2.3.3-r2.ebuild 
b/app-containers/docker-compose/docker-compose-2.3.3-r2.ebuild
new file mode 100644
index 000000000000..945d4b1b24b1
--- /dev/null
+++ b/app-containers/docker-compose/docker-compose-2.3.3-r2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 2018-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit bash-completion-r1 go-module
+MY_PV=${PV/_/-}
+
+DESCRIPTION="Multi-container orchestration for Docker"
+HOMEPAGE="https://github.com/docker/compose";
+SRC_URI="https://github.com/docker/compose/archive/v${MY_PV}.tar.gz -> 
${P}.tar.gz"
+SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz";
+
+LICENSE="Apache-2.0"
+SLOT="2"
+KEYWORDS="~amd64"
+
+RDEPEND=">=app-containers/docker-cli-20.10.3"
+
+S="${WORKDIR}/compose-${MY_PV}"
+
+src_prepare() {
+       default
+       # do not strip
+       sed -i -e 's/-s -w//' builder.Makefile || die
+}
+
+src_compile() {
+       emake -f builder.Makefile GIT_TAG=v${PV}
+}
+
+src_install() {
+       dodir /usr/libexec/docker/cli-plugins
+       exeinto /usr/libexec/docker/cli-plugins
+       doexe bin/docker-compose
+dodoc README.md
+}
+
+src_test() {
+       emake -f builder.Makefile test
+}
+
+pkg_postinst() {
+       has_version =app-containers/docker-compose-1* || return
+       ewarn
+       ewarn "docker-compose 2.x is a sub command of docker"
+       ewarn "Use 'docker compose' from the command line instead of"
+       ewarn "'docker-compose'"
+       ewarn "If you need to keep 1.x around, please run the following"
+       ewarn "command before your next --depclean"
+       ewarn "# emerge --noreplace docker-compose:0"
+}

Reply via email to