summaryrefslogtreecommitdiff
blob: 41b6c496067f73c0c14d1b003b8495e4423b7302 (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
# 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
	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

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

src_install() {
	local dir="/opt/x-lite"
	exeinto "${dir}"
	doexe xtensoftphone

	dodir /opt/bin
	dosym ${dir}/xtensoftphone /opt/bin/xtensoftphone

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

	dodoc README
}

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