Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/pyicq-t/files/, net-im/pyicq-t/
Date: Mon, 27 Apr 2020 08:01:55
Message-Id: 1587974470.cf56e109e4477c289174d6ec4c534399923aab2a.zlogene@gentoo
1 commit: cf56e109e4477c289174d6ec4c534399923aab2a
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 27 07:59:31 2020 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 27 08:01:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf56e109
7
8 net-im/pyicq-t:remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/714626
11
12 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
13
14 net-im/pyicq-t/Manifest | 1 -
15 net-im/pyicq-t/files/pyicq-t-0.8-initd-r1 | 23 ----
16 .../files/pyicq-t-0.8.1.5-pillow-imaging.patch | 36 -------
17 .../files/pyicq-t-0.8.1.5-python26-warnings.diff | 118 ---------------------
18 net-im/pyicq-t/files/pyicq-t.service | 10 --
19 net-im/pyicq-t/metadata.xml | 13 ---
20 net-im/pyicq-t/pyicq-t-0.8.1.5-r7.ebuild | 58 ----------
21 7 files changed, 259 deletions(-)
22
23 diff --git a/net-im/pyicq-t/Manifest b/net-im/pyicq-t/Manifest
24 deleted file mode 100644
25 index 9ad6a5a789b..00000000000
26 --- a/net-im/pyicq-t/Manifest
27 +++ /dev/null
28 @@ -1 +0,0 @@
29 -DIST pyicqt-0.8.1.5.tar.gz 183865 BLAKE2B 5f0cce6fd9d27cf60f6234870644c95e016bc979a167d48a331df47cb25eefca96ed0082d336c931a6af5f25babaa7fdffc0cafdb0374463c066d5c185b02059 SHA512 5b83adf86746c2af60bed2759c7d4e3a3839bea532e0882a6dc087aee5e0afa1320c6d2d2296a667ec45c5b36be879034f079fd30cef924e8db5f66a2f1d3fde
30
31 diff --git a/net-im/pyicq-t/files/pyicq-t-0.8-initd-r1 b/net-im/pyicq-t/files/pyicq-t-0.8-initd-r1
32 deleted file mode 100644
33 index eda03d55077..00000000000
34 --- a/net-im/pyicq-t/files/pyicq-t-0.8-initd-r1
35 +++ /dev/null
36 @@ -1,23 +0,0 @@
37 -#!/sbin/openrc-run
38 -# Copyright 1999-2016 Gentoo Foundation
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -depend() {
42 - need net
43 - use jabber-server
44 -}
45 -
46 -start() {
47 - ebegin "Starting ICQ Jabber Transport"
48 - checkpath -q -d -m 0755 -o jabber:jabber /var/run/jabber/
49 - start-stop-daemon --start --pidfile /var/run/jabber/pyicq-t.pid -u jabber -g jabber \
50 - --exec INSPATH/pyicq-t.py -- \
51 - -b -c /etc/jabber/pyicq-t.xml -l /var/log/jabber/pyicq-t.log
52 - eend $?
53 -}
54 -
55 -stop() {
56 - ebegin "Stopping ICQ Jabber Transport"
57 - start-stop-daemon --stop --quiet --pidfile /var/run/jabber/pyicq-t.pid
58 - eend $?
59 -}
60
61 diff --git a/net-im/pyicq-t/files/pyicq-t-0.8.1.5-pillow-imaging.patch b/net-im/pyicq-t/files/pyicq-t-0.8.1.5-pillow-imaging.patch
62 deleted file mode 100644
63 index 62df75873c0..00000000000
64 --- a/net-im/pyicq-t/files/pyicq-t-0.8.1.5-pillow-imaging.patch
65 +++ /dev/null
66 @@ -1,36 +0,0 @@
67 -diff -Naur pyicqt-0.8.1.5/src/contact.py pyicqt-0.8.1.5-1/src/contact.py
68 ---- pyicqt-0.8.1.5/src/contact.py 2009-08-24 14:37:59.000000000 +0200
69 -+++ pyicqt-0.8.1.5-1/src/contact.py 2013-09-11 22:19:01.320467367 +0200
70 -@@ -13,7 +13,7 @@
71 - import globals
72 - import base64
73 - if not config.disableAvatars:
74 -- import Image
75 -+ import PIL.Image as Image
76 - import StringIO
77 -
78 -
79 -diff -Naur pyicqt-0.8.1.5/src/imgmanip.py pyicqt-0.8.1.5-1/src/imgmanip.py
80 ---- pyicqt-0.8.1.5/src/imgmanip.py 2009-08-24 14:37:59.000000000 +0200
81 -+++ pyicqt-0.8.1.5-1/src/imgmanip.py 2013-09-11 22:19:25.257168117 +0200
82 -@@ -5,7 +5,7 @@
83 -
84 - if not config.disableAvatars:
85 - try:
86 -- import Image
87 -+ import PIL.Image as Image
88 - import StringIO
89 -
90 - def convertToPNG(imageData):
91 -diff -Naur pyicqt-0.8.1.5/tools/infodump.py pyicqt-0.8.1.5-1/tools/infodump.py
92 ---- pyicqt-0.8.1.5/tools/infodump.py 2009-08-24 14:37:59.000000000 +0200
93 -+++ pyicqt-0.8.1.5-1/tools/infodump.py 2013-09-11 22:18:34.084807860 +0200
94 -@@ -41,7 +41,7 @@
95 - print "Nevow Version: Unknown or Not Installed"
96 -
97 - try:
98 -- from Image import VERSION
99 -+ from PIL.Image import VERSION
100 - print "Python Imaging Library (PIL) Version: " + VERSION
101 - except:
102 - print "Python Imaging Library (PIL) Version: Unknown or Not Installed"
103
104 diff --git a/net-im/pyicq-t/files/pyicq-t-0.8.1.5-python26-warnings.diff b/net-im/pyicq-t/files/pyicq-t-0.8.1.5-python26-warnings.diff
105 deleted file mode 100644
106 index fd8e9e5ab8f..00000000000
107 --- a/net-im/pyicq-t/files/pyicq-t-0.8.1.5-python26-warnings.diff
108 +++ /dev/null
109 @@ -1,118 +0,0 @@
110 -diff -Naur pyicqt-0.8.1.5/src/avatar.py p1//src/avatar.py
111 ---- pyicqt-0.8.1.5/src/avatar.py 2010-06-07 12:16:36.000000000 +0200
112 -+++ p1//src/avatar.py 2010-06-07 12:16:16.000000000 +0200
113 -@@ -6,7 +6,7 @@
114 - from twisted.words.xish.domish import Element
115 - from debug import LogEvent, INFO, WARN, ERROR
116 - import lang
117 --import sha
118 -+from hashlib import sha1
119 - import base64
120 - import os
121 - import os.path
122 -@@ -46,7 +46,7 @@
123 - class Avatar:
124 - """ Represents an Avatar. Does not store the image in memory. """
125 - def __init__(self, imageData, avatarCache):
126 -- self.__imageHash = sha.sha(imageData).hexdigest()
127 -+ self.__imageHash = sha1(imageData).hexdigest()
128 - self.__avatarCache = avatarCache
129 -
130 - def getImageHash(self):
131 -diff -Naur pyicqt-0.8.1.5/src/contact.py p1//src/contact.py
132 ---- pyicqt-0.8.1.5/src/contact.py 2010-06-07 12:16:43.000000000 +0200
133 -+++ p1//src/contact.py 2010-06-07 12:16:16.000000000 +0200
134 -@@ -8,7 +8,6 @@
135 - import config
136 - from debug import LogEvent, INFO, WARN, ERROR
137 - import lang
138 --import sha
139 - import legacy
140 - import globals
141 - import base64
142 -diff -Naur pyicqt-0.8.1.5/src/legacy/buddies.py p1//src/legacy/buddies.py
143 ---- pyicqt-0.8.1.5/src/legacy/buddies.py 2009-08-24 14:37:59.000000000 +0200
144 -+++ p1//src/legacy/buddies.py 2010-06-07 12:07:37.000000000 +0200
145 -@@ -12,7 +12,7 @@
146 - import os.path
147 - import binascii
148 - import os.path
149 --import md5
150 -+from hashlib import md5
151 -
152 - X = os.path.sep
153 -
154 -@@ -188,7 +188,7 @@
155 - avatarData = avatar.AvatarCache().setAvatar(imgmanip.convertToPNG(iconData))
156 - c.updateAvatar(avatarData, push=True)
157 - if not md5Hash:
158 -- m = md5.new()
159 -+ m = md5()
160 - m.update(iconData)
161 - md5Hash = m.digest()
162 - if not numHash:
163 -diff -Naur pyicqt-0.8.1.5/src/legacy/glue.py p1//src/legacy/glue.py
164 ---- pyicqt-0.8.1.5/src/legacy/glue.py 2009-08-24 14:37:59.000000000 +0200
165 -+++ p1//src/legacy/glue.py 2010-06-07 12:07:37.000000000 +0200
166 -@@ -18,7 +18,7 @@
167 - import time
168 - import binascii
169 - import avatar
170 --import md5
171 -+from hashlib import md5
172 - import random
173 -
174 - from twisted.python import log
175 -@@ -398,7 +398,7 @@
176 - try:
177 - self.myavatar = imgmanip.convertToJPG(imageData)
178 - self.myavatarlen = len(self.myavatar)
179 -- m=md5.new()
180 -+ m=md5()
181 - m.update(self.myavatar)
182 - self.myavatarsum = m.digest()
183 - self.myavatarstamp = time.time()
184 -diff -Naur pyicqt-0.8.1.5/src/legacy/icqt.py p1//src/legacy/icqt.py
185 ---- pyicqt-0.8.1.5/src/legacy/icqt.py 2009-08-24 14:37:59.000000000 +0200
186 -+++ p1//src/legacy/icqt.py 2010-06-07 12:07:37.000000000 +0200
187 -@@ -14,7 +14,6 @@
188 - import time
189 - import datetime
190 - import binascii
191 --import md5
192 - import locale
193 - import struct
194 -
195 -diff -Naur pyicqt-0.8.1.5/src/tlib/oscar.py p1//src/tlib/oscar.py
196 ---- pyicqt-0.8.1.5/src/tlib/oscar.py 2009-08-24 14:37:59.000000000 +0200
197 -+++ p1//src/tlib/oscar.py 2010-06-07 12:07:37.000000000 +0200
198 -@@ -21,7 +21,7 @@
199 - from scheduler import Scheduler
200 -
201 - import struct
202 --import md5
203 -+from hashlib import md5
204 - import string
205 - import socket
206 - import random
207 -@@ -120,9 +120,9 @@
208 - return dict,data
209 -
210 - def encryptPasswordMD5(password,key):
211 -- m=md5.new()
212 -+ m=md5()
213 - m.update(key)
214 -- m.update(md5.new(password).digest())
215 -+ m.update(md5(password).digest())
216 - m.update("AOL Instant Messenger (SM)")
217 - return m.digest()
218 -
219 -@@ -534,7 +534,7 @@
220 - self.iconSum = tlvs.get(0xd5,"")
221 -
222 - def updateIcon(self, iconData):
223 -- m=md5.new()
224 -+ m=md5()
225 - m.update(iconData)
226 - self.iconSum = m.digest()
227 - log.msg("icon sum is %s" % binascii.hexlify(self.iconSum))
228
229 diff --git a/net-im/pyicq-t/files/pyicq-t.service b/net-im/pyicq-t/files/pyicq-t.service
230 deleted file mode 100644
231 index 852ec13315a..00000000000
232 --- a/net-im/pyicq-t/files/pyicq-t.service
233 +++ /dev/null
234 @@ -1,10 +0,0 @@
235 -[Unit]
236 -Description=PyICQt is an ICQ transport for Jabber/XMPP
237 -
238 -[Service]
239 -ExecStart=INSPATH/pyicq-t.py -c /etc/jabber/pyicq-t.xml -l /var/log/jabber/pyicq-t.log
240 -User=jabber
241 -Group=jabber
242 -
243 -[Install]
244 -WantedBy=multi-user.target
245
246 diff --git a/net-im/pyicq-t/metadata.xml b/net-im/pyicq-t/metadata.xml
247 deleted file mode 100644
248 index 1e72bf501ea..00000000000
249 --- a/net-im/pyicq-t/metadata.xml
250 +++ /dev/null
251 @@ -1,13 +0,0 @@
252 -<?xml version="1.0" encoding="UTF-8"?>
253 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
254 -<pkgmetadata>
255 - <!-- maintainer-needed -->
256 - <longdescription>Python based jabber transport for ICQ</longdescription>
257 - <use>
258 - <flag name="webinterface">Install dependencies needed for the web
259 - interface</flag>
260 - </use>
261 - <upstream>
262 - <remote-id type="google-code">pyicqt</remote-id>
263 - </upstream>
264 -</pkgmetadata>
265
266 diff --git a/net-im/pyicq-t/pyicq-t-0.8.1.5-r7.ebuild b/net-im/pyicq-t/pyicq-t-0.8.1.5-r7.ebuild
267 deleted file mode 100644
268 index 4fee72e7547..00000000000
269 --- a/net-im/pyicq-t/pyicq-t-0.8.1.5-r7.ebuild
270 +++ /dev/null
271 @@ -1,58 +0,0 @@
272 -# Copyright 1999-2020 Gentoo Authors
273 -# Distributed under the terms of the GNU General Public License v2
274 -
275 -EAPI=6
276 -
277 -PYTHON_COMPAT=( python2_7 )
278 -
279 -inherit eutils python-single-r1 systemd
280 -
281 -MY_P="${P/pyicq-t/pyicqt}"
282 -
283 -DESCRIPTION="Python based jabber transport for ICQ"
284 -HOMEPAGE="https://code.google.com/p/pyicqt/"
285 -SRC_URI="https://pyicqt.googlecode.com/files/${MY_P}.tar.gz"
286 -
287 -LICENSE="GPL-2"
288 -SLOT="0"
289 -KEYWORDS="amd64 x86"
290 -IUSE="webinterface"
291 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
292 -
293 -DEPEND="${PYTHON_DEPS}
294 - net-im/jabber-base"
295 -RDEPEND="${DEPEND}
296 - $(python_gen_cond_dep '
297 - dev-python/twisted[${PYTHON_MULTI_USEDEP}]
298 - webinterface? ( >=dev-python/nevow-0.4.1[${PYTHON_MULTI_USEDEP}] )
299 - dev-python/pillow[${PYTHON_MULTI_USEDEP}]
300 - ')"
301 -
302 -S="${WORKDIR}/${MY_P}"
303 -PATCHES=(
304 - "${FILESDIR}/${P}-python26-warnings.diff"
305 - "${FILESDIR}/${P}-pillow-imaging.patch"
306 -)
307 -
308 -src_install() {
309 - python_moduleinto ${PN}
310 - cp PyICQt.py ${PN}.py || die
311 - python_domodule ${PN}.py data tools src
312 -
313 - insinto /etc/jabber
314 - newins config_example.xml ${PN}.xml
315 - fperms 600 /etc/jabber/${PN}.xml
316 - fowners jabber:jabber /etc/jabber/${PN}.xml
317 - chmod 755 "${D}$(python_get_sitedir)/${PN}/${PN}.py" || die
318 - sed -i \
319 - -e "s:<spooldir>[^\<]*</spooldir>:<spooldir>/var/spool/jabber</spooldir>:" \
320 - -e "s:<pid>[^\<]*</pid>:<pid>/var/run/jabber/${PN}.pid</pid>:" \
321 - "${ED}/etc/jabber/${PN}.xml" || die
322 -
323 - newinitd "${FILESDIR}/${PN}-0.8-initd-r1" ${PN}
324 - systemd_dounit "${FILESDIR}/${PN}.service"
325 - sed -i -e "s:INSPATH:$(python_get_sitedir)/${PN}:" \
326 - "${ED}/etc/init.d/${PN}" "${D%/}/$(systemd_get_systemunitdir)/${PN}.service" || die
327 -
328 - python_fix_shebang "${D}$(python_get_sitedir)/${PN}"
329 -}