Gentoo Archives: gentoo-commits

From: "Alexys Jacob (ultrabug)" <ultrabug@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pymongo: pymongo-2.1.1.ebuild ChangeLog
Date: Mon, 30 Jan 2012 13:22:10
Message-Id: 20120130132201.8BDE12004B@flycatcher.gentoo.org
1 ultrabug 12/01/30 13:22:01
2
3 Modified: ChangeLog
4 Added: pymongo-2.1.1.ebuild
5 Log:
6 version bump, fix #401247
7
8 (Portage version: 2.1.10.44/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.9 dev-python/pymongo/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pymongo/ChangeLog?rev=1.9&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pymongo/ChangeLog?rev=1.9&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pymongo/ChangeLog?r1=1.8&r2=1.9
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/pymongo/ChangeLog,v
20 retrieving revision 1.8
21 retrieving revision 1.9
22 diff -u -r1.8 -r1.9
23 --- ChangeLog 13 Dec 2011 17:47:42 -0000 1.8
24 +++ ChangeLog 30 Jan 2012 13:22:01 -0000 1.9
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/pymongo
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pymongo/ChangeLog,v 1.8 2011/12/13 17:47:42 ultrabug Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pymongo/ChangeLog,v 1.9 2012/01/30 13:22:01 ultrabug Exp $
31 +
32 +*pymongo-2.1.1 (30 Jan 2012)
33 +
34 + 30 Jan 2012; <alexys@g.o> +pymongo-2.1.1.ebuild:
35 + Version bump wrt #401247
36
37 *pymongo-2.1 (13 Dec 2011)
38
39
40
41
42 1.1 dev-python/pymongo/pymongo-2.1.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pymongo/pymongo-2.1.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pymongo/pymongo-2.1.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: pymongo-2.1.1.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/pymongo/pymongo-2.1.1.ebuild,v 1.1 2012/01/30 13:22:01 ultrabug Exp $
52
53 EAPI="3"
54 PYTHON_DEPEND="2"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="3.*"
57 PYTHON_TESTS_FAILURES_TOLERANT_ABIS="*-jython"
58 DISTUTILS_SRC_TEST="nosetests"
59
60 inherit distutils
61
62 DESCRIPTION="Python driver for MongoDB"
63 HOMEPAGE="http://github.com/mongodb/mongo-python-driver http://pypi.python.org/pypi/pymongo"
64 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
65
66 LICENSE="Apache-2.0"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69 IUSE="doc mod_wsgi"
70
71 RDEPEND="dev-db/mongodb"
72 DEPEND="${RDEPEND}
73 dev-python/setuptools
74 doc? ( dev-python/sphinx )"
75
76 PYTHON_MODNAME="bson gridfs pymongo"
77
78 src_compile() {
79 distutils_src_compile
80
81 if use doc; then
82 einfo "Generation of documentation"
83 mkdir html
84 sphinx-build doc html || die "Generation of documentation failed"
85 fi
86 }
87
88 distutils_src_test_pre_hook() {
89 mkdir -p "${T}/tests-${PYTHON_ABI}/mongo.db"
90 mongod --dbpath "${T}/tests-${PYTHON_ABI}/mongo.db" --fork --logpath "${T}/tests-${PYTHON_ABI}/mongo.log"
91 }
92
93 src_test() {
94 distutils_src_test
95 killall -u "$(id -nu)" mongod
96 }
97
98 src_install() {
99 # Maintainer note:
100 # In order to work with mod_wsgi, we need to disable the C extension.
101 # See [1] for more information.
102 # [1] http://api.mongodb.org/python/current/faq.html#does-pymongo-work-with-mod-wsgi
103 distutils_src_install $(use mod_wsgi && echo --no_ext)
104
105 if use doc; then
106 dohtml -r html/* || die "Error installing docs"
107 fi
108 }