summaryrefslogtreecommitdiff
blob: 071a946fdcb62742709094ad12b3937a60209ce2 (plain)
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
39
40
41
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$

EAPI=2
inherit versionator

REL=$(get_version_component_range 1-2)
SHORTREL=${REL/#20/}

DESCRIPTION="GUI for Perforce version control system"
HOMEPAGE="http://www.perforce.com/"
SRC_URI="x86? (
	ftp://ftp.perforce.com/perforce/r${SHORTREL}/bin.linux26x86/p4v.tgz -> \
	${PF}-x86.tgz )
    amd64? (
	ftp://ftp.perforce.com/perforce/r${SHORTREL}/bin.linux26x86_64/p4v.tgz -> \
	${PF}-amd64.tgz )"

LICENSE="perforce"
SLOT="0"
KEYWORDS="-* ~x86 ~amd64"
IUSE="gtk"
RESTRICT="mirror strip test"

S=${WORKDIR}

src_install() {
	cd p4v-${PVR} || die
	insopts -m0755
	insinto /opt
	doins -r * || die

	insinto /etc/revdep-rebuild
	doins "${FILESDIR}/50-perforce-gui" || die

	if use gtk; then
		insinto /usr/share/applications
		doins "${FILESDIR}/p4v.desktop" || die
	fi
}