diff options
Diffstat (limited to 'dev-util/dogtail')
-rw-r--r-- | dev-util/dogtail/Manifest | 4 | ||||
-rw-r--r-- | dev-util/dogtail/dogtail-0.9.9.ebuild | 65 | ||||
-rw-r--r-- | dev-util/dogtail/files/dogtail-0.9.9-gentoo-paths.patch | 64 | ||||
-rw-r--r-- | dev-util/dogtail/files/dogtail-0.9.9-get-user.patch | 43 |
4 files changed, 0 insertions, 176 deletions
diff --git a/dev-util/dogtail/Manifest b/dev-util/dogtail/Manifest index 78ff450865ed..8a6f1b4c6f77 100644 --- a/dev-util/dogtail/Manifest +++ b/dev-util/dogtail/Manifest @@ -1,8 +1,4 @@ AUX dogtail-0.9.10-gentoo-paths.patch 2705 BLAKE2B 6a3d9b7a7ced2388bea7216c4a6f95e531247b5d5f7316b64375215ea5a7e0e1a8deb974115bd613baf6d22c7af502efce01f00412cb8ff101042d08cfb9fe1d SHA512 ce792bf24713c8b2948874faa11ee53d341d4d1d25bba95cd11f9a31e2e76e813a20b0d9932268a2110c990de1fdf15382fa1867f02e31ea1d25349e48bb42c1 -AUX dogtail-0.9.9-gentoo-paths.patch 2465 BLAKE2B a0425208e0da057a67e4e8f8a24f1792a2d8af352225892ad2d152bdf412f92e2ee021e88a650d24a845795bf2d2a3739b2a0ff1960ef9c4685f6b7a748ba7ff SHA512 dbb5dd218959617b8481b59492bab26896d5ca150d74dcc3de30e747f5093618b492ba880ff1b0d08a765ba4d19c56f64abd4b43080e1149ff6a3b09ae18730a -AUX dogtail-0.9.9-get-user.patch 1295 BLAKE2B 1b6d377f5ac6174e45bdccdc63d4c10fa3f987c6b245a85c206b241ea2e0b8288dc30f23c7386a9cf8543aa184b8f36e2ba194b0c20833ac5a6da9953caed176 SHA512 fa7f75c37897cb2cfaccf1e21eb2efad77601d28e3c8d298c066199a8dcc695d872d792ab7f0c3e372bef227051c9b37ab8592a8896d03b82b4ca34bbf9a7579 DIST dogtail-0.9.10.tar.gz 125995 BLAKE2B e28e9a6330cefc8746b850501a5beba07e18f1e5d5f935ce182103a9ea4ffc95483b3530a705565cbfae1bff24da57839f7e7b6939f42821e31b287150e33b4d SHA512 08ce4ad6e5e492ab04be9964cc6583d96d2d8a707a49721c1bca9248e5c56702fe5d0d84dd992023f731fe87016c88e21929319baff561aa113c6e101343fc3e -DIST dogtail-0.9.9.tar.gz 123884 BLAKE2B 7674617bf1aac04bbe6afd8ce8d304331fcf26a4f03be7d440ca13e147fa0147a013d258fb4c6a93fb7d0e26b26ebabb831bb686d2a8a0860a55fb02dc378d09 SHA512 5283dea40b8193e7380aeebab6c7ad149c232ac3d7360df477bed0e623bacc79fc895694d2aff788dd5f986591c1460c447428d8c2acf25ba240946323eabef8 EBUILD dogtail-0.9.10.ebuild 1470 BLAKE2B 376e1801bccd63f12d11c2e6aae1c473f8e9a4ecfa2c8a19a453e65262591392703d2bdb9db7695a483f20c1466159105a84aa5a96aa10741e3e101638193cd2 SHA512 a4366cfe584d71cd369618ff38abf54bcfa3ec129d2f9691937979c60cbb43be936a14a7e8c8c32641eca9c7000235a4252deb66ca5bc47ba8adc5bd6bc7dbde -EBUILD dogtail-0.9.9.ebuild 1578 BLAKE2B 40cd08fb7d28a83700eec7ccd07914853f8078128a25bebdb4b3a2e628e27a71042b31af09c41128bf193e9bb05ffd404e88c474a7d7ec6d88b841d7844a0c79 SHA512 480675b19dcbaf61a4f77951e68d20deceec31252c9c6dbac1e8f51b3ed5a7649d5234fc1db3e1f0abc041da442560b4127399a9d78540e419e9f8bf05d139e3 MISC metadata.xml 253 BLAKE2B a1efbd3751efaa83ee173f557ec1c8a4497a90b60896cf5a7a07da40b4f94a7a299ca0385477e82b2f5e5dbdf9afa482ccbe21f35ef44214e9c451d764b65529 SHA512 8d59f413993268ca783f7407b676900bb2d964754bf705d4175e2bafbe058a52af74f3928e4bd84d292518f8cf13fab7051486ab7cdc61d02fae6e0188d44442 diff --git a/dev-util/dogtail/dogtail-0.9.9.ebuild b/dev-util/dogtail/dogtail-0.9.9.ebuild deleted file mode 100644 index 4ec734068537..000000000000 --- a/dev-util/dogtail/dogtail-0.9.9.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python{2_7,3_4,3_5} ) - -inherit eutils distutils-r1 gnome2-utils xdg - -DESCRIPTION="GUI test tool and automation framework using accessibility framework" -HOMEPAGE="https://fedorahosted.org/dogtail/" -SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="" - -RDEPEND=" - dev-libs/gobject-introspection - dev-python/pyatspi[${PYTHON_USEDEP}] - dev-python/pycairo[${PYTHON_USEDEP}] - dev-python/pygobject:3[${PYTHON_USEDEP}] - dev-python/pillow[${PYTHON_USEDEP}] - x11-libs/gdk-pixbuf:2[introspection] - x11-libs/gtk+:3[introspection] - x11-libs/libwnck:3[introspection] - x11-base/xorg-server[xvfb] - x11-apps/xinit -" -DEPEND="${DEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] -" - -src_prepare() { - # Install docs in one place - sed "s:doc/${PN}:doc/${PF}:" -i setup.py || die - - # Fix current user detection, upstream bug #46 - # Also, respect TMPDIR - epatch "${FILESDIR}"/${PN}-0.9.9-get-user.patch - - # Upstream loads resources relative to __file__, which doesn't work with - # gentoo's dev-lang/python-exec. So we need to add hard-coded paths. - epatch "${FILESDIR}"/${PN}-0.9.9-gentoo-paths.patch - sed -e "s:@EPREFIX_USR@:'${EPREFIX}/usr':" -i sniff/sniff || die "sed failed" - - xdg_src_prepare - distutils-r1_src_prepare -} - -pkg_preinst() { - xdg_pkg_preinst - gnome2_icon_savelist -} - -pkg_postinst() { - xdg_pkg_postinst - gnome2_icon_cache_update -} - -pkg_postrm() { - xdg_pkg_postrm - gnome2_icon_cache_update -} diff --git a/dev-util/dogtail/files/dogtail-0.9.9-gentoo-paths.patch b/dev-util/dogtail/files/dogtail-0.9.9-gentoo-paths.patch deleted file mode 100644 index 522249949228..000000000000 --- a/dev-util/dogtail/files/dogtail-0.9.9-gentoo-paths.patch +++ /dev/null @@ -1,64 +0,0 @@ -From 069a17e22a73ecff686b650ba158a292cc508cb5 Mon Sep 17 00:00:00 2001 -From: Gilles Dartiguelongue <eva@gentoo.org> -Date: Sat, 5 Mar 2016 19:38:08 +0100 -Subject: [PATCH] Load resources from well-known location - -Using __file__ does not work with Gentoo's dev-python/python-exec -wrapping. Better use hard-coded paths. - -Also adds support for prefix. ---- - sniff/sniff | 26 +++++++++----------------- - 1 file changed, 9 insertions(+), 17 deletions(-) - -diff --git a/sniff/sniff b/sniff/sniff -index a83a1c2..ff43f38 100755 ---- a/sniff/sniff -+++ b/sniff/sniff -@@ -47,22 +47,18 @@ class SniffApp(object): - if os.path.exists('sniff.ui'): - self.builder.add_from_file('sniff.ui') - else: -- import os -- path = os.path.abspath( -- os.path.join(__file__, os.path.pardir, os.path.pardir)) -- if path == '/': # in case the path is /bin/sniff -- path = '/usr' -- self.builder.add_from_file(path + '/share/dogtail/glade/sniff.ui') -+ self.builder.add_from_file(os.path.join( -+ @EPREFIX_USR@, -+ 'share/dogtail/glade/sniff.ui') -+ ) - self.app = self.builder.get_object(self.appName) - try: - self.app.set_icon_from_file('../icons/dogtail-head.svg') - except Exception: -- import os -- path = os.path.abspath( -- os.path.join(__file__, os.path.pardir, os.path.pardir)) -- if path is '/': -- path = '/usr' -- self.app.set_icon_from_file(os.path.join(path, 'share/icons/hicolor/scalable/apps/dogtail-head.svg')) -+ self.app.set_icon_from_file(os.path.join( -+ @EPREFIX_USR@, -+ 'share/icons/hicolor/scalable/apps/dogtail-head.svg') -+ ) - self.setUpWidgets() - self.connectSignals() - self.app.show_all() -@@ -650,11 +646,7 @@ def loadIcon(iconName): - pixbuf = GdkPixbuf.Pixbuf.new_from_file('icons/' + iconName) - except GObject.GError: - import os -- path = os.path.abspath( -- os.path.join(__file__, os.path.pardir, os.path.pardir)) -- if path == '/': -- path = '/usr' -- iconName = os.path.join(path, 'share/dogtail/icons/', iconName) -+ iconName = os.path.join(@EPREFIX_USR@, 'share/dogtail/icons/', iconName) - pixbuf = GdkPixbuf.Pixbuf.new_from_file(iconName) - return pixbuf - --- -2.7.2 - diff --git a/dev-util/dogtail/files/dogtail-0.9.9-get-user.patch b/dev-util/dogtail/files/dogtail-0.9.9-get-user.patch deleted file mode 100644 index a3f7ef77230d..000000000000 --- a/dev-util/dogtail/files/dogtail-0.9.9-get-user.patch +++ /dev/null @@ -1,43 +0,0 @@ -From 1ee93bf9d0d8a143f5faf9d1310d768d1de4ece4 Mon Sep 17 00:00:00 2001 -From: Gilles Dartiguelongue <eva@gentoo.org> -Date: Sat, 5 Mar 2016 20:32:17 +0100 -Subject: [PATCH] Do not use USER as it can be unset. - -Use LOGNAME first as recommended by python documentation, then try alternatives. - -Also, use tempfile to respect environment variables changing tmpdir. - -Upstream: https://fedorahosted.org/dogtail/ticket/46 -Debian: http://bugs.debian.org/743500 ---- - dogtail/config.py | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -diff --git a/dogtail/config.py b/dogtail/config.py -index 80f08bf..1b6ac15 100644 ---- a/dogtail/config.py -+++ b/dogtail/config.py -@@ -3,6 +3,8 @@ from __future__ import absolute_import, division, print_function, unicode_litera - import locale - import os -+import pwd - import sys -+import tempfile - - """ - The configuration module. -@@ -12,7 +13,10 @@ __author__ = "Zack Cerza <zcerza@redhat.com>, David Malcolm <dmalcolm@redhat.com - - def _userTmpDir(baseName): - # i.e. /tmp/dogtail-foo -- return '-'.join(('/'.join(('/tmp', baseName)), os.environ['USER'])) -+ return '-'.join(( -+ '/'.join((tempfile.gettempdir(), baseName)), -+ os.getenv('LOGNAME', os.getenv('USER', pwd.getpwuid(os.getuid())[0])) -+ )) - - - class _Config(object): --- -2.7.2 - |