Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/pidgin/
Date: Fri, 09 Jul 2021 06:08:32
Message-Id: 1625810788.6e9f174a6d35c5d27cf484429d4317e4925ef843.polynomial-c@gentoo
1 commit: 6e9f174a6d35c5d27cf484429d4317e4925ef843
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 9 06:06:28 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 9 06:06:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e9f174a
7
8 net-im/pidgin: Bump to version 2.14.6
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 net-im/pidgin/Manifest | 1 +
13 net-im/pidgin/pidgin-2.14.6.ebuild | 288 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 289 insertions(+)
15
16 diff --git a/net-im/pidgin/Manifest b/net-im/pidgin/Manifest
17 index 7142d50801c..74ee9ab83df 100644
18 --- a/net-im/pidgin/Manifest
19 +++ b/net-im/pidgin/Manifest
20 @@ -2,4 +2,5 @@ DIST pidgin-2.10.9-irc_join_sleep.patch 534 BLAKE2B 0215cebb93993e19e700e4d49743
21 DIST pidgin-2.14.3.tar.bz2 8688849 BLAKE2B 5d1f28ca5c452b13d2a6d6ab0c9101f14da3b5a291a838dab4b7cda99c76b3e411414b186ae493f08bd9764c65eab4b41eb9a45d340fe885f8bf9bf092911d43 SHA512 70f426900ce76afcdad76bcd06ebc320f562fe4089ec87c639d8d0d90823077f5e815932b62c3ff3da6270b3acfde3c8222d9b8c5cbb211421239c9dcc69b909
22 DIST pidgin-2.14.4.tar.bz2 8724096 BLAKE2B 674b8cc306b5179c95a546f13e7ec7c2a13a22ff2ab502460435e2449e1a9fdb9e33baf2d8b81867a40251e3fe004dce5a0a371deab70587c694a10c6419f89d SHA512 78550b7c4678242861bc0b0a3c32ab03c9fd6e4f509a9b83f872f2e201fe69617c8407d4cc90205e74598f1b8fdddfeddc8f59b47179524a7af7a241eaf1fa0b
23 DIST pidgin-2.14.5.tar.bz2 8696780 BLAKE2B 4563b6aabdaba8af7dd7a1f8978418bcdcc347fc10731606e44de537d2a451c9cec17d17c44d88e0eefda110927c471788ae6128a7e006666603bdc6d842c9b1 SHA512 3aa00156e73643c7a23bc3a1ff26ecd7ee89c0d91571a23bf00e54aa87f25d2b604990d33263e8f74f6499d8e08646aa524e14063e8000e60d1b49d74c5cc784
24 +DIST pidgin-2.14.6.tar.bz2 8672222 BLAKE2B d2e6428728f18096c957b10d7cc5e79704c0fbb403967e3968f59393db125307fc6fc84c90d66788b4a27bd9707b126c1f0df532c2a1e7d1b62356127e87371c SHA512 19ea12b6c9e99b6215a7d955f02d52ad19de8c4beb00806276c8c184d5cc338db119197e0cc9f4685705bd8b83f35c8f63565095b49a319f9696aab37735951b
25 DIST pidgin-eds-3.6.patch.bz2 2352 BLAKE2B 1d69dc55f43b9efe5d5278a017642702d67a297fe2587467ec0fdca7f9888e26640efe9ac2a18f77ae9c523bf125a2cec6d0bf621f0b2b16f55d30df1bf470df SHA512 a0195679ab55ed9c7ea18ace6dbf0fc994698f1f4eea9d8335dfdcdcd6a68975c0191bd22f150bf5a9a0a691ce7e9e73d79598e1e8be541efa1d9824a633d877
26
27 diff --git a/net-im/pidgin/pidgin-2.14.6.ebuild b/net-im/pidgin/pidgin-2.14.6.ebuild
28 new file mode 100644
29 index 00000000000..1d200e58f3c
30 --- /dev/null
31 +++ b/net-im/pidgin/pidgin-2.14.6.ebuild
32 @@ -0,0 +1,288 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +GENTOO_DEPEND_ON_PERL=no
39 +PYTHON_COMPAT=( python3_{7..9} )
40 +
41 +inherit autotools gnome2-utils flag-o-matic toolchain-funcs multilib perl-module python-single-r1 xdg
42 +
43 +DESCRIPTION="GTK Instant Messenger client"
44 +HOMEPAGE="https://pidgin.im/"
45 +SRC_URI="
46 + mirror://sourceforge/${PN}/${P}.tar.bz2
47 + https://gist.githubusercontent.com/imcleod/77f38d11af11b2413ada/raw/46e9d6cb4d2f839832dad2d697bb141a88028e04/pidgin-irc-join-sleep.patch -> ${PN}-2.10.9-irc_join_sleep.patch"
48 +
49 +LICENSE="GPL-2"
50 +SLOT="0/2" # libpurple version
51 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
52 +IUSE="aqua dbus debug doc eds gadu gnutls groupwise +gstreamer +gtk idn
53 +meanwhile ncurses networkmanager nls perl pie prediction python sasl spell tcl
54 +tk +xscreensaver zephyr zeroconf"
55 +
56 +# dbus requires python to generate C code for dbus bindings (thus DEPEND only).
57 +# finch uses libgnt that links with libpython - {R,}DEPEND. But still there is
58 +# no way to build dbus and avoid libgnt linkage with python. If you want this
59 +# send patch upstream.
60 +# purple-url-handler and purple-remote require dbus-python thus in reality we
61 +# rdepend on python if dbus enabled. But it is possible to separate this dep.
62 +RDEPEND="
63 + >=dev-libs/glib-2.16
64 + >=dev-libs/libxml2-2.6.18
65 + ncurses? (
66 + >=dev-libs/libgnt-$(ver_cut 1-2)
67 + sys-libs/ncurses:0=[unicode]
68 + dbus? ( ${PYTHON_DEPS} )
69 + python? ( ${PYTHON_DEPS} )
70 + )
71 + gtk? (
72 + >=x11-libs/gtk+-2.10:2[aqua=]
73 + x11-libs/libSM
74 + >=x11-libs/pango-1.4.0
75 + xscreensaver? ( x11-libs/libXScrnSaver )
76 + spell? ( >=app-text/gtkspell-2.0.2:2 )
77 + eds? ( >=gnome-extra/evolution-data-server-3.6:= )
78 + prediction? ( >=dev-db/sqlite-3.3:3 )
79 + )
80 + gstreamer? (
81 + media-libs/gstreamer:1.0
82 + media-libs/gst-plugins-base:1.0
83 + >=net-libs/farstream-0.2.7:0.2
84 + )
85 + zeroconf? ( net-dns/avahi[dbus] )
86 + dbus? (
87 + >=dev-libs/dbus-glib-0.71
88 + >=sys-apps/dbus-0.90
89 + $(python_gen_cond_dep '
90 + dev-python/dbus-python[${PYTHON_MULTI_USEDEP}]
91 + ')
92 + )
93 + perl? ( >=dev-lang/perl-5.16:= )
94 + gadu? ( >=net-libs/libgadu-1.11.0 )
95 + gnutls? ( net-libs/gnutls:= )
96 + !gnutls? (
97 + dev-libs/nspr
98 + dev-libs/nss
99 + )
100 + meanwhile? ( net-libs/meanwhile )
101 + tcl? ( dev-lang/tcl:0= )
102 + tk? ( dev-lang/tk:0= )
103 + sasl? ( dev-libs/cyrus-sasl:2 )
104 + networkmanager? ( net-misc/networkmanager )
105 + idn? ( net-dns/libidn:= )
106 +"
107 +
108 +# We want nls in case gtk is enabled, bug #
109 +NLS_DEPEND=">=dev-util/intltool-0.41.1 sys-devel/gettext"
110 +
111 +DEPEND="${RDEPEND}
112 + gtk? (
113 + x11-base/xorg-proto
114 + ${NLS_DEPEND}
115 + )
116 + dbus? ( ${PYTHON_DEPS} )
117 +"
118 +BDEPEND="
119 + dev-lang/perl
120 + dev-perl/XML-Parser
121 + virtual/pkgconfig
122 + doc? ( app-doc/doxygen )
123 + !gtk? ( nls? ( ${NLS_DEPEND} ) )
124 +"
125 +
126 +DOCS=( AUTHORS HACKING NEWS README ChangeLog )
127 +
128 +REQUIRED_USE="
129 + dbus? ( ${PYTHON_REQUIRED_USE} )
130 + networkmanager? ( dbus )
131 + python? ( ${PYTHON_REQUIRED_USE} )
132 +"
133 +
134 +# Enable Default protocols
135 +DYNAMIC_PRPLS="irc,jabber,simple"
136 +
137 +# List of plugins
138 +# app-accessibility/pidgin-festival
139 +# net-im/librvp
140 +# x11-plugins/guifications
141 +# x11-plugins/msn-pecan
142 +# x11-plugins/pidgin-encryption
143 +# x11-plugins/pidgin-extprefs
144 +# x11-plugins/pidgin-hotkeys
145 +# x11-plugins/pidgin-latex
146 +# x11-plugins/pidgintex
147 +# x11-plugins/pidgin-libnotify
148 +# x11-plugins/pidgin-mbpurple
149 +# x11-plugins/pidgin-bot-sentry
150 +# x11-plugins/pidgin-otr
151 +# x11-plugins/pidgin-rhythmbox
152 +# x11-plugins/purple-plugin_pack
153 +# x11-themes/pidgin-smileys
154 +# x11-plugins/pidgin-knotify
155 +# Plugins in Sunrise:
156 +# x11-plugins/pidgin-audacious-remote
157 +# x11-plugins/pidgin-autoanswer
158 +# x11-plugins/pidgin-birthday-reminder
159 +# x11-plugins/pidgin-blinklight
160 +# x11-plugins/pidgin-convreverse
161 +# x11-plugins/pidgin-embeddedvideo
162 +# x11-plugins/pidgin-extended-blist-sort
163 +# x11-plugins/pidgin-gfire
164 +# x11-plugins/pidgin-lastfm
165 +# x11-plugins/pidgin-sendscreenshot
166 +# x11-plugins/pidgimpd
167 +
168 +PATCHES=(
169 + "${DISTDIR}/${PN}-2.10.9-irc_join_sleep.patch" # 577286
170 + "${FILESDIR}/${PN}-2.13.0-disable-one-jid-test.patch" # 593338
171 +)
172 +
173 +pkg_pretend() {
174 + if ! use gtk && ! use ncurses ; then
175 + elog "You did not pick the ncurses or gtk use flags, only libpurple"
176 + elog "will be built."
177 + fi
178 +
179 + # dbus is enabled, no way to disable linkage with python => python is enabled
180 + #REQUIRED_USE="gtk? ( nls ) dbus? ( python )"
181 + if use gtk && ! use nls ; then
182 + ewarn "gtk build => nls is enabled!"
183 + fi
184 + if use dbus && ! use python ; then
185 + elog "dbus is enabled, no way to disable linkage with python => python is enabled"
186 + fi
187 +}
188 +
189 +pkg_setup() {
190 + if use python || use dbus ; then
191 + python-single-r1_pkg_setup
192 + fi
193 +}
194 +
195 +src_prepare() {
196 + default
197 + eautoreconf
198 +}
199 +
200 +src_configure() {
201 + # Stabilize things, for your own good
202 + strip-flags
203 + replace-flags -O? -O2
204 + use pie && append-cflags -fPIE -pie
205 +
206 + use gadu && DYNAMIC_PRPLS+=",gg"
207 + use groupwise && DYNAMIC_PRPLS+=",novell"
208 + use meanwhile && DYNAMIC_PRPLS+=",sametime"
209 + use zephyr && DYNAMIC_PRPLS+=",zephyr"
210 + use zeroconf && DYNAMIC_PRPLS+=",bonjour"
211 +
212 + local myconf=(
213 + --disable-mono
214 + --disable-static
215 + --with-dynamic-prpls="${DYNAMIC_PRPLS}"
216 + --with-system-ssl-certs="${EPREFIX}/etc/ssl/certs/"
217 + --x-includes="${EPREFIX}"/usr/include/X11
218 + $(use_enable ncurses consoleui)
219 + $(use_enable gtk gtkui)
220 + $(use_enable gtk sm)
221 + $(usex gtk '--enable-nls' "$(use_enable nls)")
222 + $(use gtk && use_enable xscreensaver screensaver)
223 + $(use gtk && use_enable prediction cap)
224 + $(use gtk && use_enable eds gevolution)
225 + $(use gtk && use_enable spell gtkspell)
226 + $(use_enable perl)
227 + $(use_enable tk)
228 + $(use_enable tcl)
229 + $(use_enable debug)
230 + $(use_enable dbus)
231 + $(use_enable meanwhile)
232 + $(use_enable gstreamer)
233 + $(use_with gstreamer gstreamer 1.0)
234 + $(use_enable gstreamer farstream)
235 + $(use_enable gstreamer vv)
236 + $(use_enable sasl cyrus-sasl )
237 + $(use_enable doc doxygen)
238 + $(use_enable networkmanager nm)
239 + $(use_enable zeroconf avahi)
240 + $(use_enable idn)
241 + )
242 +
243 + if use gnutls; then
244 + einfo "Disabling NSS, using GnuTLS"
245 + myconf+=(
246 + --enable-nss=no
247 + --enable-gnutls=yes
248 + --with-gnutls-includes="${EPREFIX}/usr/include/gnutls"
249 + --with-gnutls-libs="${EPREFIX}/usr/$(get_libdir)"
250 + )
251 + else
252 + einfo "Disabling GnuTLS, using NSS"
253 + myconf+=(
254 + --enable-gnutls=no
255 + --enable-nss=yes
256 + )
257 + fi
258 +
259 + if use dbus || { use ncurses && use python ; } ; then
260 + myconf+=( --with-python3=${PYTHON} )
261 + else
262 + myconf+=( --without-python3 )
263 + fi
264 +
265 + econf "${myconf[@]}"
266 +}
267 +
268 +src_install() {
269 + # setting this here because gnome2.eclass is not EAPI-7 ready
270 + export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
271 + default
272 +
273 + if use gtk ; then
274 + # Fix tray paths for e16 (x11-wm/enlightenment) and other
275 + # implementations that are not compliant with new hicolor theme yet, #323355
276 + local d f pixmapdir
277 + for d in 16 22 32 48 ; do
278 + pixmapdir="${ED}/usr/share/pixmaps/pidgin/tray/hicolor/${d}x${d}/actions"
279 + mkdir "${pixmapdir}" || die
280 + pushd "${pixmapdir}" >/dev/null || die
281 + for f in ../status/*; do
282 + ln -s ${f} || die
283 + done
284 + popd >/dev/null || die
285 + done
286 + fi
287 + use perl && perl_delete_localpod
288 +
289 + if use python || use dbus ; then
290 + python_fix_shebang "${ED}"
291 + python_optimize
292 + fi
293 +
294 + dodoc ${DOCS[@]} finch/plugins/pietray.py
295 + docompress -x /usr/share/doc/${PF}/pietray.py
296 +
297 + find "${ED}" -type f -name "*.la" -delete || die
298 +}
299 +
300 +src_test() {
301 + # make default build logs slightly more useful
302 + emake check VERBOSE=1
303 +}
304 +
305 +pkg_preinst() {
306 + gnome2_gconf_savelist
307 + xdg_pkg_preinst
308 +}
309 +
310 +pkg_postinst() {
311 + gnome2_gconf_install
312 + gnome2_schemas_update
313 + xdg_pkg_postinst
314 +}
315 +
316 +pkg_postrm() {
317 + gnome2_gconf_uninstall
318 + gnome2_schemas_update
319 + xdg_pkg_postrm
320 +}