summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexys Jacob <ultrabug@gentoo.org>2014-04-08 14:57:33 +0000
committerAlexys Jacob <ultrabug@gentoo.org>2014-04-08 14:57:33 +0000
commit99c5257a79ed7fba47d644278eafbb060f8ea4db (patch)
tree1548ca7b94395f015e5878b2169bb9eba69c5ee5 /dev-python/pymongo
parentVersion bump, remove old. (diff)
downloadhistorical-99c5257a79ed7fba47d644278eafbb060f8ea4db.tar.gz
historical-99c5257a79ed7fba47d644278eafbb060f8ea4db.tar.bz2
historical-99c5257a79ed7fba47d644278eafbb060f8ea4db.zip
version bump
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0xB658FA13
Diffstat (limited to 'dev-python/pymongo')
-rw-r--r--dev-python/pymongo/ChangeLog7
-rw-r--r--dev-python/pymongo/Manifest22
-rw-r--r--dev-python/pymongo/pymongo-2.7.ebuild130
3 files changed, 142 insertions, 17 deletions
diff --git a/dev-python/pymongo/ChangeLog b/dev-python/pymongo/ChangeLog
index e69e8c916513..ff978583b1eb 100644
--- a/dev-python/pymongo/ChangeLog
+++ b/dev-python/pymongo/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/pymongo
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pymongo/ChangeLog,v 1.36 2014/03/31 21:17:23 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pymongo/ChangeLog,v 1.37 2014/04/08 14:57:23 ultrabug Exp $
+
+*pymongo-2.7 (08 Apr 2014)
+
+ 08 Apr 2014; Ultrabug <ultrabug@gentoo.org> +pymongo-2.7.ebuild:
+ version bump
31 Mar 2014; Michał Górny <mgorny@gentoo.org> pymongo-2.5.2.ebuild,
pymongo-2.6.2.ebuild, pymongo-2.6.3.ebuild:
diff --git a/dev-python/pymongo/Manifest b/dev-python/pymongo/Manifest
index 9b92f27cc2e8..fb603b6b93be 100644
--- a/dev-python/pymongo/Manifest
+++ b/dev-python/pymongo/Manifest
@@ -5,27 +5,17 @@ AUX pymongo-2.5.1-greenlet.patch 673 SHA256 c3a0822fbb8892288bda09e0ab54a88d0d5d
DIST pymongo-2.5.2.tar.gz 303234 SHA256 84ac1da67d0dabc711fa8259324d4e94b26a85411bcf0c12dc80a427d9f93ecc SHA512 6137bfcd60776b819a4ca4eb09ba3058a62696ab3533646c5f735ec4d336aa888cf0b8b1975acf1522bbd04416ff4337bf8481a0506421730dfdf712232c75c7 WHIRLPOOL 65c9ef69dd75af13ec7e05e77d2f9afc19c32723901bdf28488121770f53dec340721cb6e891d8cd9009547d95957f61dbf9bef72e725f79bcab38a41d94fba7
DIST pymongo-2.6.2.tar.gz 322913 SHA256 091d584f7b5d8de60bf6152d9269ec9a29ae7fa34415862b2f092af393233c4e SHA512 786119c788d716bb78a2e40f4a98f1d9be2e5945162ea7b24b5b39535872ba509f75aaeff535ba9cdc483147a4498ffbdf0d483a78464c6075b76bc0816a0cf1 WHIRLPOOL afac43b7d567ab3a629aad3a26ffb5583a1d1a12e4477f6826992ee71431e1947591918895f0dcf0ec48c261c583823534f1e0d1c31746d1651bb273b0f75617
DIST pymongo-2.6.3.tar.gz 324241 SHA256 cabe1d785ad5db6ed8ff70dcb9c987958fc75400f066ec78911ca3f37184a4e2 SHA512 6da3cbf035b52379c24df37b76e1eb743b12c1026116e28e4e7b6450e2674d730f9c8c2dd85f352c6ee4c9f604decaffc2dbc57fe64268bd7522d8ce155cca9e WHIRLPOOL ac36dd88c4311237ecda66a6008fa0d89d0670e331df6c49a08a1d3bc4ddcafe72e8e003009c206d3ac12afb1b14afe2d3615834a5a8df5ce30442f7b49fdbf2
+DIST pymongo-2.7.tar.gz 376543 SHA256 8320bbbb8ca76de86bd47c253cfbfc4aedae3439fc57f6a9f8fdfa15a00bd601 SHA512 da7d10d9d413ecaac92888ebdec05247992586c5a2432770083a704805e17816788a71aa0f25d5cddebd98320a1c8f5f46b59f1c4b1ff9590454bf894510b387 WHIRLPOOL 520ff0501edf47204d9c61e229dba825c29a1ff8238d8555891638adf5e37f94220eca554f7082c1b196f6c97823d19fb174f5fff7816284fa56d4a610001ed7
EBUILD pymongo-2.5.2.ebuild 3314 SHA256 410867d2903199249666672d78e863833facde59c50391e6f7c7c61d924e9eb4 SHA512 2ba16b5b984fa4fce89ccd7db1bcd21abc1c4e4b207623e73bc42c104f203ceffb4b8f45222ca648297e76dd752eaedc611c6ba9b24c4b65de96add33402fa54 WHIRLPOOL 3aa8d0a8775c37dc722bc84567ce9e316446153b2795270d979417794bd2b3904543f3f0f9d4dd0f0a1af1891f6533c322d8db32317d0cf748794a1a1ae91c68
EBUILD pymongo-2.6.2.ebuild 3260 SHA256 91a0859214e9977083821f0315cb377d693f5884edafb2641fec99247cb79afa SHA512 dfd27b3a92fa9fc7da29de4f9d8d7174fff4f82353a0af4fc16631a4a9560a6b982429f38570e765ec2630e9946cde114770988d7ee64d66008a68f15d56e9f0 WHIRLPOOL 6b91adc7fac53891437cfa8a4877e4b134540cb011656441428b834769ff9d97f680e622b19ebd3727df3a65b6c744a6ea6028af2b51c2b01eedc2d2898ef6ce
EBUILD pymongo-2.6.3.ebuild 3258 SHA256 31395fbb9dc4439f9447cca476684a0a23acc27533a0fb146915766f9b1a753e SHA512 f641529858323e125fc6d0516b21202d1bc463bfd93319b97f6c2317a5215488794e36eaf37d577acc946a9288ece12aad4da4656d0acd374c1dac365f3ef495 WHIRLPOOL 3d2b588bde1521345104416a9a5a68c3aacc71a5ac0c0ad8ece88c5366a306176fafe89e91c1d16691f2a882a0698304afcb2aea18c74655149eb6f0b2ef3f6a
-MISC ChangeLog 5604 SHA256 8f125698d2c5ec93a7ad8b22dceb26ea93f9d4edc869cf83d546aa483af7ce69 SHA512 98838d82965984baed02a9ccdd573a400f5b604bfd7e38d21cbb7197b5963a6f285c32aa0a3403f267b1f6b6f17d87dec316ab891b0d69346c625d13c69a03b9 WHIRLPOOL 9f221b743d40eb542789e0692de014f4373d4fb90444caebea64e720843c2accf3ac36c562e8a9b5c0d417997aa3119255d57208ddb563132d1727e304e0b2c4
+EBUILD pymongo-2.7.ebuild 3260 SHA256 c8a01b9429be812ee7b0d82cc94abee03a834a56b422437dac36dbffeee3bf89 SHA512 406204adb27ec4ec00fb18acbd9d30c379697896e91618991da9aa7590c0cb9f71750977e072c25a915d1afb3181f297a0b74327babd4c21b45a7559b419e7a3 WHIRLPOOL 144796ef968f7ad1582481502a9b5db5d221fff1ff4109a8b8081976c08501c15dc8a946a5f5187a217f2f4b80e774db376c7d3cf63ef771cd9a11bccfc26dfc
+MISC ChangeLog 5717 SHA256 29b047b21543a2b4a257fe91f2ef73dba6f4a1b52a0c93251d6d65b46245d15a SHA512 4a7ebf6c0b86d63cb7b0bf42415c849056e5e26ecb3affc276db52d8b2617db7ae8b30eaee3f7d7b23ac0dcfe444a69b26f2a34ba51f9dda2de9cb5874421ebf WHIRLPOOL af9c58f702726b62d7d201ae22b1bf40f0ed697b496295a1b5376347ac2b9a534a7c2cd24d911e1f0d57d03200cb83294935a55bf54e418821b6ae693a6b3bec
MISC metadata.xml 938 SHA256 727efde10e259e145e89f23269b52226b658ca5636f45997ab3450a623afe930 SHA512 8dba1e47b077267bda609ffd22b7526f7019c489722f7bfe32b47a24974756f531efa0258e65f2b45223cb7f1dc4d29489b5437c5d871cb0fa39de4c053377bb WHIRLPOOL c2bbf2195c841e2c0501801aa8c171fce707539dece8eba5e61e6edfdb5a5d5d11b1f7df54c7ff73493dcb3c821f52288d3aef8e6bdd9616a46218af5c25ca72
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQJ8BAEBCABmBQJTOdtoXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
-ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2REJCMDdDQzRGMERBRDA2RUEwQUZFNDFC
-MDdBMUFFQUVGQjQ0NjRFAAoJELB6GurvtEZO0SgQAMVwUPRGTUXSjxLS3NvJExe9
-uKMwPjD+29Rw2x/rh4KgMO6IlQ471UBujoEsFErugKuCIWtUy84cOc/o2UaVL8Z5
-Damni0iHDn0EW5Ro8qXgNxpAAjiMmbE2fXpca/us2xm8uglvZF8HrIbHOM0/+haR
-dULGJIjATgbWEIEcNIPdWh400H+oBXawOhTDagBn97LH8G/w3sezKb5rp2Mno3Dz
-BGHwFCnob/zis5O2TE4bc6J+Hl3v09D/JQJV/BNQI2qnWkS3xgueE6tOeVLlKHsh
-zro71A3jOsHMtMHnTbuwPFwC7zaobNt6Ep8tJwuL2qOWuwNwGkYW+iOM/fvq6eOx
-iHAk5C6ilAOrzcR7W/KNOe8y/oauigJKZgdoV9fjboLtlHTL/3ZnUudEeckRfbV8
-9l++ZIsBg6VcrL180LFacXkK1ZdJh3+hvfmYHvqixqq5JE4L8zP/X8oJ/T+t5oHl
-Xj6gaCbqFPzvMSIoz3ZeBMKOrLkyqcbrHduiWHAdN/mt9DR4k4i9hVH+4ktwN9UT
-UT2Xsncxb7gbMu7WldXKbvPOdYEvFIXWq5VMvqJ5kuH023xWKt5td6x104bbqp6w
-UQLlX0b5lc5D8tHF93B/u8nh0tAkwB4KC1hblHbvWxgA1XcLr0f7TcM2JciYzWW1
-kLh4dcQPqZx4nqgIXJgf
-=j/on
+iF4EAREIAAYFAlNEDlsACgkQKiQSS7ZY+hNcqgD9Gab5fdz8AHEmuSRBr4ZQxhl6
+BxosMaY4ZXcwNQPiFFsA/1Sl4eFWvOSIGQ+yXb9g5Zr88z+tDIUHLHrIwJhMdixd
+=AIjL
-----END PGP SIGNATURE-----
diff --git a/dev-python/pymongo/pymongo-2.7.ebuild b/dev-python/pymongo/pymongo-2.7.ebuild
new file mode 100644
index 000000000000..7f5bf43dd1b7
--- /dev/null
+++ b/dev-python/pymongo/pymongo-2.7.ebuild
@@ -0,0 +1,130 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pymongo/pymongo-2.7.ebuild,v 1.1 2014/04/08 14:57:23 ultrabug Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy pypy2_0 )
+
+inherit check-reqs distutils-r1
+
+DESCRIPTION="Python driver for MongoDB"
+HOMEPAGE="http://github.com/mongodb/mongo-python-driver http://pypi.python.org/pypi/pymongo"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc kerberos mod_wsgi test"
+
+RDEPEND="dev-db/mongodb"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )
+ kerberos? ( dev-python/pykerberos )"
+DISTUTILS_IN_SOURCE_BUILD=1
+
+reqcheck() {
+ if use test; then
+ # During the tests, database size reaches 1.5G.
+ local CHECKREQS_DISK_BUILD=1536M
+
+ check-reqs_${1}
+ fi
+}
+
+pkg_pretend() {
+ reqcheck pkg_pretend
+}
+
+pkg_setup() {
+ reqcheck pkg_setup
+}
+
+python_compile_all() {
+ if use doc; then
+ mkdir html || die
+ sphinx-build doc html || die
+ fi
+}
+
+src_test() {
+ # Yes, we need TCP/IP for that...
+ local DB_IP=127.0.0.1
+ local DB_PORT=27000
+
+ export DB_IP DB_PORT
+
+ # 1.5G of disk space per run.
+ local DISTUTILS_NO_PARALLEL_BUILD=1
+
+ distutils-r1_src_test
+}
+
+python_test() {
+ local dbpath=${TMPDIR}/mongo.db
+ local logpath=${TMPDIR}/mongod.log
+
+ # Now, the hard part: we need to find a free port for mongod.
+ # We're just trying to run it random port numbers and check the log
+ # for bind errors. It shall be noted that 'mongod --fork' does not
+ # return failure when it fails to bind.
+
+ mkdir -p "${dbpath}" || die
+ while true; do
+ ebegin "Trying to start mongod on port ${DB_PORT}"
+
+ LC_ALL=C \
+ mongod --dbpath "${dbpath}" --smallfiles --nojournal \
+ --bind_ip ${DB_IP} --port ${DB_PORT} \
+ --unixSocketPrefix "${TMPDIR}" \
+ --logpath "${logpath}" --fork \
+ && sleep 2
+
+ # Now we need to check if the server actually started...
+ if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
+ # yay!
+ eend 0
+ break
+ elif grep -q 'Address already in use' "${logpath}"; then
+ # ay, someone took our port!
+ eend 1
+ : $(( DB_PORT += 1 ))
+ continue
+ else
+ eend 1
+ eerror "Unable to start mongod for tests. See the server log:"
+ eerror " ${logpath}"
+ die "Unable to start mongod for tests."
+ fi
+ done
+
+ local failed
+ #https://jira.mongodb.org/browse/PYTHON-521, py2.[6-7] has intermittent failure with gevent
+ pushd "${BUILD_DIR}"/../ > /dev/null
+ if [[ "${EPYTHON}" == python3* ]]; then
+ 2to3 --no-diffs -w test
+ fi
+ DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
+
+ mongod --dbpath "${dbpath}" --shutdown
+
+ [[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
+
+ rm -rf "${dbpath}"
+}
+
+python_install() {
+ # Maintainer note:
+ # In order to work with mod_wsgi, we need to disable the C extension.
+ # See [1] for more information.
+ # [1] http://api.mongodb.org/python/current/faq.html#does-pymongo-work-with-mod-wsgi
+ distutils-r1_python_install $(use mod_wsgi && echo --no_ext)
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( html/. )
+
+ distutils-r1_python_install_all
+}