commit:     3cea5038fffa867a5371cf073788a9fec04fce55
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Thu May 25 15:23:27 2017 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Thu May 25 15:23:27 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cea5038

dev-libs/mongo-c-driver: fix python_check_deps logic

Package-Manager: Portage-2.3.6_p1, Repoman-2.3.2_p69

 dev-libs/mongo-c-driver/mongo-c-driver-0.7.1-r1.ebuild | 4 +++-
 dev-libs/mongo-c-driver/mongo-c-driver-0.8.1-r1.ebuild | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-0.7.1-r1.ebuild 
b/dev-libs/mongo-c-driver/mongo-c-driver-0.7.1-r1.ebuild
index 25e9c58a643..a9d4a790780 100644
--- a/dev-libs/mongo-c-driver/mongo-c-driver-0.7.1-r1.ebuild
+++ b/dev-libs/mongo-c-driver/mongo-c-driver-0.7.1-r1.ebuild
@@ -24,7 +24,9 @@ DEPEND="${PYTHON_DEPS}
 "
 
 python_check_deps() {
-       use doc && has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
+       if use doc; then
+               has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
+       fi
 }
 
 src_unpack() {

diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-0.8.1-r1.ebuild 
b/dev-libs/mongo-c-driver/mongo-c-driver-0.8.1-r1.ebuild
index cadb8fb4812..764dce23aa5 100644
--- a/dev-libs/mongo-c-driver/mongo-c-driver-0.8.1-r1.ebuild
+++ b/dev-libs/mongo-c-driver/mongo-c-driver-0.8.1-r1.ebuild
@@ -25,7 +25,9 @@ DEPEND="${PYTHON_DEPS}
 PATCHES=( "${FILESDIR}/${PV}-api-version.diff" )
 
 python_check_deps() {
-       use doc && has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
+       if use doc; then
+               has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
+       fi
 }
 
 src_unpack() {

Reply via email to