blob: 20d47db8e2dee00d07b1c174c9376b42ab82f7f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 2018-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
inherit optfeature
DESCRIPTION="Multi-container orchestration for Docker"
HOMEPAGE="https://github.com/docker/compose"
SRC_URI="https://github.com/docker/compose/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
SRC_URI+=" https://github.com/gentoo-golang-dist/compose/releases/download/v${PV}/compose-${PV}-vendor.tar.xz"
S="${WORKDIR}/compose-${PV}"
LICENSE="Apache-2.0"
# Dependent licenses
LICENSE+=" Apache-2.0 BSD BSD-2 MIT MPL-2.0"
SLOT="2"
KEYWORDS="amd64 arm64"
RESTRICT="test"
RDEPEND="
|| (
>=app-containers/docker-cli-29.7.2
app-containers/podman[wrapper(+)]
)
"
BDEPEND=">=dev-lang/go-1.26.3"
src_compile() {
emake VERSION=v${PV}
}
src_test() {
emake test
}
src_install() {
exeinto /usr/libexec/docker/cli-plugins
doexe bin/build/docker-compose
dodoc README.md
}
pkg_postinst() {
optfeature "credential store support" app-containers/docker-credential-helpers
if ver_replacing -lt 2; then
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"
fi
}
|