[arch-commits] Commit in python-pymongo/repos (4 files)
Felix Yan
fyan at archlinux.org
Thu Apr 9 02:52:32 UTC 2015
Date: Thursday, April 9, 2015 @ 04:52:31
Author: fyan
Revision: 131005
archrelease: copy trunk to community-testing-x86_64, community-testing-i686
Added:
python-pymongo/repos/community-testing-i686/
python-pymongo/repos/community-testing-i686/PKGBUILD
(from rev 131004, python-pymongo/trunk/PKGBUILD)
python-pymongo/repos/community-testing-x86_64/
python-pymongo/repos/community-testing-x86_64/PKGBUILD
(from rev 131004, python-pymongo/trunk/PKGBUILD)
-----------------------------------+
community-testing-i686/PKGBUILD | 73 ++++++++++++++++++++++++++++++++++++
community-testing-x86_64/PKGBUILD | 73 ++++++++++++++++++++++++++++++++++++
2 files changed, 146 insertions(+)
Copied: python-pymongo/repos/community-testing-i686/PKGBUILD (from rev 131004, python-pymongo/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2015-04-09 02:52:31 UTC (rev 131005)
@@ -0,0 +1,73 @@
+# $Id$
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thomas S Hatch <thatch45 at gmail.com>
+# Contributor: Jelle van der Waa <jelle at vdwaa.nl>
+
+pkgbase=python-pymongo
+pkgname=('python-pymongo' 'python2-pymongo')
+pkgver=3.0
+pkgrel=1
+pkgdesc='Python module for using MongoDB'
+arch=('x86_64' 'i686')
+license=('APACHE')
+url='http://pypi.python.org/pypi/pymongo/'
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose' 'python2-gevent' 'mongodb' 'perl')
+optdepends=('mongodb: High-performance schema-free document-oriented database')
+source=("http://pypi.python.org/packages/source/p/pymongo/pymongo-$pkgver.tar.gz")
+sha256sums=('1919bed7ad5d73940a6628b7420d326128dc68f3f67d4158abacff8b72a4eaa7')
+
+prepare() {
+ cp -a "pymongo-$pkgver" "pymongo2-$pkgver"
+}
+
+build() {
+ cd "$srcdir/pymongo-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/pymongo2-$pkgver"
+ python2 setup.py build
+}
+
+check() {
+ _mongod_run() {
+ MONGO_TMP_PORT=$(perl -MSocket -le 'socket S, PF_INET, SOCK_STREAM,getprotobyname("tcp");
+ $port = 50000;
+ ++$port until bind S, sockaddr_in($port,inet_aton("127.1"));
+ print $port')
+ echo "Picked port $MONGO_TMP_PORT to run tests with."
+
+ # Start a mongod instance for test
+ rm -rf "$srcdir/mongo_tmp"
+ mkdir "$srcdir/mongo_tmp"
+ rm -f "$srcdir/mongo_tmp.pid"
+ mongod --bind_ip localhost --port $MONGO_TMP_PORT --dbpath "$srcdir/mongo_tmp" --nojournal \
+ --nohttpinterface --noauth --smallfiles --nssize 1 --fork --pidfilepath "$srcdir/mongo_tmp.pid" --logpath "$srcdir/mongo_tmp.log"
+
+ DB_PORT=$MONGO_TMP_PORT "$@"
+ kill $(cat "$srcdir/mongo_tmp.pid")
+ }
+
+ cd "$srcdir/pymongo-$pkgver"
+ _mongod_run python setup.py test
+
+ cd "$srcdir/pymongo2-$pkgver"
+ _mongod_run python2 setup.py test
+}
+
+package_python2-pymongo() {
+ depends=('python2')
+
+ cd "pymongo2-$pkgver"
+ python2 setup.py install --root="$pkgdir" --skip-build --optimize=1
+}
+
+package_python-pymongo() {
+ depends=('python')
+
+ cd "pymongo-$pkgver"
+ python setup.py install --root="$pkgdir" --skip-build --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
Copied: python-pymongo/repos/community-testing-x86_64/PKGBUILD (from rev 131004, python-pymongo/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2015-04-09 02:52:31 UTC (rev 131005)
@@ -0,0 +1,73 @@
+# $Id$
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thomas S Hatch <thatch45 at gmail.com>
+# Contributor: Jelle van der Waa <jelle at vdwaa.nl>
+
+pkgbase=python-pymongo
+pkgname=('python-pymongo' 'python2-pymongo')
+pkgver=3.0
+pkgrel=1
+pkgdesc='Python module for using MongoDB'
+arch=('x86_64' 'i686')
+license=('APACHE')
+url='http://pypi.python.org/pypi/pymongo/'
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose' 'python2-gevent' 'mongodb' 'perl')
+optdepends=('mongodb: High-performance schema-free document-oriented database')
+source=("http://pypi.python.org/packages/source/p/pymongo/pymongo-$pkgver.tar.gz")
+sha256sums=('1919bed7ad5d73940a6628b7420d326128dc68f3f67d4158abacff8b72a4eaa7')
+
+prepare() {
+ cp -a "pymongo-$pkgver" "pymongo2-$pkgver"
+}
+
+build() {
+ cd "$srcdir/pymongo-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/pymongo2-$pkgver"
+ python2 setup.py build
+}
+
+check() {
+ _mongod_run() {
+ MONGO_TMP_PORT=$(perl -MSocket -le 'socket S, PF_INET, SOCK_STREAM,getprotobyname("tcp");
+ $port = 50000;
+ ++$port until bind S, sockaddr_in($port,inet_aton("127.1"));
+ print $port')
+ echo "Picked port $MONGO_TMP_PORT to run tests with."
+
+ # Start a mongod instance for test
+ rm -rf "$srcdir/mongo_tmp"
+ mkdir "$srcdir/mongo_tmp"
+ rm -f "$srcdir/mongo_tmp.pid"
+ mongod --bind_ip localhost --port $MONGO_TMP_PORT --dbpath "$srcdir/mongo_tmp" --nojournal \
+ --nohttpinterface --noauth --smallfiles --nssize 1 --fork --pidfilepath "$srcdir/mongo_tmp.pid" --logpath "$srcdir/mongo_tmp.log"
+
+ DB_PORT=$MONGO_TMP_PORT "$@"
+ kill $(cat "$srcdir/mongo_tmp.pid")
+ }
+
+ cd "$srcdir/pymongo-$pkgver"
+ _mongod_run python setup.py test
+
+ cd "$srcdir/pymongo2-$pkgver"
+ _mongod_run python2 setup.py test
+}
+
+package_python2-pymongo() {
+ depends=('python2')
+
+ cd "pymongo2-$pkgver"
+ python2 setup.py install --root="$pkgdir" --skip-build --optimize=1
+}
+
+package_python-pymongo() {
+ depends=('python')
+
+ cd "pymongo-$pkgver"
+ python setup.py install --root="$pkgdir" --skip-build --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list