summaryrefslogtreecommitdiff
blob: 4cebe0fe246fc2e7e13fff08412bf128e87be98c (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
42
43
44
45
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit eutils

DESCRIPTION="All-In-One Solution for Remote Access and Support over the Internet"
HOMEPAGE="http://www.teamviewer.com"
SRC_URI="http://www.teamviewer.com/download/${PN}_linux.tar.gz -> ${P}.tar.gz"

LICENSE="TeamViewer"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RESTRICT="mirror strip"

RDEPEND="app-emulation/wine"
DEPEND="${RDEPEND}"

S="${WORKDIR}/teamviewer7"

src_install () {
	rm ${PN}
	echo "#!/bin/bash" > ${PN}
	echo "wine /opt/${PN}/TeamViewer.exe" >> ${PN}

	insinto /opt/${PN}/
	doins .wine/drive_c/Program\ Files/TeamViewer/Version7/*
	doins ${PN}

	fperms 755 /opt/${PN}/${PN}
	dosym /opt/${PN}/${PN} /opt/bin/${PN}

	doicon -s 48 .tvscript/${PN}.png

	dodoc linux_FAQ_{EN,DE}.txt
	dodoc CopyRights_{EN,DE}.txt

	make_desktop_entry ${PN} TeamViewer \
	/opt/${PN}/.tvscript/${PN}.png 'Network;'

}