forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-containers/nerdctl: Bump to version 0.17.0
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Zac Medico <[email protected]>
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Copyright 2021-2022 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
inherit go-module | ||
|
||
DESCRIPTION="Docker-compatible CLI for containerd, with support for Compose" | ||
HOMEPAGE="https://github.com/containerd/nerdctl" | ||
|
||
EGIT_COMMIT="9ec475aeb69209b9b2a3811aee0923e2eafd1644" | ||
# There are too many vendor dependencies to distribute via EGO_SUM (see https://bugs.gentoo.org/721088), | ||
# so they are instead distributed via a combined tarball. | ||
SRC_URI="https://github.com/zmedico/nerdctl/archive/refs/tags/v${PV}-vendor.tar.gz -> ${P}-vendor.tar.gz" | ||
BDEPEND=">=dev-lang/go-1.16" | ||
LICENSE="Apache-2.0 BSD BSD-2 ISC MIT" | ||
SLOT="0" | ||
|
||
KEYWORDS="~amd64" | ||
IUSE="" | ||
S=${WORKDIR}/${P}-vendor | ||
|
||
src_prepare() { | ||
sed -e 's:/usr/local/bin:/usr/bin:' \ | ||
-e "s|^VERSION[[:space:]]*=.*|VERSION := v${PV}|" \ | ||
-e "s|^REVISION[[:space:]]*=.*|REVISION := ${EGIT_COMMIT}|" \ | ||
-i Makefile || die | ||
default | ||
} | ||
|
||
src_install() { | ||
DOCS=(README.md docs examples) | ||
default_src_install | ||
} |