From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-util/dogtail/Manifest | 10 ++++ dev-util/dogtail/dogtail-0.9.10.ebuild | 61 ++++++++++++++++++++ dev-util/dogtail/dogtail-0.9.9.ebuild | 65 +++++++++++++++++++++ .../files/dogtail-0.9.10-gentoo-paths.patch | 67 ++++++++++++++++++++++ .../dogtail/files/dogtail-0.9.9-gentoo-paths.patch | 64 +++++++++++++++++++++ .../dogtail/files/dogtail-0.9.9-get-user.patch | 43 ++++++++++++++ dev-util/dogtail/metadata.xml | 8 +++ 7 files changed, 318 insertions(+) create mode 100644 dev-util/dogtail/Manifest create mode 100644 dev-util/dogtail/dogtail-0.9.10.ebuild create mode 100644 dev-util/dogtail/dogtail-0.9.9.ebuild create mode 100644 dev-util/dogtail/files/dogtail-0.9.10-gentoo-paths.patch create mode 100644 dev-util/dogtail/files/dogtail-0.9.9-gentoo-paths.patch create mode 100644 dev-util/dogtail/files/dogtail-0.9.9-get-user.patch create mode 100644 dev-util/dogtail/metadata.xml (limited to 'dev-util/dogtail') diff --git a/dev-util/dogtail/Manifest b/dev-util/dogtail/Manifest new file mode 100644 index 000000000000..3c8389bf97c4 --- /dev/null +++ b/dev-util/dogtail/Manifest @@ -0,0 +1,10 @@ +AUX dogtail-0.9.10-gentoo-paths.patch 2705 SHA256 d0537a3a45ef9bf016e38ff62b5db114d1878dae8437742f5e6ac28376fed2c8 SHA512 ce792bf24713c8b2948874faa11ee53d341d4d1d25bba95cd11f9a31e2e76e813a20b0d9932268a2110c990de1fdf15382fa1867f02e31ea1d25349e48bb42c1 WHIRLPOOL 30893863b221faef0842f23dd04b23a77baf39b6edc5473b836687995f7d5ab4a11b84b077c9cce5162b9d8cf89641e157a435b3d7b650ae544abcd5e81ed07e +AUX dogtail-0.9.9-gentoo-paths.patch 2465 SHA256 988ec5707f103083b1c71281cf8c21818703fa28e401976224e43b73409432bb SHA512 dbb5dd218959617b8481b59492bab26896d5ca150d74dcc3de30e747f5093618b492ba880ff1b0d08a765ba4d19c56f64abd4b43080e1149ff6a3b09ae18730a WHIRLPOOL 78698ed63eee9d997d7445815bcd675f4769fe757d9e4e4e4e5b5e0c4811221a35960e7e0a1ea7a4429db0e9fe91edc1f1a1972354d28ce35bef332d56da25e7 +AUX dogtail-0.9.9-get-user.patch 1295 SHA256 bea7e4bf42d8fde59c273e6e365c5d85fd3eede9442b1aff7096ff64c4eb0fc8 SHA512 fa7f75c37897cb2cfaccf1e21eb2efad77601d28e3c8d298c066199a8dcc695d872d792ab7f0c3e372bef227051c9b37ab8592a8896d03b82b4ca34bbf9a7579 WHIRLPOOL 35adb8d9756d3448c935df31190e8faf74bf4101b961b0f25d9f9dd4fd9c854c546c509c6f185c1925cd052e8338117eb7f3a5c5287a50fa06cc6f6488fc2a60 +DIST dogtail-0.9.10.tar.gz 125995 SHA256 ab84f9e691fea621a178d89e8cbd00830dd2bcbd945f48b91b122a445b645e93 SHA512 08ce4ad6e5e492ab04be9964cc6583d96d2d8a707a49721c1bca9248e5c56702fe5d0d84dd992023f731fe87016c88e21929319baff561aa113c6e101343fc3e WHIRLPOOL a3f973ad621ce79d57e460bc00591414ce804a0c61295982ab882ebf4f29f57cbe10d39b819b2c7cc4ddb2455109dfd1ee4ca5fed5c1c30222294f04e9345fa9 +DIST dogtail-0.9.9.tar.gz 123884 SHA256 5d94620bac19b23606d3ecb28e85628c5ceb505beb530af7023ce5bfb576bc5c SHA512 5283dea40b8193e7380aeebab6c7ad149c232ac3d7360df477bed0e623bacc79fc895694d2aff788dd5f986591c1460c447428d8c2acf25ba240946323eabef8 WHIRLPOOL 4d855893e9da54bca09260729f3dc551e973a47a0ef9db31507c071e0014bb70d809aebb50bb47355c9b536f499f912e6b75846a2fe98f3ed8a2a8df20f43a5f +EBUILD dogtail-0.9.10.ebuild 1472 SHA256 a38d6657cb87c837d04cbde364a49be5263652ab280b8147cb13690929c17ff8 SHA512 10400c597e903c97582256234bd1f13873739bf72a00b3165966a0b21f0de9f9298eabc4c3037abf219fcbaf9f39d4280f640f2b0d4cd7f6ce965323962712d8 WHIRLPOOL 3c67e27aa506a41f4eae4f3b14c11b2694a6ad863a6e6f78a1978d4eb51bb4047f139113aee1b04c3a2351213d6368b87b116e474143ae8874236a864c2dd5aa +EBUILD dogtail-0.9.9.ebuild 1578 SHA256 00531f4568ff80ef21433d948c2712a2684f34c1462a4741de426ff653b788fb SHA512 480675b19dcbaf61a4f77951e68d20deceec31252c9c6dbac1e8f51b3ed5a7649d5234fc1db3e1f0abc041da442560b4127399a9d78540e419e9f8bf05d139e3 WHIRLPOOL 11e843fdbbc2caf9ccbbb05655176737b320e1ecf1e5b77abd5e611a649912a22e28443009e25db1a93af18f9a6532df834b33344a345106400c213a53c1dbed +MISC ChangeLog 3677 SHA256 c5020fad7f847f8bb7f23c03fb24bbaee56e110d96c18f5b713cc13794bbaf77 SHA512 bd51f994f1466486ff451641e45dd78a4f154258784a871f82c32b205f296d0f939100e346ac9bc58707953e3275d94f238f968f3bd2f33106704be781a79702 WHIRLPOOL 6bdbf64ab9a9bf5ef10ebc7092f6b8b3b67f960f0536ca40b602e75a4ee139579d1421280e46e6da9a807e469f57716ac6dfe090054bb938e58f5944fd74d56b +MISC ChangeLog-2015 626 SHA256 23e597eedf6cdd9f4b4e2fd1368561acdd55dc1ff1ac49b4d284e39c1089b5d3 SHA512 ad725fe71ce9294bc6a9b89fcb4349e94a1f7f7509c25fc4f8955bbed54c883609cfe3f5788a4f2ae91eff294c339f80609ec885cdd22244fd2a257db7f5b33b WHIRLPOOL 79395c4d396bc403109cd26d1887d6440304e0d57f4be9766b1d2235e4cad112a5c8e66bc8c3c6bf4930565f66a3bc7ce292d45cdea6ce200c1ef54f6c9784dc +MISC metadata.xml 253 SHA256 8f92439176f4cd2ba6a060c523c6b29ab210cd9aab7903b6db6eecc6654b1e21 SHA512 8d59f413993268ca783f7407b676900bb2d964754bf705d4175e2bafbe058a52af74f3928e4bd84d292518f8cf13fab7051486ab7cdc61d02fae6e0188d44442 WHIRLPOOL d5d853bd8a39a54c45728e16a1aa295e014e0a3a105a01ec6b3c93a4f53d7b7055644708301751b7f5be68543056d3f0bd611d5ce0be442eb5d06f5e032fe154 diff --git a/dev-util/dogtail/dogtail-0.9.10.ebuild b/dev-util/dogtail/dogtail-0.9.10.ebuild new file mode 100644 index 000000000000..a02cbee7daad --- /dev/null +++ b/dev-util/dogtail/dogtail-0.9.10.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit distutils-r1 gnome2-utils xdg + +DESCRIPTION="GUI test tool and automation framework using accessibility framework" +HOMEPAGE="https://gitlab.com/dogtail/dogtail/commits/master" +SRC_URI="https://gitlab.com/${PN}/${PN}/raw/released/${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 + + # 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. + eapply "${FILESDIR}"/${PN}-0.9.10-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/dogtail-0.9.9.ebuild b/dev-util/dogtail/dogtail-0.9.9.ebuild new file mode 100644 index 000000000000..4ec734068537 --- /dev/null +++ b/dev-util/dogtail/dogtail-0.9.9.ebuild @@ -0,0 +1,65 @@ +# 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.10-gentoo-paths.patch b/dev-util/dogtail/files/dogtail-0.9.10-gentoo-paths.patch new file mode 100644 index 000000000000..89d2be2c725a --- /dev/null +++ b/dev-util/dogtail/files/dogtail-0.9.10-gentoo-paths.patch @@ -0,0 +1,67 @@ +From d0dd6c6adb4edcd5147c42af14cd1016a67e84bd Mon Sep 17 00:00:00 2001 +From: Gilles Dartiguelongue +Date: Sat, 12 Aug 2017 00:59:44 +0200 +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 | 29 +++++++++-------------------- + 1 file changed, 9 insertions(+), 20 deletions(-) + +diff --git a/sniff/sniff b/sniff/sniff +index 7ce67c7..84f7022 100755 +--- a/sniff/sniff ++++ b/sniff/sniff +@@ -47,25 +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' +- try: +- self.app.set_icon_from_file(os.path.join(path, 'share/icons/hicolor/scalable/apps/dogtail-head.svg')) +- except Exception: # fallback for wierd installations, when sniff is neither in /bin or /usr/bin +- self.app.set_icon_from_file('/usr/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() +@@ -656,11 +649,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.14.0 + 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 new file mode 100644 index 000000000000..522249949228 --- /dev/null +++ b/dev-util/dogtail/files/dogtail-0.9.9-gentoo-paths.patch @@ -0,0 +1,64 @@ +From 069a17e22a73ecff686b650ba158a292cc508cb5 Mon Sep 17 00:00:00 2001 +From: Gilles Dartiguelongue +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 new file mode 100644 index 000000000000..a3f7ef77230d --- /dev/null +++ b/dev-util/dogtail/files/dogtail-0.9.9-get-user.patch @@ -0,0 +1,43 @@ +From 1ee93bf9d0d8a143f5faf9d1310d768d1de4ece4 Mon Sep 17 00:00:00 2001 +From: Gilles Dartiguelongue +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 , David Malcolm + + + + gnome@gentoo.org + Gentoo GNOME Desktop + + -- cgit v1.2.3