Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/mugshot/, x11-misc/mugshot/files/
Date: Sun, 19 Aug 2018 22:52:37
Message-Id: 1534719043.ebf109215d0e3c67d49576a8252c2c16c860d353.monsieurp@gentoo
1 commit: ebf109215d0e3c67d49576a8252c2c16c860d353
2 Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
3 AuthorDate: Wed Aug 15 21:23:03 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 19 22:50:43 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebf10921
7
8 x11-misc/mugshot: drop old version
9
10 Bug: https://bugs.gentoo.org/663740
11 Package-Manager: Portage-2.3.45, Repoman-2.3.10
12
13 x11-misc/mugshot/Manifest | 1 -
14 x11-misc/mugshot/files/fix_env_spawn_args.patch | 47 --------------------
15 x11-misc/mugshot/files/missing_default_face.patch | 18 --------
16 x11-misc/mugshot/files/use_office_phone.patch | 18 --------
17 x11-misc/mugshot/metadata.xml | 1 -
18 x11-misc/mugshot/mugshot-0.4.0.ebuild | 54 -----------------------
19 6 files changed, 139 deletions(-)
20
21 diff --git a/x11-misc/mugshot/Manifest b/x11-misc/mugshot/Manifest
22 index 8d4365f855c..e48b73d1ea6 100644
23 --- a/x11-misc/mugshot/Manifest
24 +++ b/x11-misc/mugshot/Manifest
25 @@ -1,2 +1 @@
26 -DIST mugshot-0.4.0.tar.gz 126101 BLAKE2B be0d84fd09a1ff6477d32a77d979b1606597b2ca38524b9cc65c254dd9d5d43697123b10d2b836c1193a9ba0f3dadebb15d1fe89ab7fb1743cc7b4d177ace65d SHA512 5936ec3def5a70db21f9bcc7fce873ce374f8df0795fb944593f398704dcba8c81be30393603e1753e176da87f4a6fd8a3218de2aeb7f33ea6018735ce1b2c09
27 DIST mugshot-0.4.1.tar.gz 121660 BLAKE2B ce0c0d4b76184f35e4ba5204b984393412924c0288b09fe51ec0e6635b1556e24ed98ce4a893ae57f25810bb39ce035fb40b6990e1b6516406cb0f670acdbac0 SHA512 f7790b3f80fc98d9b19e9b9dd74eafc41ae7598e38f70e148502056b4bd375922271cc72cf4664280f1449b2f5e1d89052ecc5d37c6dc453041e5312f736bbbe
28
29 diff --git a/x11-misc/mugshot/files/fix_env_spawn_args.patch b/x11-misc/mugshot/files/fix_env_spawn_args.patch
30 deleted file mode 100644
31 index bb24418a7db..00000000000
32 --- a/x11-misc/mugshot/files/fix_env_spawn_args.patch
33 +++ /dev/null
34 @@ -1,47 +0,0 @@
35 ---- a/mugshot_lib/SudoDialog.py 2018-04-12 00:23:21.000000000 +0200
36 -+++ b/mugshot_lib/SudoDialog.py 2018-06-22 22:21:10.876589365 +0200
37 -@@ -48,7 +48,7 @@
38 - return False
39 -
40 - # Check for LANG requirements
41 -- child = env_spawn('sudo -v', 1)
42 -+ child = env_spawn('sudo', ['-v'], 1)
43 - if child.expect([".*ssword.*", "Sorry",
44 - pexpect.EOF,
45 - pexpect.TIMEOUT]) == 3:
46 -@@ -57,7 +57,7 @@
47 - child.close()
48 -
49 - # Check for sudo rights
50 -- child = env_spawn('sudo -v', 1)
51 -+ child = env_spawn('sudo', ['-v'], 1)
52 - try:
53 - index = child.expect([".*ssword.*", "Sorry",
54 - pexpect.EOF, pexpect.TIMEOUT])
55 -@@ -76,14 +76,14 @@
56 - return False
57 -
58 -
59 --def env_spawn(command, timeout):
60 -+def env_spawn(command, args, timeout):
61 - """Use pexpect.spawn, adapt for timeout and env requirements."""
62 - env = os.environ
63 - env["LANG"] = "C"
64 - if use_env:
65 -- child = pexpect.spawn(command, env)
66 -+ child = pexpect.spawn(command, args, env)
67 - else:
68 -- child = pexpect.spawn(command)
69 -+ child = pexpect.spawn(command, args)
70 - child.timeout = timeout
71 - return child
72 -
73 -@@ -304,7 +304,7 @@
74 - Return True if successful.
75 - '''
76 - # Set the pexpect variables and spawn the process.
77 -- child = env_spawn('sudo /bin/true', 1)
78 -+ child = env_spawn('sudo', ['/bin/true'], 1)
79 - try:
80 - # Check for password prompt or program exit.
81 - child.expect([".*ssword.*", pexpect.EOF])
82
83 diff --git a/x11-misc/mugshot/files/missing_default_face.patch b/x11-misc/mugshot/files/missing_default_face.patch
84 deleted file mode 100644
85 index 0d25fb61013..00000000000
86 --- a/x11-misc/mugshot/files/missing_default_face.patch
87 +++ /dev/null
88 @@ -1,18 +0,0 @@
89 ---- a/mugshot/MugshotWindow.py 2018-04-12 00:23:21.000000000 +0200
90 -+++ b/mugshot/MugshotWindow.py 2018-06-22 22:27:05.515588012 +0200
91 -@@ -257,10 +257,11 @@
92 - logger.debug('Found profile image: %s' % str(image))
93 -
94 - if os.path.isfile(face):
95 -- if os.path.samefile(image, face):
96 -- self.updated_image = face
97 -- else:
98 -- self.updated_image = None
99 -+ if os.path.exists(image):
100 -+ if os.path.samefile(image, face):
101 -+ self.updated_image = face
102 -+ else:
103 -+ self.updated_image = None
104 - self.set_user_image(face)
105 - elif os.path.isfile(image):
106 - self.updated_image = image
107
108 diff --git a/x11-misc/mugshot/files/use_office_phone.patch b/x11-misc/mugshot/files/use_office_phone.patch
109 deleted file mode 100644
110 index bea3f7ce4da..00000000000
111 --- a/x11-misc/mugshot/files/use_office_phone.patch
112 +++ /dev/null
113 @@ -1,18 +0,0 @@
114 ---- a/mugshot/MugshotWindow.py 2018-06-22 22:33:03.980586645 +0200
115 -+++ b/mugshot/MugshotWindow.py 2018-06-22 22:41:44.120584661 +0200
116 -@@ -614,10 +614,14 @@
117 -
118 - logger.debug('Updating Office Phone...')
119 - command = "%s -w \"%s\" %s" % (chfn, office_phone, username)
120 -+ command2 = "%s -o \"%s\" %s" % (chfn, office_phone, username)
121 - if self.process_terminal_password(command, password):
122 - self.office_phone = office_phone
123 - else:
124 -- success = False
125 -+ if self.process_terminal_password(command2, password):
126 -+ self.office_phone = office_phone
127 -+ else:
128 -+ success = False
129 -
130 - return (success, response)
131 -
132
133 diff --git a/x11-misc/mugshot/metadata.xml b/x11-misc/mugshot/metadata.xml
134 index 9e143660d31..70aef0f5e79 100644
135 --- a/x11-misc/mugshot/metadata.xml
136 +++ b/x11-misc/mugshot/metadata.xml
137 @@ -17,7 +17,6 @@
138 <use>
139 <flag name="gnome">Add support for <pkg>gnome-base/gnome-control-center</pkg></flag>
140 <flag name="libreoffice">Add support for <pkg>app-office/libreoffice</pkg> and <pkg>app-office/libreoffice-bin</pkg></flag>
141 - <flag name="pidgin">Add support for setting the avatar in <pkg>net-im/pidgin</pkg> </flag>
142 <flag name="webcam">Add support for setting a profile photo in <pkg>media-video/cheese</pkg></flag>
143 </use>
144 <upstream>
145
146 diff --git a/x11-misc/mugshot/mugshot-0.4.0.ebuild b/x11-misc/mugshot/mugshot-0.4.0.ebuild
147 deleted file mode 100644
148 index 23ceab58d94..00000000000
149 --- a/x11-misc/mugshot/mugshot-0.4.0.ebuild
150 +++ /dev/null
151 @@ -1,54 +0,0 @@
152 -# Copyright 1999-2018 Gentoo Foundation
153 -# Distributed under the terms of the GNU General Public License v2
154 -
155 -EAPI=6
156 -
157 -PYTHON_COMPAT=( python2_7 )
158 -
159 -inherit distutils-r1 eapi7-ver gnome2-utils
160 -
161 -DESCRIPTION="A lightweight user-configuration application"
162 -HOMEPAGE="https://launchpad.net/mugshot"
163 -SRC_URI="https://launchpad.net/${PN}/$(ver_cut 1-2)/${PV}/+download/${P}.tar.gz"
164 -
165 -LICENSE="GPL-3+"
166 -SLOT="0"
167 -KEYWORDS="~amd64 ~x86"
168 -IUSE="gnome libreoffice pidgin webcam"
169 -
170 -RDEPEND="dev-libs/gobject-introspection
171 - dev-python/dbus-python[${PYTHON_USEDEP}]
172 - dev-python/pexpect[${PYTHON_USEDEP}]
173 - dev-python/pycairo[${PYTHON_USEDEP}]
174 - dev-python/pygobject:3[${PYTHON_USEDEP}]
175 - sys-apps/accountsservice
176 - x11-libs/gtk+:3
177 - gnome? ( gnome-base/gnome-control-center )
178 - libreoffice? ( || ( app-office/libreoffice-bin app-office/libreoffice ) )
179 - pidgin? ( net-im/pidgin[${PYTHON_USEDEP}] )
180 - webcam? ( media-libs/gstreamer:1.0
181 - media-libs/gst-plugins-good:1.0
182 - gnome? ( media-libs/clutter-gtk[introspection]
183 - media-video/cheese[introspection] ) )"
184 -
185 -DEPEND="dev-python/python-distutils-extra[${PYTHON_USEDEP}]
186 - dev-util/intltool
187 - ${RDEPEND}"
188 -
189 -PATCHES=(
190 - # https://bugs.launchpad.net/ubuntu/+source/mugshot/+bug/1443283
191 - "${FILESDIR}/fix_env_spawn_args.patch"
192 - # Both patches are taken from Arch Linux
193 - "${FILESDIR}/missing_default_face.patch"
194 - "${FILESDIR}/use_office_phone.patch"
195 -)
196 -
197 -pkg_postinst() {
198 - gnome2_schemas_update
199 - gnome2_icon_cache_update
200 -}
201 -
202 -pkg_postrm() {
203 - gnome2_schemas_update
204 - gnome2_icon_cache_update
205 -}