diff options
author | Sam James <sam@gentoo.org> | 2022-12-05 02:30:12 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-12-05 02:30:12 +0000 |
commit | f360a9293476cbd3c3e232c6e3320558128b2612 (patch) | |
tree | 015599b260b3dce86a35cd05ab6ebde6f153c613 /app-containers/docker-buildx | |
parent | app-containers/docker-buildx: new package (diff) | |
download | gentoo-f360a9293476cbd3c3e232c6e3320558128b2612.tar.gz gentoo-f360a9293476cbd3c3e232c6e3320558128b2612.tar.bz2 gentoo-f360a9293476cbd3c3e232c6e3320558128b2612.zip |
app-containers/docker-buildx: use ego
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-containers/docker-buildx')
-rw-r--r-- | app-containers/docker-buildx/docker-buildx-0.9.1.ebuild | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/app-containers/docker-buildx/docker-buildx-0.9.1.ebuild b/app-containers/docker-buildx/docker-buildx-0.9.1.ebuild index e8a8a84e36f4..298498909a93 100644 --- a/app-containers/docker-buildx/docker-buildx-0.9.1.ebuild +++ b/app-containers/docker-buildx/docker-buildx-0.9.1.ebuild @@ -9,6 +9,7 @@ MY_PN="buildx" DESCRIPTION="Docker CLI plugin for extended build capabilities with BuildKit" HOMEPAGE="https://github.com/docker/buildx" SRC_URI="https://github.com/docker/buildx/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MY_PN}-${PV}" LICENSE="Apache-2.0" SLOT="0" @@ -16,18 +17,19 @@ KEYWORDS="~amd64 ~arm64" DEPEND="app-containers/docker" RDEPEND="${DEPEND}" -BDEPEND="" - -S="${WORKDIR}/${MY_PN}-${PV}" src_compile() { local _buildx_r='github.com/docker/buildx' - go build -mod=vendor -o docker-buildx \ + ego build -mod=vendor -o docker-buildx \ -ldflags "-linkmode=external \ -X $_buildx_r/version.Version=${PV} \ -X $_buildx_r/version.Revision=$(date -u +%FT%T%z) \ -X $_buildx_r/version.Package=$_buildx_r" \ - ./cmd/buildx || die + ./cmd/buildx +} + +src_test() { + ego test ./... } src_install() { @@ -36,7 +38,3 @@ src_install() { dodoc README.md } - -src_test() { - go test ./... || die -} |