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/, net-im/pidgin/files/
Date: Fri, 29 Apr 2022 07:05:16
Message-Id: 1651215902.6f24a5c69cd4538e3b0cffcacd6c621f3f158f1d.polynomial-c@gentoo
1 commit: 6f24a5c69cd4538e3b0cffcacd6c621f3f158f1d
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 29 07:04:32 2022 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 29 07:05:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f24a5c6
7
8 net-im/pidgin: Removed old
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 .../files/pidgin-2.14.8-libpurple_test_fix.patch | 52 ----
13 net-im/pidgin/pidgin-2.14.8-r1.ebuild | 291 ---------------------
14 net-im/pidgin/pidgin-2.14.9.ebuild | 3 +-
15 3 files changed, 1 insertion(+), 345 deletions(-)
16
17 diff --git a/net-im/pidgin/files/pidgin-2.14.8-libpurple_test_fix.patch b/net-im/pidgin/files/pidgin-2.14.8-libpurple_test_fix.patch
18 deleted file mode 100644
19 index 30caaa92e9c5..000000000000
20 --- a/net-im/pidgin/files/pidgin-2.14.8-libpurple_test_fix.patch
21 +++ /dev/null
22 @@ -1,52 +0,0 @@
23 -# HG changeset patch
24 -# Node ID e8f8e1558e11
25 -# Parent 930e4fb71321
26 -diff --git a/libpurple/tests/test_util.c b/libpurple/tests/test_util.c
27 ---- a/libpurple/tests/test_util.c
28 -+++ b/libpurple/tests/test_util.c
29 -@@ -172,7 +172,7 @@
30 - fail_unless(1282941722 == purple_str_to_time("2010-08-27.204202", TRUE, NULL, NULL, NULL));
31 - fail_unless(1175919261 == purple_str_to_time("20070407T04:14:21.3234", TRUE, NULL, NULL, NULL));
32 - fail_unless(1175919261 == purple_str_to_time("20070407T04:14:21Z", TRUE, NULL, NULL, NULL));
33 -- fail_unless(1631512800 == purple_str_to_time("09-13-2021", TRUE, NULL, NULL, NULL));
34 -+ fail_unless(1631491200 == purple_str_to_time("09-13-2021", TRUE, NULL, NULL, NULL));
35 -
36 - /* For testing local time we use Asia/Kathmandu because it's +05:45 and
37 - * doesn't have DST which means the test should always pass regardless of
38 -@@ -195,9 +195,14 @@
39 - * localtime.
40 - */
41 - timestamp = purple_str_to_time("09/13/202115:34:34", TRUE, NULL, NULL, &rest);
42 -- fail_unless(1631470500 == timestamp);
43 -+ fail_unless(1631491200 == timestamp);
44 - assert_string_equal("15:34:34", rest);
45 -
46 -+ timestamp = purple_str_to_time("2010-08-27.134202-0700PDT", FALSE, &tm, &tz_off, &rest);
47 -+ fail_unless(1282941722 == timestamp);
48 -+ fail_unless((-7 * 60 * 60) == tz_off);
49 -+ assert_string_equal("PDT", rest);
50 -+
51 - /* finally revert the TZ environment variable */
52 - if(oldtz != NULL) {
53 - g_setenv("TZ", oldtz, TRUE);
54 -diff --git a/libpurple/util.c b/libpurple/util.c
55 ---- a/libpurple/util.c
56 -+++ b/libpurple/util.c
57 -@@ -887,6 +887,17 @@
58 - t.tm_isdst = -1; /* -1 means dst info is not available */
59 - }
60 - }
61 -+ } else {
62 -+ /* If we have a time, figure out if we need to adjust our tz offset. */
63 -+ if(!mktime_with_utc) {
64 -+ if(utc) {
65 -+ mktime_with_utc = TRUE;
66 -+ tzoff = 0;
67 -+ } else {
68 -+ /* Local Time */
69 -+ t.tm_isdst = -1; /* -1 means dst info is not available */
70 -+ }
71 -+ }
72 - }
73 -
74 - g_free(hours);
75
76 diff --git a/net-im/pidgin/pidgin-2.14.8-r1.ebuild b/net-im/pidgin/pidgin-2.14.8-r1.ebuild
77 deleted file mode 100644
78 index 028282d415c0..000000000000
79 --- a/net-im/pidgin/pidgin-2.14.8-r1.ebuild
80 +++ /dev/null
81 @@ -1,291 +0,0 @@
82 -# Copyright 1999-2022 Gentoo Authors
83 -# Distributed under the terms of the GNU General Public License v2
84 -
85 -EAPI=7
86 -
87 -GENTOO_DEPEND_ON_PERL=no
88 -PYTHON_COMPAT=( python3_{8..9} )
89 -
90 -inherit autotools gnome2-utils flag-o-matic toolchain-funcs multilib perl-module python-single-r1 xdg
91 -
92 -DESCRIPTION="GTK Instant Messenger client"
93 -HOMEPAGE="https://pidgin.im/"
94 -SRC_URI="
95 - mirror://sourceforge/${PN}/${P}.tar.bz2
96 - https://gist.githubusercontent.com/imcleod/77f38d11af11b2413ada/raw/46e9d6cb4d2f839832dad2d697bb141a88028e04/pidgin-irc-join-sleep.patch -> ${PN}-2.10.9-irc_join_sleep.patch"
97 -
98 -LICENSE="GPL-2"
99 -SLOT="0/2" # libpurple version
100 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
101 -IUSE="aqua dbus debug doc eds gadu gnutls groupwise +gstreamer +gtk idn
102 -meanwhile ncurses networkmanager nls perl pie prediction python sasl spell tcl
103 -tk v4l +xscreensaver zephyr zeroconf"
104 -
105 -# dbus requires python to generate C code for dbus bindings (thus DEPEND only).
106 -# finch uses libgnt that links with libpython - {R,}DEPEND. But still there is
107 -# no way to build dbus and avoid libgnt linkage with python. If you want this
108 -# send patch upstream.
109 -# purple-url-handler and purple-remote require dbus-python thus in reality we
110 -# rdepend on python if dbus enabled. But it is possible to separate this dep.
111 -RDEPEND="
112 - >=dev-libs/glib-2.16
113 - >=dev-libs/libxml2-2.6.18
114 - dbus? (
115 - >=dev-libs/dbus-glib-0.71
116 - >=sys-apps/dbus-0.90
117 - $(python_gen_cond_dep '
118 - dev-python/dbus-python[${PYTHON_USEDEP}]
119 - ')
120 - )
121 - gadu? ( >=net-libs/libgadu-1.11.0 )
122 - gnutls? ( net-libs/gnutls:= )
123 - !gnutls? (
124 - dev-libs/nspr
125 - dev-libs/nss
126 - )
127 - gstreamer? (
128 - media-libs/gstreamer:1.0
129 - media-libs/gst-plugins-base:1.0
130 - >=net-libs/farstream-0.2.7:0.2
131 - )
132 - gtk? (
133 - >=x11-libs/gtk+-2.10:2[aqua=]
134 - x11-libs/libSM
135 - >=x11-libs/pango-1.4.0
136 - xscreensaver? ( x11-libs/libXScrnSaver )
137 - spell? ( >=app-text/gtkspell-2.0.2:2 )
138 - eds? ( >=gnome-extra/evolution-data-server-3.6:= )
139 - prediction? ( >=dev-db/sqlite-3.3:3 )
140 - )
141 - idn? ( net-dns/libidn:= )
142 - meanwhile? ( net-libs/meanwhile )
143 - ncurses? (
144 - >=dev-libs/libgnt-$(ver_cut 1-2)
145 - sys-libs/ncurses:=[unicode(+)]
146 - dbus? ( ${PYTHON_DEPS} )
147 - python? ( ${PYTHON_DEPS} )
148 - )
149 - networkmanager? ( net-misc/networkmanager )
150 - perl? ( >=dev-lang/perl-5.16:= )
151 - sasl? ( dev-libs/cyrus-sasl:2 )
152 - tcl? ( dev-lang/tcl:0= )
153 - tk? ( dev-lang/tk:0= )
154 - v4l? ( media-plugins/gst-plugins-v4l2 )
155 - zeroconf? ( net-dns/avahi[dbus] )
156 -"
157 -
158 -# We want nls in case gtk is enabled, bug #
159 -NLS_DEPEND=">=dev-util/intltool-0.41.1 sys-devel/gettext"
160 -
161 -DEPEND="${RDEPEND}
162 - gtk? (
163 - x11-base/xorg-proto
164 - ${NLS_DEPEND}
165 - )
166 - dbus? ( ${PYTHON_DEPS} )
167 -"
168 -BDEPEND="
169 - dev-lang/perl
170 - dev-perl/XML-Parser
171 - virtual/pkgconfig
172 - doc? ( app-doc/doxygen )
173 - !gtk? ( nls? ( ${NLS_DEPEND} ) )
174 -"
175 -
176 -DOCS=( AUTHORS HACKING NEWS README ChangeLog )
177 -
178 -REQUIRED_USE="
179 - dbus? ( ${PYTHON_REQUIRED_USE} )
180 - networkmanager? ( dbus )
181 - python? ( ${PYTHON_REQUIRED_USE} )
182 - v4l? ( gstreamer )
183 -"
184 -
185 -# Enable Default protocols
186 -DYNAMIC_PRPLS="irc,jabber,simple"
187 -
188 -# List of plugins
189 -# app-accessibility/pidgin-festival
190 -# net-im/librvp
191 -# x11-plugins/guifications
192 -# x11-plugins/msn-pecan
193 -# x11-plugins/pidgin-encryption
194 -# x11-plugins/pidgin-extprefs
195 -# x11-plugins/pidgin-hotkeys
196 -# x11-plugins/pidgintex
197 -# x11-plugins/pidgin-libnotify
198 -# x11-plugins/pidgin-mbpurple
199 -# x11-plugins/pidgin-bot-sentry
200 -# x11-plugins/pidgin-otr
201 -# x11-plugins/pidgin-rhythmbox
202 -# x11-plugins/purple-plugin_pack
203 -# x11-themes/pidgin-smileys
204 -# x11-plugins/pidgin-knotify
205 -# Plugins in Sunrise:
206 -# x11-plugins/pidgin-audacious-remote
207 -# x11-plugins/pidgin-autoanswer
208 -# x11-plugins/pidgin-birthday-reminder
209 -# x11-plugins/pidgin-blinklight
210 -# x11-plugins/pidgin-convreverse
211 -# x11-plugins/pidgin-embeddedvideo
212 -# x11-plugins/pidgin-extended-blist-sort
213 -# x11-plugins/pidgin-gfire
214 -# x11-plugins/pidgin-lastfm
215 -# x11-plugins/pidgin-sendscreenshot
216 -# x11-plugins/pidgimpd
217 -
218 -PATCHES=(
219 - "${DISTDIR}/${PN}-2.10.9-irc_join_sleep.patch" # 577286
220 - "${FILESDIR}/${P}-libpurple_test_fix.patch" #819774
221 -)
222 -
223 -pkg_pretend() {
224 - if ! use gtk && ! use ncurses ; then
225 - elog "You did not pick the ncurses or gtk use flags, only libpurple"
226 - elog "will be built."
227 - fi
228 -
229 - # dbus is enabled, no way to disable linkage with python => python is enabled
230 - #REQUIRED_USE="gtk? ( nls ) dbus? ( python )"
231 - if use gtk && ! use nls ; then
232 - ewarn "gtk build => nls is enabled!"
233 - fi
234 - if use dbus && ! use python ; then
235 - elog "dbus is enabled, no way to disable linkage with python => python is enabled"
236 - fi
237 -}
238 -
239 -pkg_setup() {
240 - if use python || use dbus ; then
241 - python-single-r1_pkg_setup
242 - fi
243 -}
244 -
245 -src_prepare() {
246 - xdg_src_prepare
247 - eautoreconf
248 -}
249 -
250 -src_configure() {
251 - # Stabilize things, for your own good
252 - strip-flags
253 - replace-flags -O? -O2
254 - use pie && append-cflags -fPIE -pie
255 -
256 - use gadu && DYNAMIC_PRPLS+=",gg"
257 - use groupwise && DYNAMIC_PRPLS+=",novell"
258 - use meanwhile && DYNAMIC_PRPLS+=",sametime"
259 - use zephyr && DYNAMIC_PRPLS+=",zephyr"
260 - use zeroconf && DYNAMIC_PRPLS+=",bonjour"
261 -
262 - local myconf=(
263 - --disable-mono
264 - --disable-static
265 - --with-dynamic-prpls="${DYNAMIC_PRPLS}"
266 - --with-system-ssl-certs="${EPREFIX}/etc/ssl/certs/"
267 - --x-includes="${EPREFIX}"/usr/include/X11
268 - $(use_enable dbus)
269 - $(use_enable debug)
270 - $(use_enable doc doxygen)
271 - $(use_enable gstreamer)
272 - $(use_enable gtk gtkui)
273 - $(use_enable gtk sm)
274 - $(use_enable idn)
275 - $(use_enable meanwhile)
276 - $(use_enable networkmanager nm)
277 - $(use_enable ncurses consoleui)
278 - $(use_enable perl)
279 - $(use_enable sasl cyrus-sasl )
280 - $(use_enable tk)
281 - $(use_enable tcl)
282 - $(use_enable v4l farstream)
283 - $(use_enable v4l gstreamer-video)
284 - $(use_enable v4l vv)
285 - $(use_enable zeroconf avahi)
286 - $(use_with gstreamer gstreamer 1.0)
287 - $(usex gtk '--enable-nls' "$(use_enable nls)")
288 - $(use gtk && use_enable eds gevolution)
289 - $(use gtk && use_enable prediction cap)
290 - $(use gtk && use_enable spell gtkspell)
291 - $(use gtk && use_enable xscreensaver screensaver)
292 - )
293 -
294 - if use gnutls ; then
295 - einfo "Disabling NSS, using GnuTLS"
296 - myconf+=(
297 - --enable-gnutls=yes
298 - --enable-nss=no
299 - --with-gnutls-includes="${EPREFIX}/usr/include/gnutls"
300 - --with-gnutls-libs="${EPREFIX}/usr/$(get_libdir)"
301 - )
302 - else
303 - einfo "Disabling GnuTLS, using NSS"
304 - myconf+=(
305 - --enable-gnutls=no
306 - --enable-nss=yes
307 - )
308 - fi
309 -
310 - if use dbus || { use ncurses && use python ; } ; then
311 - myconf+=( --with-python3=${PYTHON} )
312 - else
313 - myconf+=( --without-python3 )
314 - fi
315 -
316 - econf "${myconf[@]}"
317 -}
318 -
319 -src_install() {
320 - # setting this here because we no longer use gnome2.eclass
321 - export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
322 - default
323 -
324 - if use gtk ; then
325 - # Fix tray paths for e16 (x11-wm/enlightenment) and other
326 - # implementations that are not compliant with new hicolor theme yet, #323355
327 - local d f pixmapdir
328 - for d in 16 22 32 48 ; do
329 - pixmapdir="${ED}/usr/share/pixmaps/pidgin/tray/hicolor/${d}x${d}/actions"
330 - mkdir "${pixmapdir}" || die
331 - pushd "${pixmapdir}" >/dev/null || die
332 - for f in ../status/*; do
333 - ln -s ${f} || die
334 - done
335 - popd >/dev/null || die
336 - done
337 - fi
338 - use perl && perl_delete_localpod
339 -
340 - use dbus && python_fix_shebang "${ED}"
341 - if use python || use dbus ; then
342 - python_optimize
343 - fi
344 -
345 - dodoc ${DOCS[@]} finch/plugins/pietray.py
346 - docompress -x /usr/share/doc/${PF}/pietray.py
347 -
348 - find "${ED}" -type f -name "*.la" -delete || die
349 -}
350 -
351 -src_test() {
352 - # make default build logs slightly more useful
353 - local -x GST_PLUGIN_SYSTEM_PATH_1_0=
354 - emake check VERBOSE=1
355 -}
356 -
357 -pkg_preinst() {
358 - gnome2_gconf_savelist
359 - xdg_pkg_preinst
360 -}
361 -
362 -pkg_postinst() {
363 - gnome2_gconf_install
364 - gnome2_schemas_update
365 - xdg_pkg_postinst
366 -}
367 -
368 -pkg_postrm() {
369 - gnome2_gconf_uninstall
370 - gnome2_schemas_update
371 - xdg_pkg_postrm
372 -}
373
374 diff --git a/net-im/pidgin/pidgin-2.14.9.ebuild b/net-im/pidgin/pidgin-2.14.9.ebuild
375 index 300091b9b0fb..8b7a3577b542 100644
376 --- a/net-im/pidgin/pidgin-2.14.9.ebuild
377 +++ b/net-im/pidgin/pidgin-2.14.9.ebuild
378 @@ -6,7 +6,7 @@ EAPI=8
379 GENTOO_DEPEND_ON_PERL=no
380 PYTHON_COMPAT=( python3_{8..10} )
381
382 -inherit autotools gnome2-utils flag-o-matic toolchain-funcs multilib perl-module python-single-r1 xdg
383 +inherit autotools gnome2-utils flag-o-matic perl-module python-single-r1 xdg
384
385 DESCRIPTION="GTK Instant Messenger client"
386 HOMEPAGE="https://pidgin.im/"
387 @@ -158,7 +158,6 @@ pkg_setup() {
388 if use python || use dbus ; then
389 python-single-r1_pkg_setup
390 fi
391 -
392 }
393
394 src_prepare() {