diff options
author | Mike Gilbert <floppym@gentoo.org> | 2017-05-23 14:46:08 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2017-05-23 14:47:06 -0400 |
commit | e54ed1a69dce31bd27a49abdf18ad27f976f6f0a (patch) | |
tree | 9c648784433192949b01b28311aa40aec43da05a /net-misc/networkmanager | |
parent | sci-mathematics/nestedsums: src_test added (diff) | |
download | gentoo-e54ed1a69dce31bd27a49abdf18ad27f976f6f0a.tar.gz gentoo-e54ed1a69dce31bd27a49abdf18ad27f976f6f0a.tar.bz2 gentoo-e54ed1a69dce31bd27a49abdf18ad27f976f6f0a.zip |
net-misc/networkmanager: add introspection deps
Reported by Anarchy.
Package-Manager: Portage-2.3.6_p1, Repoman-2.3.2_p69
Diffstat (limited to 'net-misc/networkmanager')
-rw-r--r-- | net-misc/networkmanager/networkmanager-1.8.0.ebuild | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/net-misc/networkmanager/networkmanager-1.8.0.ebuild b/net-misc/networkmanager/networkmanager-1.8.0.ebuild index fb6c63694dcb..32c1d37225a7 100644 --- a/net-misc/networkmanager/networkmanager-1.8.0.ebuild +++ b/net-misc/networkmanager/networkmanager-1.8.0.ebuild @@ -76,6 +76,11 @@ DEPEND="${COMMON_DEPEND} >=sys-devel/gettext-0.17 >=sys-kernel/linux-headers-2.6.29 virtual/pkgconfig[${MULTILIB_USEDEP}] + introspection? ( + $(python_gen_any_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]') + dev-lang/perl + dev-libs/libxslt + ) vala? ( $(vala_depend) ) test? ( $(python_gen_any_dep ' @@ -85,12 +90,17 @@ DEPEND="${COMMON_DEPEND} " python_check_deps() { + local rv=0 + if use introspection; then + has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" + (( rv |= $? )) + fi if use test; then has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" && has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" - else - return 0 + (( rv |= $? )) fi + return ${rv} } sysfs_deprecated_check() { @@ -125,7 +135,9 @@ pkg_setup() { linux-info_pkg_setup fi enewgroup plugdev - use test && python-any-r1_pkg_setup + if use introspection || use test; then + python-any-r1_pkg_setup + fi } src_prepare() { |