Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-weather/
Date: Mon, 05 Sep 2016 01:42:14
Message-Id: 1473031189.eabead98ddab96cf61a0d9a14fdd173a1c0c2a0a.eva@gentoo
1 commit: eabead98ddab96cf61a0d9a14fdd173a1c0c2a0a
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 4 22:00:23 2016 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 4 23:19:49 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eabead98
7
8 gnome-extra/gnome-weather: fix support for unittests
9
10 Package-Manager: portage-2.3.0
11
12 gnome-extra/gnome-weather/gnome-weather-3.20.1.ebuild | 16 ++++++++++++++--
13 1 file changed, 14 insertions(+), 2 deletions(-)
14
15 diff --git a/gnome-extra/gnome-weather/gnome-weather-3.20.1.ebuild b/gnome-extra/gnome-weather/gnome-weather-3.20.1.ebuild
16 index 4930c50..805ccd1 100644
17 --- a/gnome-extra/gnome-weather/gnome-weather-3.20.1.ebuild
18 +++ b/gnome-extra/gnome-weather/gnome-weather-3.20.1.ebuild
19 @@ -3,7 +3,9 @@
20 # $Id$
21
22 EAPI=6
23 -inherit gnome2 virtualx
24 +PYTHON_COMPAT=( python{2_7,3_4,3_5} )
25 +
26 +inherit gnome2 python-any-r1 virtualx
27
28 DESCRIPTION="A weather application for GNOME"
29 HOMEPAGE="https://wiki.gnome.org/Design/Apps/Weather"
30 @@ -26,9 +28,19 @@ DEPEND="${RDEPEND}
31 dev-libs/appstream-glib
32 >=dev-util/intltool-0.26
33 virtual/pkgconfig
34 - test? ( dev-util/dogtail )
35 + test? (
36 + ${PYTHON_DEPS}
37 + $(python_gen_any_dep 'dev-util/dogtail[${PYTHON_USEDEP}]') )
38 "
39
40 +python_check_deps() {
41 + use test && has_version "dev-util/dogtail[${PYTHON_USEDEP}]"
42 +}
43 +
44 +pkg_setup() {
45 + use test && python-any-r1_pkg_setup
46 +}
47 +
48 src_configure() {
49 gnome2_src_configure $(use_enable test dogtail)
50 }