dev-libs/mongo-c-driver: [QA] Add missing python metadata variables
authorDavid Seifert <soap@gentoo.org>
Sun, 23 Apr 2017 08:38:09 +0000 (10:38 +0200)
committerDavid Seifert <soap@gentoo.org>
Sun, 23 Apr 2017 11:22:54 +0000 (13:22 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.2

dev-libs/mongo-c-driver/mongo-c-driver-0.7.1-r1.ebuild
dev-libs/mongo-c-driver/mongo-c-driver-0.8.1-r1.ebuild

index 7226e95ee5d4a05bd62981a29bba5a06fa80e85f..25e9c58a64389c8b10081f74936c139db8da6df0 100644 (file)
@@ -2,9 +2,9 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
-PYTHON_COMPAT=(python2_7)
+PYTHON_COMPAT=( python2_7 )
 
-inherit flag-o-matic multilib python-r1 toolchain-funcs
+inherit flag-o-matic multilib python-any-r1 toolchain-funcs
 
 DESCRIPTION="C Driver for MongoDB"
 HOMEPAGE="http://www.mongodb.org/ https://github.com/mongodb/mongo-c-driver"
@@ -19,7 +19,13 @@ IUSE="doc static-libs"
 RESTRICT="test"
 
 RDEPEND=""
-DEPEND="doc? ( dev-python/sphinx )"
+DEPEND="${PYTHON_DEPS}
+       doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') )
+"
+
+python_check_deps() {
+       use doc && has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
+}
 
 src_unpack() {
        unpack ${A}
index aaf844fa1fc169a31d763e7681242c3ba1a97963..cadb8fb4812be1b2ce21465f29c172cccf5c26de 100644 (file)
@@ -25,7 +25,7 @@ DEPEND="${PYTHON_DEPS}
 PATCHES=( "${FILESDIR}/${PV}-api-version.diff" )
 
 python_check_deps() {
-       use !doc || has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
+       use doc && has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
 }
 
 src_unpack() {