# 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"
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}