Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/kopete/, kde-apps/kopete/files/
Date: Mon, 01 May 2017 08:03:49
Message-Id: 1493625747.a8850d17d0b4b533bc864b385164e20a5b4686f1.asturm@gentoo
1 commit: a8850d17d0b4b533bc864b385164e20a5b4686f1
2 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
3 AuthorDate: Sun Mar 5 19:20:22 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon May 1 08:02:27 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8850d17
7
8 kde-apps/kopete: Fix configure w/ >=kde-apps/kdepimlibs-4.14.10_p20160611
9
10 Update gpgme++ and qgpgme references.
11
12 Gentoo-bug: 611818
13
14 .../kopete/files/kopete-17.04.0-kde4qgpgme.patch | 56 +++++++
15 kde-apps/kopete/kopete-17.04.0-r1.ebuild | 165 +++++++++++++++++++++
16 2 files changed, 221 insertions(+)
17
18 diff --git a/kde-apps/kopete/files/kopete-17.04.0-kde4qgpgme.patch b/kde-apps/kopete/files/kopete-17.04.0-kde4qgpgme.patch
19 new file mode 100644
20 index 00000000000..6589f06027b
21 --- /dev/null
22 +++ b/kde-apps/kopete/files/kopete-17.04.0-kde4qgpgme.patch
23 @@ -0,0 +1,56 @@
24 +--- /CMakeLists.txt
25 ++++ /CMakeLists.txt
26 +@@ -98,8 +98,8 @@
27 + macro_optional_find_package(QJSON)
28 + macro_log_feature(QJSON_FOUND "QJSON" "JSON handling library for Qt" "http://qjson.sourceforge.net/" FALSE "" "Required for the Jabber protocol")
29 +
30 +-macro_optional_find_package(QGpgme)
31 +-macro_log_feature(QGPGME_FOUND "QGpgme" "QGpgME library (from kdepimlibs)" "http://www.kde.org/" FALSE "" "Required for the Cryptography plugin")
32 ++macro_optional_find_package(KDE4_QGpgme)
33 ++macro_log_feature(KDE4_QGPGME_FOUND "KDE4_QGpgme" "KDE4_QGpgME library (from kdepimlibs)" "http://www.kde.org/" FALSE "" "Required for the Cryptography plugin")
34 +
35 + macro_optional_find_package(Sqlite)
36 + macro_log_feature(SQLITE_FOUND "Sqlite" "SQLite is a Binary-Database" "http://www.sqlite.org/" FALSE "" "Required for the Statistic plugin")
37 +--- /plugins/CMakeLists.txt
38 ++++ /plugins/CMakeLists.txt
39 +@@ -74,6 +74,6 @@
40 + if (WITH_otr AND LIBOTR_FOUND)
41 + add_subdirectory ( otr )
42 + endif (WITH_otr AND LIBOTR_FOUND)
43 +-if (WITH_cryptography AND KLEOPATRA_FOUND AND QGPGME_FOUND)
44 ++if (WITH_cryptography AND KLEOPATRA_FOUND AND KDE4_QGPGME_FOUND)
45 + add_subdirectory ( cryptography )
46 +-endif (WITH_cryptography AND KLEOPATRA_FOUND AND QGPGME_FOUND)
47 ++endif (WITH_cryptography AND KLEOPATRA_FOUND AND KDE4_QGPGME_FOUND)
48 +--- /plugins/cryptography/CMakeLists.txt
49 ++++ /plugins/cryptography/CMakeLists.txt
50 +@@ -17,7 +17,7 @@
51 +
52 + kde4_add_plugin(kopete_cryptography ${kopete_cryptography_PART_SRCS})
53 +
54 +-target_link_libraries(kopete_cryptography ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} kopete ${KLEOPATRA_LIBRARIES} ${KDE4_KABC_LIBS} ${QGPGME_LIBRARIES} )
55 ++target_link_libraries(kopete_cryptography ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} kopete ${KLEOPATRA_LIBRARIES} ${KDE4_KABC_LIBS} ${KDE4_QGPGME_LIBRARIES} )
56 +
57 + install(TARGETS kopete_cryptography DESTINATION ${PLUGIN_INSTALL_DIR})
58 +
59 +--- /plugins/cryptography/cryptographyplugin.cpp
60 ++++ /plugins/cryptography/cryptographyplugin.cpp
61 +@@ -52,12 +52,12 @@
62 + #include <kleo/signjob.h>
63 + #include <kleo/keylistjob.h>
64 + #include <kleo/job.h>
65 +-#include <gpgme++/decryptionresult.h>
66 +-#include <gpgme++/verificationresult.h>
67 +-#include <gpgme++/keylistresult.h>
68 +-#include <gpgme++/signingresult.h>
69 +-#include <gpgme++/encryptionresult.h>
70 +-#include <gpgme++/key.h>
71 ++#include <kde4_gpgme++/decryptionresult.h>
72 ++#include <kde4_gpgme++/verificationresult.h>
73 ++#include <kde4_gpgme++/keylistresult.h>
74 ++#include <kde4_gpgme++/signingresult.h>
75 ++#include <kde4_gpgme++/encryptionresult.h>
76 ++#include <kde4_gpgme++/key.h>
77 +
78 + // kabc stuff
79 + #include <kabc/addressbook.h>
80
81 diff --git a/kde-apps/kopete/kopete-17.04.0-r1.ebuild b/kde-apps/kopete/kopete-17.04.0-r1.ebuild
82 new file mode 100644
83 index 00000000000..2a6b3f1f6d8
84 --- /dev/null
85 +++ b/kde-apps/kopete/kopete-17.04.0-r1.ebuild
86 @@ -0,0 +1,165 @@
87 +# Copyright 1999-2017 Gentoo Foundation
88 +# Distributed under the terms of the GNU General Public License v2
89 +
90 +EAPI=6
91 +
92 +KDE_HANDBOOK="optional"
93 +inherit kde4-base
94 +
95 +DESCRIPTION="KDE multi-protocol IM client"
96 +HOMEPAGE="https://kopete.kde.org https://www.kde.org/applications/internet/kopete"
97 +KEYWORDS="~amd64 ~arm ~x86"
98 +IUSE="debug ssl v4l"
99 +
100 +# tests hang, last checked for 4.2.96
101 +RESTRICT+=" test"
102 +
103 +# Available plugins
104 +#
105 +# addbookmarks: NO DEPS
106 +# alias: NO DEPS (disabled upstream)
107 +# autoreplace: NO DEPS
108 +# contactnotes: NO DEPS
109 +# cryptography: kde-apps/kdepim-common-libs:4 or kde-apps/libkleo:4
110 +# highlight: NO DEPS
111 +# history: NO DEPS
112 +# latex: virtual/latex as RDEPEND
113 +# nowlistening: NO DEPS
114 +# otr: libotr
115 +# pipes: NO DEPS
116 +# privacy: NO DEPS
117 +# statistics: dev-db/sqlite:3
118 +# texteffect: NO DEPS
119 +# translator: NO DEPS
120 +# urlpicpreview: NO DEPS
121 +# webpresence: libxml2 libxslt
122 +# NOTE: By default we enable all plugins that don't have any dependencies
123 +PLUGINS="+addbookmarks +autoreplace +contactnotes cryptography +highlight
124 ++history latex +nowlistening otr +pipes +privacy +statistics +texteffect
125 ++translator +urlpicpreview webpresence"
126 +
127 +# Available protocols
128 +#
129 +# gadu: net-libs/libgadu @since 4.3
130 +# groupwise: app-crypt/qca:2
131 +# irc: NO DEPS, probably will fail so inform user about it
132 +# xmpp: net-dns/libidn app-crypt/qca:2 ENABLED BY DEFAULT NETWORK
133 +# jingle: media-libs/speex net-libs/ortp DISABLED BY UPSTREAM
134 +# meanwhile: net-libs/meanwhile
135 +# oscar: NO DEPS
136 +# telepathy: net-libs/decibel
137 +# testbed: NO DEPS
138 +# winpopup: NO DEPS (we're adding samba as RDEPEND so it works)
139 +# yahoo: media-libs/jasper
140 +# zeroconf (bonjour): NO DEPS
141 +PROTOCOLS="gadu groupwise jingle meanwhile oscar skype
142 +testbed winpopup +xmpp yahoo zeroconf"
143 +
144 +# disabled protocols
145 +# telepathy: net-libs/decibel
146 +# irc: NO DEPS
147 +# msn: net-libs/libmsn
148 +# qq: NO DEPS
149 +
150 +IUSE="${IUSE} ${PLUGINS} ${PROTOCOLS}"
151 +
152 +COMMONDEPEND="
153 + $(add_kdeapps_dep kdepimlibs '' 4.14.10_p20160611)
154 + dev-libs/libpcre
155 + >=dev-qt/qtgui-4.4.0:4[mng]
156 + kde-frameworks/kdelibs:4[zeroconf?]
157 + media-libs/phonon[qt4]
158 + media-libs/qimageblitz
159 + !aqua? (
160 + x11-libs/libX11
161 + x11-libs/libXScrnSaver
162 + )
163 + cryptography? (
164 + || (
165 + $(add_kdeapps_dep kdepim-common-libs)
166 + $(add_kdeapps_dep libkleo '' 4.4.2016.01-r1)
167 + )
168 + )
169 + gadu? ( >=net-libs/libgadu-1.8.0[threads] )
170 + groupwise? ( app-crypt/qca:2[qt4(+)] )
171 + jingle? (
172 + dev-libs/expat
173 + dev-libs/openssl:0
174 + >=media-libs/mediastreamer-2.3.0
175 + net-libs/libsrtp:=
176 + net-libs/ortp:=
177 + )
178 + meanwhile? ( net-libs/meanwhile )
179 + otr? ( >=net-libs/libotr-4.0.0 )
180 + statistics? ( dev-db/sqlite:3 )
181 + v4l? ( media-libs/libv4l )
182 + webpresence? (
183 + dev-libs/libxml2
184 + dev-libs/libxslt
185 + )
186 + xmpp? (
187 + app-crypt/qca:2[qt4(+)]
188 + dev-libs/qjson
189 + net-dns/libidn
190 + sys-libs/zlib
191 + )
192 + yahoo? ( media-libs/jasper )
193 +"
194 +RDEPEND="${COMMONDEPEND}
195 + !=kde-apps/kdepimlibs-4.14.11_pre20160211*
196 + jingle? ( media-libs/speex )
197 + latex? (
198 + virtual/imagemagick-tools
199 + virtual/latex-base
200 + )
201 + ssl? ( app-crypt/qca:2[ssl] )
202 + winpopup? ( net-fs/samba )
203 +"
204 +DEPEND="${COMMONDEPEND}
205 + jingle? ( dev-libs/jsoncpp )
206 + !aqua? ( x11-proto/scrnsaverproto )
207 +"
208 +
209 +PATCHES=( "${FILESDIR}/${P}-kde4qgpgme.patch" )
210 +
211 +src_configure() {
212 + local x x2
213 + # Handle common stuff
214 + local mycmakeargs=(
215 + -DWITH_LiboRTP=$(usex jingle)
216 + -DWITH_Mediastreamer=$(usex jingle)
217 + -DDISABLE_VIDEOSUPPORT=$(usex !v4l)
218 + )
219 + # enable protocols
220 + for x in ${PROTOCOLS}; do
221 + case ${x/+/} in
222 + jingle) x2=libjingle ;;
223 + xmpp) x2=jabber ;;
224 + zeroconf) x2=bonjour ;;
225 + *) x2=${x/+/} ;;
226 + esac
227 + mycmakeargs+=( -DWITH_${x2}=$(usex ${x/+/}) )
228 + done
229 +
230 + mycmakeargs+=( -DWITH_Libmsn=OFF -DWITH_qq=OFF -DWITH_sms=OFF )
231 +
232 + # enable plugins
233 + for x in ${PLUGINS}; do
234 + mycmakeargs+=( -DWITH_${x/+/}=$(usex ${x/+/}) )
235 + done
236 +
237 + kde4-base_src_configure
238 +}
239 +
240 +pkg_postinst() {
241 + kde4-base_pkg_postinst
242 +
243 + if ! use ssl; then
244 + if use xmpp ; then # || use irc; then
245 + if ! has_version "app-crypt/qca:2[ssl]" ; then
246 + elog "In order to use ssl in xmpp you'll need to"
247 + elog "install app-crypt/qca package with USE=ssl."
248 + fi
249 + fi
250 + fi
251 +}