aboutsummaryrefslogtreecommitdiffstats
path: root/dev-vcs/p4/p4-2025.1.2761706.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-vcs/p4/p4-2025.1.2761706.ebuild')
-rw-r--r--dev-vcs/p4/p4-2025.1.2761706.ebuild24
1 files changed, 17 insertions, 7 deletions
diff --git a/dev-vcs/p4/p4-2025.1.2761706.ebuild b/dev-vcs/p4/p4-2025.1.2761706.ebuild
index f9b959b..7ddfd51 100644
--- a/dev-vcs/p4/p4-2025.1.2761706.ebuild
+++ b/dev-vcs/p4/p4-2025.1.2761706.ebuild
@@ -1,16 +1,27 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
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="
- amd64? ( https://ftp.perforce.com/pub/perforce/r${SHORTREL}/bin.linux26x86_64/p4 -> ${P}-amd64 )
- arm64? ( https://ftp.perforce.com/pub/perforce/r${SHORTREL}/bin.linux26aarch64/p4 -> ${P}-arm64 )
+ 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 )
+ )
+ arm64? (
+ https://ftp.perforce.com/pub/perforce/r${SHORTREL}/bin.linux26aarch64/p4 -> ${P}-arm64
+ verify-sig? ( https://ftp.perforce.com/pub/perforce/r${SHORTREL}/bin.linux26aarch64/p4.asc -> ${P}-arm64.asc )
+ )
+"
+BDEPEND="
+ verify-sig? ( >=sec-keys/openpgp-keys-perforce-20250619 )
"
S="${WORKDIR}"
LICENSE="Perforce"
@@ -19,10 +30,9 @@ KEYWORDS="-* ~amd64 ~arm64"
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
}