blob: b32da641392b6e70748bc9b1d6af65eb3a482502 (
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/kadu/kadu-0.6.5.3-r1.ebuild,v 1.3 2009/11/04 17:25:30 maekke Exp $
EAPI="2"
inherit base cmake-utils flag-o-matic
DESCRIPTION="QT client for popular in Poland Gadu-Gadu instant messaging network"
HOMEPAGE="http://www.kadu.net"
SRC_URI="http://www.kadu.net/download/stable/${P}.tar.bz2"
LICENSE="GPL-2"
KEYWORDS="amd64 ppc x86"
SLOT="0"
IUSE="alsa ao kde oss phonon speech spell +ssl"
DEPEND="
>=app-crypt/qca-2.0.0-r2
>=media-libs/libsndfile-1.0
>=net-libs/libgadu-1.8[threads]
>=x11-libs/qt-dbus-4.4:4
>=x11-libs/qt-gui-4.4:4[qt3support]
>=x11-libs/qt-webkit-4.4:4
alsa? ( media-libs/alsa-lib )
ao? ( media-libs/libao )
phonon? (
!kde? (
|| (
>=x11-libs/qt-phonon-4.4:4
media-sound/phonon
)
)
kde? ( media-sound/phonon )
)
spell? ( app-text/aspell )
"
RDEPEND="${DEPEND}
speech? ( app-accessibility/powiedz )
ssl? ( app-crypt/qca-ossl:2 )
"
S="${WORKDIR}/${PN}"
PATCHES=(
"${FILESDIR}/libgsm-ugly-code.patch"
"${FILESDIR}/${P}-linkage.patch"
)
# set given .config variable to =m or =y
# args: <variable> <m/y>
config_enable() {
sed -i -e "s/^\(${1}=\)./\1${2}/" .config || die "config_enable failed"
}
src_prepare() {
# Autopatcher
base_src_prepare
# Create .config file with all variables defaulted to =n
sed -i -n -e "s/=\(m\|y\)/=n/" -e "/^[a-z]/p" .config \
|| die ".config creation failed"
# Common modules
config_enable module_account_management m
config_enable module_advanced_userlist m
config_enable module_antistring m
config_enable module_auto_hide m
config_enable module_autoaway m
config_enable module_autoresponder m
config_enable module_autostatus m
config_enable module_cenzor m
config_enable module_config_wizard m
config_enable module_dcc m
config_enable module_default_sms m
config_enable module_desktop_docking m
config_enable module_docking m
config_enable module_echo m
config_enable module_exec_notify m
config_enable module_ext_sound m
config_enable module_filedesc m
config_enable module_filtering m
config_enable module_firewall m
config_enable module_gg_avatars m
config_enable module_hints m
config_enable module_history m
config_enable module_idle m
config_enable module_last_seen m
config_enable module_notify m
config_enable module_parser_extender m
config_enable module_pcspeaker m
config_enable module_qt4_docking m
config_enable module_screenshot m
config_enable module_sms m
config_enable module_sound m
config_enable module_voice m
config_enable module_waather m
config_enable module_window_notify m
config_enable module_word_fix m
# Autodownloaded modules
config_enable module_nextinfo m
config_enable module_tabs m
config_enable module_plus_pl_sms m
# Media players - no build time deps so build them all
# bmpx_mediaplayer
config_enable module_mediaplayer m
config_enable module_amarok1_mediaplayer m
config_enable module_amarok2_mediaplayer m
config_enable module_audacious_mediaplayer m
config_enable module_dragon_mediaplayer m
# falf_mediaplayer
# itunes_mediaplayer
config_enable module_vlc_mediaplayer m
# xmms2_mediaplayer
# xmms_mediaplayer
# Audio outputs
use alsa && config_enable module_alsa_sound m
use ao && config_enable module_ao_sound m
use oss && config_enable module_dsp_sound m
use phonon && config_enable module_phonon_sound m
# Misc stuff
# Broken QtDBus link import, disabling
# use kde && config_enable module_kde_notify m
use speech && config_enable module_speech m
use spell && config_enable module_spellchecker m
use ssl && config_enable module_encryption m
# Icons
config_enable icons_default y
# Uncomment when available
# config_enable icons_glass16 y
# config_enable icons_glass22 y
# config_enable icons_kadu05 y
# config_enable icons_oxygen16 y
# config_enable icons_tango16 y
# Emoticons
config_enable emoticons_penguins y
# Uncomment when available
# config_enable emoticons_gg6_compatible y
# config_enable emoticons_tango y
# Sound themes
config_enable sound_default y
# Uncomment when available
# config_enable sound_bns y
# config_enable sound_drums y
# config_enable sound_florkus y
# config_enable sound_michalsrodek y
# config_enable sound_percussion y
# config_enable sound_ultr y
}
src_configure() {
# Filter out dangerous flags
filter-flags -fno-rtti
strip-unsupported-flags
# Ensure -DQT_NO_DEBUG is added
append-cppflags -DQT_NO_DEBUG
# Configure package
mycmakeargs="${mycmakeargs}
-DBUILD_DESCRIPTION='Gentoo Linux'
-DENABLE_AUTODOWNLOAD=ON
"
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
# delete unneeded .a files from modules directory
rm -f "${D}"/usr/lib*/kadu/modules/*.a
}
|