blob: ee76449edfc4d2ec8ad977444f1858522fdd5c78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
DISTUTILS_SRC_TEST="nosetests"
inherit distutils
DESCRIPTION="Python driver for MongoDB"
HOMEPAGE="http://github.com/mongodb/mongo-python-driver"
SRC_URI="http://pypi.python.org/packages/source/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc test"
RDEPEND="|| ( >=dev-lang/python-2.5
( =dev-lang/python-2.4* >=dev-python/celementtree-1.0.5 ) )"
DEPEND="${RDEPEND}
dev-python/setuptools
doc? ( dev-python/sphinx )
test? ( dev-python/nose
dev-db/mongodb )"
RESTRICT_PYTHON_ABIS="3.*"
src_compile() {
distutils_src_compile
if use doc; then
mkdir html
sphinx-build doc html || die "building docs failed"
fi
}
src_install() {
distutils_src_install
if use doc; then
dohtml -r html/* || die "Error installing docs"
fi
}
|