diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2016-09-05 00:00:23 +0200 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2016-09-05 01:19:49 +0200 |
commit | eabead98ddab96cf61a0d9a14fdd173a1c0c2a0a (patch) | |
tree | 213c9fd7b78b1a093fd3d2805aa6ad944619692a | |
parent | games-arcade/gnome-nibbles: raise libgames-support to >=1 (diff) | |
download | gentoo-eabead98ddab96cf61a0d9a14fdd173a1c0c2a0a.tar.gz gentoo-eabead98ddab96cf61a0d9a14fdd173a1c0c2a0a.tar.bz2 gentoo-eabead98ddab96cf61a0d9a14fdd173a1c0c2a0a.zip |
gnome-extra/gnome-weather: fix support for unittests
Package-Manager: portage-2.3.0
-rw-r--r-- | gnome-extra/gnome-weather/gnome-weather-3.20.1.ebuild | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gnome-extra/gnome-weather/gnome-weather-3.20.1.ebuild b/gnome-extra/gnome-weather/gnome-weather-3.20.1.ebuild index 4930c5048a2e..805ccd1b29a6 100644 --- a/gnome-extra/gnome-weather/gnome-weather-3.20.1.ebuild +++ b/gnome-extra/gnome-weather/gnome-weather-3.20.1.ebuild @@ -3,7 +3,9 @@ # $Id$ EAPI=6 -inherit gnome2 virtualx +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit gnome2 python-any-r1 virtualx DESCRIPTION="A weather application for GNOME" HOMEPAGE="https://wiki.gnome.org/Design/Apps/Weather" @@ -26,9 +28,19 @@ DEPEND="${RDEPEND} dev-libs/appstream-glib >=dev-util/intltool-0.26 virtual/pkgconfig - test? ( dev-util/dogtail ) + test? ( + ${PYTHON_DEPS} + $(python_gen_any_dep 'dev-util/dogtail[${PYTHON_USEDEP}]') ) " +python_check_deps() { + use test && has_version "dev-util/dogtail[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + src_configure() { gnome2_src_configure $(use_enable test dogtail) } |