| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-im/kadu/kadu-0.12.0.ebuild,v 1.5 2012/09/15 10:51:55 ago Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
inherit base cmake-utils flag-o-matic
|
| 8 |
|
| 9 |
MY_P="${P/_/-}"
|
| 10 |
|
| 11 |
DESCRIPTION="An open source Gadu-Gadu and Jabber/XMPP protocol Instant Messenger client."
|
| 12 |
HOMEPAGE="http://www.kadu.net"
|
| 13 |
SRC_URI="http://download.kadu.im/stable/${MY_P}.tar.bz2"
|
| 14 |
|
| 15 |
LICENSE="GPL-2"
|
| 16 |
KEYWORDS="amd64 ppc x86"
|
| 17 |
SLOT="0"
|
| 18 |
IUSE="ayatana +gadu mpd phonon sdk speech spell xmpp"
|
| 19 |
REQUIRED_USE="
|
| 20 |
|| (
|
| 21 |
gadu
|
| 22 |
xmpp
|
| 23 |
)
|
| 24 |
"
|
| 25 |
COMMON_DEPEND="
|
| 26 |
>=app-crypt/qca-2.0.0-r2
|
| 27 |
x11-libs/libX11
|
| 28 |
x11-libs/libXfixes
|
| 29 |
x11-libs/libXScrnSaver
|
| 30 |
>=x11-libs/qt-dbus-4.7.0:4
|
| 31 |
>=x11-libs/qt-gui-4.7.0:4
|
| 32 |
<x11-libs/qt-gui-4.8.3:4
|
| 33 |
>=x11-libs/qt-script-4.7.0:4
|
| 34 |
>=x11-libs/qt-sql-4.7.0:4[sqlite]
|
| 35 |
>=x11-libs/qt-webkit-4.7.0:4
|
| 36 |
ayatana? ( dev-libs/libindicate-qt )
|
| 37 |
gadu? (
|
| 38 |
>=net-libs/libgadu-1.11.1[threads]
|
| 39 |
>=x11-libs/qt-xmlpatterns-4.7.0:4
|
| 40 |
)
|
| 41 |
mpd? ( media-libs/libmpdclient )
|
| 42 |
phonon? (
|
| 43 |
|| (
|
| 44 |
media-libs/phonon
|
| 45 |
>=x11-libs/qt-phonon-4.7.0:4
|
| 46 |
)
|
| 47 |
)
|
| 48 |
spell? ( app-text/enchant )
|
| 49 |
xmpp? (
|
| 50 |
net-dns/libidn
|
| 51 |
sys-libs/zlib
|
| 52 |
)
|
| 53 |
"
|
| 54 |
DEPEND="${COMMON_DEPEND}
|
| 55 |
x11-proto/fixesproto
|
| 56 |
x11-proto/scrnsaverproto
|
| 57 |
x11-proto/xproto
|
| 58 |
"
|
| 59 |
RDEPEND="${COMMON_DEPEND}
|
| 60 |
app-crypt/qca-ossl:2
|
| 61 |
>=x11-libs/qt-svg-4.7.0:4
|
| 62 |
speech? ( app-accessibility/powiedz )
|
| 63 |
"
|
| 64 |
|
| 65 |
PLUGINS='amarok1_mediaplayer antistring auto_hide autoaway autoresponder autostatus cenzor chat_notify config_wizard desktop_docking docking encryption_ng encryption_ng_simlite 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'
|
| 66 |
|
| 67 |
src_configure() {
|
| 68 |
# Filter out dangerous flags
|
| 69 |
filter-flags -fno-rtti
|
| 70 |
strip-unsupported-flags
|
| 71 |
|
| 72 |
# Ensure -DQT_NO_DEBUG is added
|
| 73 |
append-cppflags -DQT_NO_DEBUG
|
| 74 |
|
| 75 |
# Plugin selection
|
| 76 |
if use gadu; then
|
| 77 |
PLUGINS+=' gadu_protocol history_migration profiles_import'
|
| 78 |
fi
|
| 79 |
|
| 80 |
use mpd && PLUGINS+=' mpd_mediaplayer'
|
| 81 |
use xmpp && PLUGINS+=' jabber_protocol'
|
| 82 |
use phonon && PLUGINS+=' phonon_sound'
|
| 83 |
use speech && PLUGINS+=' speech'
|
| 84 |
use spell && PLUGINS+=' spellchecker'
|
| 85 |
|
| 86 |
# Configure package
|
| 87 |
local mycmakeargs=(
|
| 88 |
-DBUILD_DESCRIPTION='Gentoo Linux'
|
| 89 |
-DCOMPILE_PLUGINS="${PLUGINS}"
|
| 90 |
-DNETWORK_IMPLEMENTATION="Qt"
|
| 91 |
-DSIG_HANDLING_ENABLED=TRUE
|
| 92 |
$(cmake-utils_use sdk INSTALL_SDK)
|
| 93 |
$(cmake-utils_use_with ayatana INDICATE_QT)
|
| 94 |
$(cmake-utils_use_with spell ENCHANT)
|
| 95 |
)
|
| 96 |
unset PLUGINS
|
| 97 |
|
| 98 |
cmake-utils_src_configure
|
| 99 |
}
|