1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 KDE_HANDBOOK="optional"
10 DESCRIPTION="KDE multi-protocol IM client"
11 HOMEPAGE="https://kopete.kde.org https://www.kde.org/applications/internet/kopete"
12 KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-linux ~x86-linux"
15 # tests hang, last checked for 4.2.96
20 # addbookmarks: NO DEPS
21 # alias: NO DEPS (disabled upstream)
22 # autoreplace: NO DEPS
23 # contactnotes: NO DEPS
26 # latex: virtual/latex as RDEPEND
27 # nowlistening: NO DEPS
31 # statistics: dev-db/sqlite:3
34 # urlpicpreview: NO DEPS
35 # webpresence: libxml2 libxslt
36 # NOTE: By default we enable all plugins that don't have any dependencies
37 PLUGINS="+addbookmarks +autoreplace +contactnotes +highlight +history latex
38 +nowlistening otr +pipes +privacy +statistics +texteffect +translator
39 +urlpicpreview webpresence"
43 # gadu: net-libs/libgadu @since 4.3
44 # groupwise: app-crypt/qca:2
45 # irc: NO DEPS, probably will fail so inform user about it
46 # xmpp: net-dns/libidn app-crypt/qca:2 ENABLED BY DEFAULT NETWORK
47 # jingle: media-libs/speex net-libs/ortp DISABLED BY UPSTREAM
48 # meanwhile: net-libs/meanwhile
50 # telepathy: net-libs/decibel
52 # winpopup: NO DEPS (we're adding samba as RDEPEND so it works)
53 # yahoo: media-libs/jasper
54 # zeroconf (bonjour): NO DEPS
55 PROTOCOLS="gadu groupwise jingle meanwhile oscar skype
56 sms testbed winpopup +xmpp yahoo zeroconf"
59 # telepathy: net-libs/decibel
61 # msn: net-libs/libmsn
64 IUSE="${IUSE} ${PLUGINS} ${PROTOCOLS}"
68 $(add_kdebase_dep kdelibs 'zeroconf?')
69 $(add_kdebase_dep kdepimlibs)
70 media-libs/qimageblitz
71 >=dev-qt/qtgui-4.4.0:4[mng]
72 !aqua? ( x11-libs/libXScrnSaver )
73 gadu? ( >=net-libs/libgadu-1.8.0[threads] )
74 groupwise? ( app-crypt/qca:2[qt4(+)] )
76 >=media-libs/mediastreamer-2.3.0
80 meanwhile? ( net-libs/meanwhile )
81 otr? ( >=net-libs/libotr-4.0.0 )
82 statistics? ( dev-db/sqlite:3 )
83 v4l? ( media-libs/libv4l )
89 app-crypt/qca:2[qt4(+)]
92 yahoo? ( media-libs/jasper )
94 RDEPEND="${COMMONDEPEND}
98 media-gfx/graphicsmagick[imagemagick]
102 sms? ( app-mobilephone/smssend )
103 ssl? ( app-crypt/qca:2[openssl] )
104 winpopup? ( net-fs/samba )
106 # telepathy? ( net-libs/decibel )"
107 DEPEND="${COMMONDEPEND}
108 !aqua? ( x11-proto/scrnsaverproto )
113 # Handle common stuff
115 $(cmake-utils_use_with jingle GOOGLETALK)
116 $(cmake-utils_use_with jingle LiboRTP)
117 $(cmake-utils_use_with jingle Mediastreamer)
118 $(cmake-utils_use_with jingle Speex)
119 $(cmake-utils_use_disable v4l VIDEOSUPPORT)
122 for x in ${PROTOCOLS}; do
124 zeroconf) x2=bonjour ;;
128 mycmakeargs+=($(cmake-utils_use_with ${x/+/} ${x2}))
131 mycmakeargs+=( -DWITH_Libmsn=OFF -DWITH_qq=OFF )
134 for x in ${PLUGINS}; do
135 mycmakeargs+=($(cmake-utils_use_with ${x/+/}))
138 kde4-base_src_configure
142 kde4-base_pkg_postinst
144 #if use telepathy; then
145 # elog "To use kopete telepathy plugins, you need to start gabble first:"
146 # elog "GABBLE_PERSIST=1 telepathy-gabble &"
147 # elog "export TELEPATHY_DATA_PATH='${EPREFIX}/usr/share/telepathy/managers/'"
151 if use xmpp ; then # || use irc; then
152 if ! has_version "app-crypt/qca:2[openssl]" ; then
153 elog "In order to use ssl in xmpp you'll need to"
154 elog "install app-crypt/qca package with USE=openssl."