1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 ECM_HANDBOOK="forceoptional"
7 ECM_TEST="forceoptional"
13 DESCRIPTION="Multi-protocol IM client based on KDE Frameworks"
14 HOMEPAGE="https://kde.org/applications/internet/org.kde.kopete
15 https://userbase.kde.org/Kopete"
17 LICENSE="GPL-2" # TODO: CHECK
19 KEYWORDS="~amd64 ~arm64 ~x86"
23 # addbookmarks: NO DEPS
24 # alias: NO DEPS (disabled upstream)
25 # autoreplace: NO DEPS
26 # contactnotes: NO DEPS
27 # cryptography: BROKEN (app-crypt/gpgme[cxx,qt5], kde-apps/libkleo:5)
30 # latex: virtual/latex as RDEPEND
31 # nowlistening: NO DEPS
35 # statistics: dev-db/sqlite:3
38 # urlpicpreview: NO DEPS
39 # webpresence: libxml2 libxslt
40 # NOTE: By default we enable all plugins that don't have any dependencies
41 PLUGINS="+addbookmarks +autoreplace +contactnotes +highlight history latex nowlistening
42 otr pipes +privacy +statistics +texteffect translator +urlpicpreview webpresence"
45 # gadu: net-libs/libgadu @since 4.3
46 # groupwise: app-crypt/qca:2
47 # irc: NO DEPS, probably will fail so inform user about it
48 # xmpp: net-dns/libidn app-crypt/qca:2 ENABLED BY DEFAULT NETWORK
49 # meanwhile: net-libs/meanwhile
51 # telepathy: net-libs/decibel
53 # winpopup: NO DEPS (we're adding samba as RDEPEND so it works)
54 # zeroconf (bonjour): NO DEPS
55 PROTOCOLS="gadu groupwise meanwhile oscar testbed winpopup +xmpp zeroconf"
59 # jingle: media-libs/speex net-libs/ortp DISABLED BY UPSTREAM
61 # telepathy: net-libs/decibel
62 # skype, sms (until fixed)
64 IUSE="${IUSE} ${PLUGINS} ${PROTOCOLS}"
67 app-crypt/gpgme[cxx,qt5]
69 >=dev-qt/qtgui-${QTMIN}:5
70 >=dev-qt/qtsql-${QTMIN}:5
71 >=dev-qt/qtwidgets-${QTMIN}:5
72 >=dev-qt/qtxml-${QTMIN}:5
73 >=kde-apps/kidentitymanagement-${PVCUT}:5
74 >=kde-apps/libkleo-${PVCUT}:5
75 >=kde-frameworks/kcmutils-${KFMIN}:5
76 >=kde-frameworks/kconfig-${KFMIN}:5
77 >=kde-frameworks/kcontacts-${KFMIN}:5
78 >=kde-frameworks/kcrash-${KFMIN}:5
79 >=kde-frameworks/kdbusaddons-${KFMIN}:5
80 >=kde-frameworks/khtml-${KFMIN}:5
81 >=kde-frameworks/kcoreaddons-${KFMIN}:5
82 >=kde-frameworks/kdbusaddons-${KFMIN}:5
83 >=kde-frameworks/kdelibs4support-${KFMIN}:5
84 >=kde-frameworks/kemoticons-${KFMIN}:5
85 >=kde-frameworks/khtml-${KFMIN}:5
86 >=kde-frameworks/ki18n-${KFMIN}:5
87 >=kde-frameworks/knotifyconfig-${KFMIN}:5
88 >=kde-frameworks/kparts-${KFMIN}:5
89 >=kde-frameworks/ktexteditor-${KFMIN}:5
90 media-libs/phonon[qt5(+)]
92 x11-libs/libXScrnSaver
93 gadu? ( >=net-libs/libgadu-1.8.0[threads] )
94 groupwise? ( app-crypt/qca:2[qt5(+)] )
95 meanwhile? ( net-libs/meanwhile )
96 otr? ( >=net-libs/libotr-4.0.0 )
97 statistics? ( dev-db/sqlite:3 )
98 v4l? ( media-libs/libv4l )
104 app-crypt/qca:2[qt5(+)]
109 >=kde-apps/kidentitymanagement-${PVCUT}:5
110 >=kde-frameworks/kdnssd-${KFMIN}:5
115 # dev-libs/openssl:0=
116 # >=media-libs/mediastreamer-2.3.0
118 # net-libs/libsrtp:0=
121 RDEPEND="${COMMON_DEPEND}
124 media-gfx/imagemagick
125 media-gfx/graphicsmagick[imagemagick]
129 ssl? ( app-crypt/qca:2[ssl] )
131 # sms? ( app-mobilephone/smssend )
132 # winpopup? ( net-fs/samba )
133 DEPEND="${COMMON_DEPEND}
136 # jingle? ( dev-libs/jsoncpp )
138 # tests hang, last checked for 4.2.96
143 # Handle common stuff
146 -DDISABLE_VIDEOSUPPORT=$(usex !v4l)
148 # $(cmake_use_find_package jingle LiboRTP)
149 # $(cmake_use_find_package jingle Mediastreamer)
150 # $(cmake_use_find_package jingle Speex)
153 for x in ${PROTOCOLS}; do
155 jingle) x2=libjingle ;;
157 zeroconf) x2=bonjour ;;
160 mycmakeargs+=( -DWITH_${x2}=$(usex ${x/+/}) )
163 # disable until fixed:
164 mycmakeargs+=( -DWITH_{cryptography,libjingle,skype,sms}=OFF )
167 for x in ${PLUGINS}; do
168 mycmakeargs+=( -DWITH_${x/+/}=$(usex ${x/+/}) )
179 if ! has_version "app-crypt/qca:2[ssl]" ; then
180 elog "In order to use ssl in xmpp you'll need to"
181 elog "install app-crypt/qca package with USE=ssl."