mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2026-05-06 07:27:03 -04:00
app-containers/skopeo: add 1.22.2
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -2,3 +2,4 @@ DIST skopeo-1.18.0.tar.gz 10790607 BLAKE2B ebbd9c481fd9ae03ff853042276037a521a79
|
||||
DIST skopeo-1.19.0.tar.gz 10819827 BLAKE2B c413bdc58634e144bcd1ee64afcba5cbd472fb08791c6eb8acb1cc84fdc9a62ef16fcd52123ac3364b1473f2aa285b97007d440b99385f8503120b412294f17c SHA512 2e297a193e8414f0482b06b7e2aaa027c4510963e91e4675c00b8113e58b82abf26943f36a60584dc47fd7f3abd80c452fb9c92f29e1b82d4c329bd422a399ee
|
||||
DIST skopeo-1.21.0.tar.gz 10187308 BLAKE2B 7a173e99e940c64e27e541575880a13132d0784cf4187e5d5ca871a75a1c71d8cbbe04e8f462a58e9f5e9fafaa610af69db42f28bc2cb6329f21bebd972b7c20 SHA512 2d1bc2e991d11b2060f7d2d4869aa30bb281794c3a5fa8aa6c5e333fc9c0190eb716d1855f6554ab0ee810b93e1638fcfde48e58f1e3e01ac5474c329ac041c7
|
||||
DIST skopeo-1.22.0.tar.gz 10191616 BLAKE2B f763954cd209c5d3770da1bfd71ab3be485920326ada83770b4b190149b712e67c2d200ca4af442f317cf19f8048e90f7c7b4b03761d3e43b57b4e68e6e8d006 SHA512 d4030c4dca7288e8a80a31fadd37532990bdf16ad5ff7c5e8e2ef922cc1a3185f1a6c32ac9906bd07a826cc6968a68dfd6df4d7e10e8ee22d87dba3ac5bfd3b9
|
||||
DIST skopeo-1.22.2.tar.gz 10327855 BLAKE2B f3c6d5eafe98c54b0e8f4b69d75472cfe4367152a915ed4daf16dc8d0604547863d62acaf3ef3c50d82a7ab4996d9ee9c25b87300aefccbebc74c664de4ee515 SHA512 d65134f568bf49cabc1ec7564bc98a5debb9e6b16a6e5351cebc583534a56b6a16c0eb69356f8466681e68df5445172c34c9d34bcb362bc2a89bfe9288002066
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
# Copyright 2023-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module linux-info
|
||||
|
||||
DESCRIPTION="Work with remote container images registries"
|
||||
HOMEPAGE="https://github.com/containers/skopeo"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/containers/skopeo.git"
|
||||
else
|
||||
SRC_URI="https://github.com/containers/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
fi
|
||||
|
||||
# main
|
||||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT"
|
||||
SLOT="0"
|
||||
IUSE="btrfs rootless"
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="
|
||||
>=app-crypt/gpgme-1.5.5:=
|
||||
dev-db/sqlite:3
|
||||
btrfs? ( >=sys-fs/btrfs-progs-4.0.1 )
|
||||
rootless? ( sys-apps/shadow:= )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
app-containers/containers-common
|
||||
"
|
||||
BDEPEND="dev-go/go-md2man"
|
||||
|
||||
pkg_setup() {
|
||||
use btrfs && CONFIG_CHECK+=" ~BTRFS_FS"
|
||||
linux-info_pkg_setup
|
||||
}
|
||||
|
||||
run_make() {
|
||||
local emakeflags=(
|
||||
BTRFS_BUILD_TAG="$(usex btrfs '' 'exclude_graphdriver_btrfs')"
|
||||
CONTAINERSCONFDIR="${EPREFIX}/etc/containers"
|
||||
LIBSUBID_BUILD_TAG="$(usex rootless 'libsubid' '')"
|
||||
PREFIX="${EPREFIX}/usr"
|
||||
)
|
||||
emake "${emakeflags[@]}" "$@"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
run_make all completions
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# The install target in the Makefile tries to rebuild the binary and
|
||||
# installs things that are already installed by containers-common.
|
||||
dobin bin/skopeo
|
||||
einstalldocs
|
||||
doman docs/*.1
|
||||
run_make "DESTDIR=${D}" install-completions
|
||||
}
|
||||
Reference in New Issue
Block a user