Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/mugshot/files/, x11-misc/mugshot/
Date: Sat, 08 Feb 2020 14:47:01
Message-Id: 1581173063.9301044fee6af9dddfff17c6eacb25c1a0c6d2ae.conikost@gentoo
1 commit: 9301044fee6af9dddfff17c6eacb25c1a0c6d2ae
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 8 14:44:23 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 8 14:44:23 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9301044f
7
8 x11-misc/mugshot: drop old version
9
10 Package-Manager: Portage-2.3.87, Repoman-2.3.20
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 x11-misc/mugshot/Manifest | 1 -
14 .../files/mugshot-0.4.1-missing_default_face.patch | 18 --------
15 .../files/mugshot-0.4.1-use_office_phone.patch | 23 ----------
16 x11-misc/mugshot/mugshot-0.4.1.ebuild | 52 ----------------------
17 4 files changed, 94 deletions(-)
18
19 diff --git a/x11-misc/mugshot/Manifest b/x11-misc/mugshot/Manifest
20 index 164e42215dc..8d2ac185229 100644
21 --- a/x11-misc/mugshot/Manifest
22 +++ b/x11-misc/mugshot/Manifest
23 @@ -1,2 +1 @@
24 -DIST mugshot-0.4.1.tar.gz 121660 BLAKE2B ce0c0d4b76184f35e4ba5204b984393412924c0288b09fe51ec0e6635b1556e24ed98ce4a893ae57f25810bb39ce035fb40b6990e1b6516406cb0f670acdbac0 SHA512 f7790b3f80fc98d9b19e9b9dd74eafc41ae7598e38f70e148502056b4bd375922271cc72cf4664280f1449b2f5e1d89052ecc5d37c6dc453041e5312f736bbbe
25 DIST mugshot-0.4.2.tar.gz 121020 BLAKE2B c092e25273dbd8ef9cbfbc001fb5f86b134ed8f9bf5d84993d5f46664f17eb74eda5c121ee70b5f0c4b0adb5aa1fc4d21d8c59d3f0cf4a4f67991d06690f5aa5 SHA512 721629cf4a7e4d84fd8505279cf88c88ac88c7b6c995ac84a2fd6a9b978c92716bbe20d7b0301ca70e99c007698e4cddf41b6cf1111bf496eec4d39591cd9ed1
26
27 diff --git a/x11-misc/mugshot/files/mugshot-0.4.1-missing_default_face.patch b/x11-misc/mugshot/files/mugshot-0.4.1-missing_default_face.patch
28 deleted file mode 100644
29 index cc504d667af..00000000000
30 --- a/x11-misc/mugshot/files/mugshot-0.4.1-missing_default_face.patch
31 +++ /dev/null
32 @@ -1,18 +0,0 @@
33 ---- a/mugshot/MugshotWindow.py 2018-08-08 11:22:42.000000000 +0200
34 -+++ b/mugshot/MugshotWindow.py 2018-08-15 22:48:39.998699923 +0200
35 -@@ -256,10 +256,11 @@
36 -
37 - if os.path.isfile(face):
38 - try:
39 -- if os.path.samefile(image, face):
40 -- self.updated_image = face
41 -- else:
42 -- self.updated_image = None
43 -+ if os.path.exists(image):
44 -+ if os.path.samefile(image, face):
45 -+ self.updated_image = face
46 -+ else:
47 -+ self.updated_image = None
48 - except FileNotFoundError:
49 - self.updated_image = None
50 - self.set_user_image(face)
51
52 diff --git a/x11-misc/mugshot/files/mugshot-0.4.1-use_office_phone.patch b/x11-misc/mugshot/files/mugshot-0.4.1-use_office_phone.patch
53 deleted file mode 100644
54 index 07c2003f50d..00000000000
55 --- a/x11-misc/mugshot/files/mugshot-0.4.1-use_office_phone.patch
56 +++ /dev/null
57 @@ -1,23 +0,0 @@
58 ---- a/mugshot/MugshotWindow.py 2018-08-08 11:22:42.000000000 +0200
59 -+++ b/mugshot/MugshotWindow.py 2018-08-15 22:47:02.108700297 +0200
60 -@@ -617,14 +617,18 @@
61 - # chfn 2.29 uses "-p" as parameter for changing the office-phone (LP: #1699285)
62 - p_command = "%s -p \"%s\" %s" % (chfn, office_phone, username)
63 -
64 -- # other (newer, older?) use "-w"
65 -+ # other (newer, older?) use "-o" or "-w"
66 -+ o_command = "%s -o \"%s\" %s" % (chfn, office_phone, username)
67 - w_command = "%s -w \"%s\" %s" % (chfn, office_phone, username)
68 -
69 - if self.process_terminal_password(p_command, password) or \
70 - self.process_terminal_password(w_command, password):
71 - self.office_phone = office_phone
72 - else:
73 -- success = False
74 -+ if self.process_terminal_password(command2, password):
75 -+ self.office_phone = office_phone
76 -+ else:
77 -+ success = False
78 -
79 - return (success, response)
80 -
81
82 diff --git a/x11-misc/mugshot/mugshot-0.4.1.ebuild b/x11-misc/mugshot/mugshot-0.4.1.ebuild
83 deleted file mode 100644
84 index b64746d894f..00000000000
85 --- a/x11-misc/mugshot/mugshot-0.4.1.ebuild
86 +++ /dev/null
87 @@ -1,52 +0,0 @@
88 -# Copyright 1999-2020 Gentoo Authors
89 -# Distributed under the terms of the GNU General Public License v2
90 -
91 -EAPI=6
92 -
93 -PYTHON_COMPAT=( python3_6 )
94 -
95 -inherit distutils-r1 eapi7-ver gnome2-utils
96 -
97 -DESCRIPTION="A lightweight user-configuration application"
98 -HOMEPAGE="https://launchpad.net/mugshot"
99 -SRC_URI="https://launchpad.net/${PN}/$(ver_cut 1-2)/${PV}/+download/${P}.tar.gz"
100 -
101 -LICENSE="GPL-3+"
102 -SLOT="0"
103 -KEYWORDS="amd64 x86"
104 -IUSE="gnome libreoffice webcam"
105 -
106 -RDEPEND="dev-libs/gobject-introspection
107 - dev-python/dbus-python[${PYTHON_USEDEP}]
108 - dev-python/pexpect[${PYTHON_USEDEP}]
109 - dev-python/pycairo[${PYTHON_USEDEP}]
110 - dev-python/pygobject:3[${PYTHON_USEDEP}]
111 - sys-apps/accountsservice
112 - x11-libs/gtk+:3
113 - gnome? ( gnome-base/gnome-control-center )
114 - libreoffice? ( || ( app-office/libreoffice-bin app-office/libreoffice ) )
115 - webcam? ( media-libs/gstreamer:1.0
116 - media-libs/gst-plugins-good:1.0
117 - gnome? ( media-libs/clutter-gtk[introspection]
118 - media-video/cheese[introspection] ) )"
119 -
120 -DEPEND="dev-python/python-distutils-extra[${PYTHON_USEDEP}]
121 - dev-util/intltool
122 - ${RDEPEND}"
123 -
124 -PATCHES=(
125 - # Both patches are taken from Arch Linux
126 - # and adapted to newest version
127 - "${FILESDIR}"/${P}-missing_default_face.patch
128 - "${FILESDIR}"/${P}-use_office_phone.patch
129 -)
130 -
131 -pkg_postinst() {
132 - gnome2_schemas_update
133 - gnome2_icon_cache_update
134 -}
135 -
136 -pkg_postrm() {
137 - gnome2_schemas_update
138 - gnome2_icon_cache_update
139 -}