Skip to content

Commit

Permalink
gnome-extra/gnome-weather: fix support for unittests
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.3.0
  • Loading branch information
EvaSDK committed Sep 4, 2016
1 parent a5b8d94 commit eabead9
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions gnome-extra/gnome-weather/gnome-weather-3.20.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)
}
Expand Down

0 comments on commit eabead9

Please sign in to comment.