aboutsummaryrefslogtreecommitdiffstats
path: root/dev-vcs/p4/p4-2022.2.2637361.ebuild
blob: 016fbc1c9aca535f380669ed2145eff00644c16b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2023 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="
	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"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""
RESTRICT="mirror strip bindist"

VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/perforce.asc"

src_install() {
	local files=( ${A} )
	newbin "${files[0]/#/${DISTDIR}/}" p4
}