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/
Date: Sun, 07 May 2017 14:27:09
Message-Id: 1494167197.cf8fdc86c028b6c9cfe787adb8d067d5483ff652.asturm@gentoo
1 commit: cf8fdc86c028b6c9cfe787adb8d067d5483ff652
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 7 14:13:33 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun May 7 14:26:37 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf8fdc86
7
8 kde-apps/kopete: Add kdepim-common-libs-4.14.11_pre20160611 compatibility
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.1
11
12 kde-apps/kopete/kopete-16.12.3-r2.ebuild | 165 +++++++++++++++++++++++++++++++
13 1 file changed, 165 insertions(+)
14
15 diff --git a/kde-apps/kopete/kopete-16.12.3-r2.ebuild b/kde-apps/kopete/kopete-16.12.3-r2.ebuild
16 new file mode 100644
17 index 00000000000..2d1386b13ac
18 --- /dev/null
19 +++ b/kde-apps/kopete/kopete-16.12.3-r2.ebuild
20 @@ -0,0 +1,165 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +KDE_HANDBOOK="optional"
27 +inherit kde4-base
28 +
29 +DESCRIPTION="KDE multi-protocol IM client"
30 +HOMEPAGE="https://kopete.kde.org https://www.kde.org/applications/internet/kopete"
31 +KEYWORDS="~amd64 ~arm ~x86"
32 +IUSE="debug ssl v4l"
33 +
34 +# tests hang, last checked for 4.2.96
35 +RESTRICT+=" test"
36 +
37 +# Available plugins
38 +#
39 +# addbookmarks: NO DEPS
40 +# alias: NO DEPS (disabled upstream)
41 +# autoreplace: NO DEPS
42 +# contactnotes: NO DEPS
43 +# cryptography: kde-apps/kdepim-common-libs:4 or kde-apps/libkleo:4
44 +# highlight: NO DEPS
45 +# history: NO DEPS
46 +# latex: virtual/latex as RDEPEND
47 +# nowlistening: NO DEPS
48 +# otr: libotr
49 +# pipes: NO DEPS
50 +# privacy: NO DEPS
51 +# statistics: dev-db/sqlite:3
52 +# texteffect: NO DEPS
53 +# translator: NO DEPS
54 +# urlpicpreview: NO DEPS
55 +# webpresence: libxml2 libxslt
56 +# NOTE: By default we enable all plugins that don't have any dependencies
57 +PLUGINS="+addbookmarks +autoreplace +contactnotes cryptography +highlight
58 ++history latex +nowlistening otr +pipes +privacy +statistics +texteffect
59 ++translator +urlpicpreview webpresence"
60 +
61 +# Available protocols
62 +#
63 +# gadu: net-libs/libgadu @since 4.3
64 +# groupwise: app-crypt/qca:2
65 +# irc: NO DEPS, probably will fail so inform user about it
66 +# xmpp: net-dns/libidn app-crypt/qca:2 ENABLED BY DEFAULT NETWORK
67 +# jingle: media-libs/speex net-libs/ortp DISABLED BY UPSTREAM
68 +# meanwhile: net-libs/meanwhile
69 +# oscar: NO DEPS
70 +# telepathy: net-libs/decibel
71 +# testbed: NO DEPS
72 +# winpopup: NO DEPS (we're adding samba as RDEPEND so it works)
73 +# yahoo: media-libs/jasper
74 +# zeroconf (bonjour): NO DEPS
75 +PROTOCOLS="gadu groupwise jingle meanwhile oscar skype
76 +testbed winpopup +xmpp yahoo zeroconf"
77 +
78 +# disabled protocols
79 +# telepathy: net-libs/decibel
80 +# irc: NO DEPS
81 +# msn: net-libs/libmsn
82 +# qq: NO DEPS
83 +
84 +IUSE="${IUSE} ${PLUGINS} ${PROTOCOLS}"
85 +
86 +COMMONDEPEND="
87 + $(add_kdeapps_dep kdepimlibs '' 4.14.10_p20160611)
88 + dev-libs/libpcre
89 + >=dev-qt/qtgui-4.4.0:4[mng]
90 + kde-frameworks/kdelibs:4[zeroconf?]
91 + media-libs/phonon[qt4]
92 + media-libs/qimageblitz[-qt5(-)]
93 + !aqua? (
94 + x11-libs/libX11
95 + x11-libs/libXScrnSaver
96 + )
97 + cryptography? (
98 + || (
99 + $(add_kdeapps_dep kdepim-common-libs)
100 + $(add_kdeapps_dep libkleo '' 4.4.2016.01-r1)
101 + )
102 + )
103 + gadu? ( >=net-libs/libgadu-1.8.0[threads] )
104 + groupwise? ( app-crypt/qca:2[qt4(+)] )
105 + jingle? (
106 + dev-libs/expat
107 + dev-libs/openssl:0
108 + >=media-libs/mediastreamer-2.3.0
109 + net-libs/libsrtp:=
110 + net-libs/ortp:=
111 + )
112 + meanwhile? ( net-libs/meanwhile )
113 + otr? ( >=net-libs/libotr-4.0.0 )
114 + statistics? ( dev-db/sqlite:3 )
115 + v4l? ( media-libs/libv4l )
116 + webpresence? (
117 + dev-libs/libxml2
118 + dev-libs/libxslt
119 + )
120 + xmpp? (
121 + app-crypt/qca:2[qt4(+)]
122 + dev-libs/qjson
123 + net-dns/libidn
124 + sys-libs/zlib
125 + )
126 + yahoo? ( media-libs/jasper )
127 +"
128 +RDEPEND="${COMMONDEPEND}
129 + !=kde-apps/kdepimlibs-4.14.11_pre20160211*
130 + jingle? ( media-libs/speex )
131 + latex? (
132 + virtual/imagemagick-tools
133 + virtual/latex-base
134 + )
135 + ssl? ( app-crypt/qca:2[ssl] )
136 + winpopup? ( net-fs/samba )
137 +"
138 +DEPEND="${COMMONDEPEND}
139 + jingle? ( dev-libs/jsoncpp )
140 + !aqua? ( x11-proto/scrnsaverproto )
141 +"
142 +
143 +PATCHES=( "${FILESDIR}/${PN}-17.04.0-kde4qgpgme.patch" )
144 +
145 +src_configure() {
146 + local x x2
147 + # Handle common stuff
148 + local mycmakeargs=(
149 + -DWITH_LiboRTP=$(usex jingle)
150 + -DWITH_Mediastreamer=$(usex jingle)
151 + -DDISABLE_VIDEOSUPPORT=$(usex !v4l)
152 + )
153 + # enable protocols
154 + for x in ${PROTOCOLS}; do
155 + case ${x/+/} in
156 + jingle) x2=libjingle ;;
157 + xmpp) x2=jabber ;;
158 + zeroconf) x2=bonjour ;;
159 + *) x2=${x/+/} ;;
160 + esac
161 + mycmakeargs+=( -DWITH_${x2}=$(usex ${x/+/}) )
162 + done
163 +
164 + mycmakeargs+=( -DWITH_Libmsn=OFF -DWITH_qq=OFF -DWITH_sms=OFF )
165 +
166 + # enable plugins
167 + for x in ${PLUGINS}; do
168 + mycmakeargs+=( -DWITH_${x/+/}=$(usex ${x/+/}) )
169 + done
170 +
171 + kde4-base_src_configure
172 +}
173 +
174 +pkg_postinst() {
175 + kde4-base_pkg_postinst
176 +
177 + if ! use ssl; then
178 + if use xmpp ; then # || use irc; then
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."
182 + fi
183 + fi
184 + fi
185 +}