summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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