summaryrefslogtreecommitdiff
blob: 72a01a4c7894b40ce40cef39c97ba4c77b140844 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="CounterPath X-Lite - a free closed-source SIP Softphone Client for Linux"
HOMEPAGE="http://www.counterpath.net/index.php"
SRC_URI="http://www.counterpath.net/download/X-Lite_Install.tar.gz"

LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RESTRICT="strip"

RDEPEND="dev-libs/atk
	dev-libs/glib
	dev-libs/libxml2
	gnome-base/libglade
	x11-libs/gtk+
	|| ( x11-libs/libX11 virtual/x11 )
	x11-libs/pango
	sys-libs/zlib
	amd64? ( >=app-emulation/emul-linux-x86-baselibs-2.4.1
		 >=app-emulation/emul-linux-x86-xlibs-2.2.2
		 >=app-emulation/emul-linux-x86-compat-1.0-r1
		 >=app-emulation/emul-linux-x86-gtklibs-2.3 )"

S=${WORKDIR}/xten-xlite

dir="/opt/x-lite"

pkg_setup() {
	has_multilib_profile && ABI="x86"
}

src_install() {
	exeinto "${dir}"
	doexe xtensoftphone

	dodir /opt/bin
	dosym /opt/x-lite/xtensoftphone /opt/bin/xtensoftphone

	make_desktop_entry xtensoftphone X-Lite
	doicon ${FILESDIR}/x-lite.png

	dodoc README
}

pkg_postinst() {
	einfo ""
	einfo "Warning:"
	einfo "this is still a beta release!"
	einfo "if you need support please browse counterpath's forums:"
	einfo "http://support.counterpath.com/"
	einfo ""
}