blob: 8f68cc166df6b1e93fd9e11d3e3243c765aa896b (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/kadu/kadu-0.10.0.ebuild,v 1.1 2011/09/29 20:37:27 reavertm Exp $
EAPI="4"
inherit base cmake-utils flag-o-matic
MY_P="${P/_/-}"
DESCRIPTION="An open source Gadu-Gadu and Jabber/XMPP protocol Instant Messenger client."
HOMEPAGE="http://www.kadu.net"
SRC_URI="http://download.kadu.im/stable/${MY_P}.tar.bz2"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~x86"
SLOT="0"
IUSE="+gadu kde phonon speech spell +ssl xmpp"
REQUIRED_USE="
|| (
gadu
xmpp
)
"
COMMON_DEPEND="
>=app-crypt/qca-2.0.0-r2
>=media-libs/libsndfile-1.0
>=net-libs/libgadu-1.11.0[threads]
x11-libs/libXfixes
x11-libs/libXScrnSaver
>=x11-libs/qt-dbus-4.4:4
>=x11-libs/qt-gui-4.4:4[qt3support]
>=x11-libs/qt-script-4.4:4
>=x11-libs/qt-sql-4.4:4[sqlite]
>=x11-libs/qt-svg-4.4:4
>=x11-libs/qt-webkit-4.4:4
gadu? ( >=x11-libs/qt-xmlpatterns-4.4:4 )
kde? ( >=kde-base/kdelibs-4.3.3 )
phonon? (
!kde? (
|| (
>=x11-libs/qt-phonon-4.4:4
media-libs/phonon
)
)
kde? ( media-libs/phonon )
)
spell? ( app-text/enchant )
xmpp? ( net-dns/libidn )
"
DEPEND="${COMMON_DEPEND}
xmpp? ( dev-util/automoc )
x11-proto/fixesproto
x11-proto/scrnsaverproto
"
RDEPEND="${COMMON_DEPEND}
speech? ( app-accessibility/powiedz )
ssl? ( app-crypt/qca-ossl:2 )
"
PATCHES=(
"${FILESDIR}/${P}-cmake.patch"
)
PLUGINS='amarok1_mediaplayer antistring auto_hide autoaway autoresponder
autostatus cenzor chat_notify config_wizard desktop_docking docking exec_notify
ext_sound falf_mediaplayer filedesc firewall freedesktop_notify hints history
idle imagelink last_seen mediaplayer mprisplayer_mediaplayer pcspeaker qt4_docking
qt4_docking_notify screenshot simpleview single_window sms sound sql_history tabs
word_fix'
src_configure() {
# Filter out dangerous flags
filter-flags -fno-rtti
strip-unsupported-flags
# Ensure -DQT_NO_DEBUG is added
append-cppflags -DQT_NO_DEBUG
# Plugin selection
if use gadu; then
PLUGINS+=' gadu_protocol history_migration profiles_import'
fi
use xmpp && PLUGINS+=' jabber_protocol'
use phonon && PLUGINS+=' phonon_sound'
use speech && PLUGINS+=' speech'
use spell && PLUGINS+=' spellchecker'
if use ssl; then
PLUGINS+=' encryption_ng encryption_ng_simlite'
fi
# COMPILE_PLUGINS isn't the most flexible..
local compile_plugins=
for plugin in ${PLUGINS}; do
[[ -n ${compile_plugins} ]] && compile_plugins+=','
compile_plugins+="${plugin}"
done
unset PLUGINS
# Configure package
local mycmakeargs=(
-DBUILD_DESCRIPTION='Gentoo Linux'
-DCOMPILE_PLUGINS="${compile_plugins}"
$(cmake-utils_use_with spell ENCHANT)
)
unset compile_plugins
cmake-utils_src_configure
}
|