aboutsummaryrefslogtreecommitdiffstats
path: root/dev-vcs/p4v/p4v-2023.4.2558838.ebuild
blob: 2203dc7c072aa4eeb9bdd22984018ab2c645bdc8 (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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

REL="$(ver_cut 1-2)"
SHORTREL="${REL:2}"

DESCRIPTION="Visual client for the Perforce VCS"
HOMEPAGE="https://www.perforce.com/"
SRC_URI="
	amd64? ( https://ftp.perforce.com/pub/perforce/r${SHORTREL}/bin.linux26x86_64/p4v.tgz -> ${P}-amd64.tgz )
"
#S="${WORKDIR}/${P}"
LICENSE="Perforce-P4V"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE=""
RESTRICT="mirror strip bindist"

RDEPEND="dev-vcs/p4"
DEPEND=""

src_install() {
	dodir /opt
	cp -R "${S}" "${D}/opt/p4v" || die "Install failed!"

	dodir /usr/bin
	for i in p4admin p4merge p4v p4vc; do
		dosym ../../opt/p4v/bin/"$i" /usr/bin/"$i"
	done
}