From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-util/dogtail/dogtail-0.9.10.ebuild | 61 ++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 dev-util/dogtail/dogtail-0.9.10.ebuild (limited to 'dev-util/dogtail/dogtail-0.9.10.ebuild') 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..935b8334b61f --- /dev/null +++ b/dev-util/dogtail/dogtail-0.9.10.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +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 +} -- cgit v1.2.3