diff options
Diffstat (limited to 'dev-libs/mongo-c-driver/mongo-c-driver-0.8.1-r1.ebuild')
-rw-r--r-- | dev-libs/mongo-c-driver/mongo-c-driver-0.8.1-r1.ebuild | 12 |
1 files changed, 9 insertions, 3 deletions
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 141428d9427d..c859c9d38c69 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 @@ -1,11 +1,11 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/mongo-c-driver/mongo-c-driver-0.8.1-r1.ebuild,v 1.1 2014/03/27 17:05:08 chainsaw Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/mongo-c-driver/mongo-c-driver-0.8.1-r1.ebuild,v 1.2 2014/03/27 21:24:49 floppym Exp $ EAPI="5" PYTHON_COMPAT=( python{2_6,2_7} ) -inherit base multilib python-r1 +inherit base multilib python-any-r1 DESCRIPTION="C Driver for MongoDB" HOMEPAGE="http://www.mongodb.org/ https://github.com/mongodb/mongo-c-driver" @@ -20,9 +20,15 @@ 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}]') ) +" PATCHES=( "${FILESDIR}/${PV}-api-version.diff" ) +python_check_deps() { + use !doc || has_version "dev-python/sphinx[${PYTHON_USEDEP}]" +} + src_unpack() { unpack ${A} mv *-${PN}-* "${S}" |