From 746f088c5ed12d3f3c65c42584affbf66eeb9e09 Mon Sep 17 00:00:00 2001 From: 1024x2 Date: Thu, 19 Jun 2025 11:50:59 +0100 Subject: dev-vcs/p4: add verify-sig support --- dev-vcs/p4/p4-2022.2.2637361.ebuild | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'dev-vcs/p4/p4-2022.2.2637361.ebuild') diff --git a/dev-vcs/p4/p4-2022.2.2637361.ebuild b/dev-vcs/p4/p4-2022.2.2637361.ebuild index 036f986..016fbc1 100644 --- a/dev-vcs/p4/p4-2022.2.2637361.ebuild +++ b/dev-vcs/p4/p4-2022.2.2637361.ebuild @@ -3,14 +3,25 @@ EAPI=8 +inherit verify-sig + REL="$(ver_cut 1-2)" SHORTREL="${REL:2}" DESCRIPTION="Command-line client for the Perforce VCS" HOMEPAGE="https://www.perforce.com/" SRC_URI=" - x86? ( https://ftp.perforce.com/pub/perforce/r${SHORTREL}/bin.linux26x86/p4 -> ${P}-x86 ) - amd64? ( https://ftp.perforce.com/pub/perforce/r${SHORTREL}/bin.linux26x86_64/p4 -> ${P}-amd64 ) + x86? ( + https://ftp.perforce.com/pub/perforce/r${SHORTREL}/bin.linux26x86/p4 -> ${P}-x86 + verify-sig? ( https://ftp.perforce.com/pub/perforce/r${SHORTREL}/bin.linux26x86/p4.asc -> ${P}-x86.asc ) + ) + amd64? ( + https://ftp.perforce.com/pub/perforce/r${SHORTREL}/bin.linux26x86_64/p4 -> ${P}-amd64 + verify-sig? ( https://ftp.perforce.com/pub/perforce/r${SHORTREL}/bin.linux26x86_64/p4.asc -> ${P}-amd64.asc ) + ) +" +BDEPEND=" + verify-sig? ( >=sec-keys/openpgp-keys-perforce-20250619 ) " S="${WORKDIR}" LICENSE="Perforce" @@ -19,10 +30,9 @@ KEYWORDS="-* ~amd64 ~x86" IUSE="" RESTRICT="mirror strip bindist" -src_unpack() { - cp "${DISTDIR}/${A}" p4 || die -} +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/perforce.asc" src_install() { - dobin p4 + local files=( ${A} ) + newbin "${files[0]/#/${DISTDIR}/}" p4 } -- cgit v1.2.3