summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2016-09-01 09:52:19 +0200
committerGilles Dartiguelongue <eva@gentoo.org>2016-09-01 09:52:19 +0200
commit7ded4de4f3d3ac9ef896e4b8d6c2fab4b7b0e5de (patch)
treeb01e4fd9b7aeae7cf8732dab2071895cb7c92722 /gnome-extra/gnome-characters
parentgnome-base/nautilus: fix gtk+ dependency in 3.20.2 (diff)
downloadgentoo-7ded4de4f3d3ac9ef896e4b8d6c2fab4b7b0e5de.tar.gz
gentoo-7ded4de4f3d3ac9ef896e4b8d6c2fab4b7b0e5de.tar.bz2
gentoo-7ded4de4f3d3ac9ef896e4b8d6c2fab4b7b0e5de.zip
gnome-extra/gnome-characters: add missing env support for unittests
Package-Manager: portage-2.3.0
Diffstat (limited to 'gnome-extra/gnome-characters')
-rw-r--r--gnome-extra/gnome-characters/gnome-characters-3.20.1.ebuild15
1 files changed, 13 insertions, 2 deletions
diff --git a/gnome-extra/gnome-characters/gnome-characters-3.20.1.ebuild b/gnome-extra/gnome-characters/gnome-characters-3.20.1.ebuild
index d99746575e5c..b07d933c1719 100644
--- a/gnome-extra/gnome-characters/gnome-characters-3.20.1.ebuild
+++ b/gnome-extra/gnome-characters/gnome-characters-3.20.1.ebuild
@@ -4,8 +4,9 @@
EAPI=6
VALA_USE_DEPEND="vapigen"
+PYTHON_COMPAT=( python2_7 )
-inherit gnome2 vala virtualx
+inherit gnome2 python-any-r1 vala virtualx
DESCRIPTION="Unicode character map viewer and library"
HOMEPAGE="https://wiki.gnome.org/Design/Apps/CharacterMap"
@@ -28,9 +29,19 @@ DEPEND="${RDEPEND}
>=dev-util/intltool-0.50.1
sys-devel/gettext
virtual/pkgconfig
- test? ( dev-util/dogtail )
+ test? (
+ ${PYTHON_DEPS}
+ $(python_gen_any_dep 'dev-util/dogtail[${PYTHON_USEDEP}]') )
"
+python_check_deps() {
+ has_version "dev-util/dogtail[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use test && python-any-r1_pkg_setup
+}
+
src_prepare() {
gnome2_src_prepare
vala_src_prepare