summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2017-04-23 10:38:09 +0200
committerDavid Seifert <soap@gentoo.org>2017-04-23 13:22:54 +0200
commitf94674fd0e06eb7270130e7cbf9e4aa0283395b5 (patch)
tree464f0a10d249d37d23dbf9083bb1483f674fa75f /dev-libs/mongo-c-driver
parentdev-libs/marisa: [QA] Add missing python metadata variables (diff)
downloadgentoo-f94674fd0e06eb7270130e7cbf9e4aa0283395b5.tar.gz
gentoo-f94674fd0e06eb7270130e7cbf9e4aa0283395b5.tar.bz2
gentoo-f94674fd0e06eb7270130e7cbf9e4aa0283395b5.zip
dev-libs/mongo-c-driver: [QA] Add missing python metadata variables
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-libs/mongo-c-driver')
-rw-r--r--dev-libs/mongo-c-driver/mongo-c-driver-0.7.1-r1.ebuild12
-rw-r--r--dev-libs/mongo-c-driver/mongo-c-driver-0.8.1-r1.ebuild2
2 files changed, 10 insertions, 4 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 7226e95ee5d..25e9c58a643 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
@@ -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}
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 aaf844fa1fc..cadb8fb4812 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,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() {