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