diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:52:04 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:52:04 +0100 |
commit | 71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /x11-misc/mugshot | |
parent | 6612a728ea11526a849618ec515ad57131d64416 (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'x11-misc/mugshot')
-rw-r--r-- | x11-misc/mugshot/Manifest | 6 | ||||
-rw-r--r-- | x11-misc/mugshot/files/fix_env_spawn_args.patch | 47 | ||||
-rw-r--r-- | x11-misc/mugshot/files/missing_default_face.patch | 18 | ||||
-rw-r--r-- | x11-misc/mugshot/files/use_office_phone.patch | 18 | ||||
-rw-r--r-- | x11-misc/mugshot/metadata.xml | 27 | ||||
-rw-r--r-- | x11-misc/mugshot/mugshot-0.4.0.ebuild | 54 |
6 files changed, 170 insertions, 0 deletions
diff --git a/x11-misc/mugshot/Manifest b/x11-misc/mugshot/Manifest new file mode 100644 index 000000000000..db0f598bb36f --- /dev/null +++ b/x11-misc/mugshot/Manifest @@ -0,0 +1,6 @@ +AUX fix_env_spawn_args.patch 1542 BLAKE2B d106f8c488b5a5a7343ce822d8e6dacb1e2a0c9c09b56548e7eb0dc40e6e7d9d6c2192abd80a748e724194001b8e2b6e78465e5652e70306293e4c33f85fb4e1 SHA512 83018570ac1663abc5f7210075bfaf9d9220bf32d516e34b0146adb589964f0bdcbbc9fb4d8cd8f9f535bf766a87d47682bb8e3196edd4a7039793c811fc6677 +AUX missing_default_face.patch 785 BLAKE2B 43646f826480e6def661ff7dff3aa84d8b2b789ce977a9f321b8f66dce4e0a3a4c822e91d341101ce12a6df9384268156d14badf5b57bc5cb638d661a27c6749 SHA512 e855d9491a2d45322041de653cc3d852d79b80e27ea0c7064f65d61d9c69a001602f63043ad847ce399f80e2afce662874aeeaa09b47fe41e2af8cb797fbcd31 +AUX use_office_phone.patch 712 BLAKE2B d94a87060e67be5b82ee97266fb0300d14b42932657db332a8d73b5cbd6ac82df989b6a24ed2d774f3e7eaf64efe80934e12aff6bd8577a654e510e0c26f6735 SHA512 7d8ebd02d5472d08b73360744b13dab238dbc15d8a5daa31c5458c09ee7d74210be9be2f36446f6c71d3765a041c72f2b449cffcf6655944d2246559f45909a3 +DIST mugshot-0.4.0.tar.gz 126101 BLAKE2B be0d84fd09a1ff6477d32a77d979b1606597b2ca38524b9cc65c254dd9d5d43697123b10d2b836c1193a9ba0f3dadebb15d1fe89ab7fb1743cc7b4d177ace65d SHA512 5936ec3def5a70db21f9bcc7fce873ce374f8df0795fb944593f398704dcba8c81be30393603e1753e176da87f4a6fd8a3218de2aeb7f33ea6018735ce1b2c09 +EBUILD mugshot-0.4.0.ebuild 1499 BLAKE2B fc7340c94b69abc32bb530b55bfbd8e947445cb8182e407484df3ec24e0053e45339b7e3b0b10e7b3820f39a6ac74ff81b2fcc02f917f9f68b4aaaf5e37568ed SHA512 0dd112ce2a18517b9c9ed374e74367abfce0e0a509f937c52055fc5510f39095fa4f5bc022775332bf1a5c963fde2ed0e0dd68cc354adc5402d40384ad0472d1 +MISC metadata.xml 1139 BLAKE2B 761c09b3f9f3f81667a253876b89dafc107f503cbc9ca20242e3974c011077bdbabe0206d59cf4504328c49ef4f87c0716330e78ff1f0b953b9bb380c5820d06 SHA512 7ac0a6925a7b55f59410444537ee944c5491204f7257eaa215b599dbc31e1a183c124815a3761295058aa5a61dafae2b4bd9bf4659e76cc3deca5690e7f70cb1 diff --git a/x11-misc/mugshot/files/fix_env_spawn_args.patch b/x11-misc/mugshot/files/fix_env_spawn_args.patch new file mode 100644 index 000000000000..bb24418a7dbc --- /dev/null +++ b/x11-misc/mugshot/files/fix_env_spawn_args.patch @@ -0,0 +1,47 @@ +--- a/mugshot_lib/SudoDialog.py 2018-04-12 00:23:21.000000000 +0200 ++++ b/mugshot_lib/SudoDialog.py 2018-06-22 22:21:10.876589365 +0200 +@@ -48,7 +48,7 @@ + return False + + # Check for LANG requirements +- child = env_spawn('sudo -v', 1) ++ child = env_spawn('sudo', ['-v'], 1) + if child.expect([".*ssword.*", "Sorry", + pexpect.EOF, + pexpect.TIMEOUT]) == 3: +@@ -57,7 +57,7 @@ + child.close() + + # Check for sudo rights +- child = env_spawn('sudo -v', 1) ++ child = env_spawn('sudo', ['-v'], 1) + try: + index = child.expect([".*ssword.*", "Sorry", + pexpect.EOF, pexpect.TIMEOUT]) +@@ -76,14 +76,14 @@ + return False + + +-def env_spawn(command, timeout): ++def env_spawn(command, args, timeout): + """Use pexpect.spawn, adapt for timeout and env requirements.""" + env = os.environ + env["LANG"] = "C" + if use_env: +- child = pexpect.spawn(command, env) ++ child = pexpect.spawn(command, args, env) + else: +- child = pexpect.spawn(command) ++ child = pexpect.spawn(command, args) + child.timeout = timeout + return child + +@@ -304,7 +304,7 @@ + Return True if successful. + ''' + # Set the pexpect variables and spawn the process. +- child = env_spawn('sudo /bin/true', 1) ++ child = env_spawn('sudo', ['/bin/true'], 1) + try: + # Check for password prompt or program exit. + child.expect([".*ssword.*", pexpect.EOF]) diff --git a/x11-misc/mugshot/files/missing_default_face.patch b/x11-misc/mugshot/files/missing_default_face.patch new file mode 100644 index 000000000000..0d25fb610137 --- /dev/null +++ b/x11-misc/mugshot/files/missing_default_face.patch @@ -0,0 +1,18 @@ +--- a/mugshot/MugshotWindow.py 2018-04-12 00:23:21.000000000 +0200 ++++ b/mugshot/MugshotWindow.py 2018-06-22 22:27:05.515588012 +0200 +@@ -257,10 +257,11 @@ + logger.debug('Found profile image: %s' % str(image)) + + if os.path.isfile(face): +- if os.path.samefile(image, face): +- self.updated_image = face +- else: +- self.updated_image = None ++ if os.path.exists(image): ++ if os.path.samefile(image, face): ++ self.updated_image = face ++ else: ++ self.updated_image = None + self.set_user_image(face) + elif os.path.isfile(image): + self.updated_image = image diff --git a/x11-misc/mugshot/files/use_office_phone.patch b/x11-misc/mugshot/files/use_office_phone.patch new file mode 100644 index 000000000000..bea3f7ce4dae --- /dev/null +++ b/x11-misc/mugshot/files/use_office_phone.patch @@ -0,0 +1,18 @@ +--- a/mugshot/MugshotWindow.py 2018-06-22 22:33:03.980586645 +0200 ++++ b/mugshot/MugshotWindow.py 2018-06-22 22:41:44.120584661 +0200 +@@ -614,10 +614,14 @@ + + logger.debug('Updating Office Phone...') + command = "%s -w \"%s\" %s" % (chfn, office_phone, username) ++ command2 = "%s -o \"%s\" %s" % (chfn, office_phone, username) + if self.process_terminal_password(command, password): + self.office_phone = office_phone + else: +- success = False ++ if self.process_terminal_password(command2, password): ++ self.office_phone = office_phone ++ else: ++ success = False + + return (success, response) + diff --git a/x11-misc/mugshot/metadata.xml b/x11-misc/mugshot/metadata.xml new file mode 100644 index 000000000000..9e143660d318 --- /dev/null +++ b/x11-misc/mugshot/metadata.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>ck+gentoo@bl4ckb0x.de</email> + <name>Conrad Kostecki</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> + Mugshot is a lightweight user configuration utility. + Mugshot allows you to easily set profile image + and user details for your user profile and any supported applications. + </longdescription> + <use> + <flag name="gnome">Add support for <pkg>gnome-base/gnome-control-center</pkg></flag> + <flag name="libreoffice">Add support for <pkg>app-office/libreoffice</pkg> and <pkg>app-office/libreoffice-bin</pkg></flag> + <flag name="pidgin">Add support for setting the avatar in <pkg>net-im/pidgin</pkg> </flag> + <flag name="webcam">Add support for setting a profile photo in <pkg>media-video/cheese</pkg></flag> + </use> + <upstream> + <bugs-to>https://bugs.launchpad.net/mugshot</bugs-to> + <remote-id type="launchpad">mugshot</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/mugshot/mugshot-0.4.0.ebuild b/x11-misc/mugshot/mugshot-0.4.0.ebuild new file mode 100644 index 000000000000..23ceab58d94c --- /dev/null +++ b/x11-misc/mugshot/mugshot-0.4.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eapi7-ver gnome2-utils + +DESCRIPTION="A lightweight user-configuration application" +HOMEPAGE="https://launchpad.net/mugshot" +SRC_URI="https://launchpad.net/${PN}/$(ver_cut 1-2)/${PV}/+download/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gnome libreoffice pidgin webcam" + +RDEPEND="dev-libs/gobject-introspection + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/pexpect[${PYTHON_USEDEP}] + dev-python/pycairo[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] + sys-apps/accountsservice + x11-libs/gtk+:3 + gnome? ( gnome-base/gnome-control-center ) + libreoffice? ( || ( app-office/libreoffice-bin app-office/libreoffice ) ) + pidgin? ( net-im/pidgin[${PYTHON_USEDEP}] ) + webcam? ( media-libs/gstreamer:1.0 + media-libs/gst-plugins-good:1.0 + gnome? ( media-libs/clutter-gtk[introspection] + media-video/cheese[introspection] ) )" + +DEPEND="dev-python/python-distutils-extra[${PYTHON_USEDEP}] + dev-util/intltool + ${RDEPEND}" + +PATCHES=( + # https://bugs.launchpad.net/ubuntu/+source/mugshot/+bug/1443283 + "${FILESDIR}/fix_env_spawn_args.patch" + # Both patches are taken from Arch Linux + "${FILESDIR}/missing_default_face.patch" + "${FILESDIR}/use_office_phone.patch" +) + +pkg_postinst() { + gnome2_schemas_update + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_schemas_update + gnome2_icon_cache_update +} |