summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2022-03-15 14:21:04 -0500
committerWilliam Hubbs <williamh@gentoo.org>2022-03-15 14:24:08 -0500
commit81ad958f54e2d7183b4908fea8c36202f5da8d6a (patch)
treeb9a2fb69a81b5262ebb02535004261fb220d807c /app-containers/docker-compose
parentdev-java/gradle-bin: add 7.4.1 (diff)
downloadgentoo-81ad958f54e2d7183b4908fea8c36202f5da8d6a.tar.gz
gentoo-81ad958f54e2d7183b4908fea8c36202f5da8d6a.tar.bz2
gentoo-81ad958f54e2d7183b4908fea8c36202f5da8d6a.zip
app-containers/docker-compose: add 2.3.3-r1
- rdepend on docker-cli instead of docker - fix the failure in pkg_postinst Closes: https://bugs.gentoo.org/835366 Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-containers/docker-compose')
-rw-r--r--app-containers/docker-compose/docker-compose-2.3.3-r1.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/app-containers/docker-compose/docker-compose-2.3.3-r1.ebuild b/app-containers/docker-compose/docker-compose-2.3.3-r1.ebuild
new file mode 100644
index 000000000000..b6d6d3326e38
--- /dev/null
+++ b/app-containers/docker-compose/docker-compose-2.3.3-r1.ebuild
@@ -0,0 +1,48 @@
+# 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
+ elog
+ elog "docker-compose 2.x is a sub command of docker"
+ elog "Use 'docker compose' from the command line instead of"
+ elog "'docker-compose'"
+}