[arch-commits] Commit in python-pymongo/repos (4 files)

Evangelos Foutras foutrelis at archlinux.org
Sun Sep 20 05:37:12 UTC 2015


    Date: Sunday, September 20, 2015 @ 07:37:11
  Author: foutrelis
Revision: 141170

archrelease: copy trunk to community-staging-x86_64, community-staging-i686

Added:
  python-pymongo/repos/community-staging-i686/
  python-pymongo/repos/community-staging-i686/PKGBUILD
    (from rev 141169, python-pymongo/trunk/PKGBUILD)
  python-pymongo/repos/community-staging-x86_64/
  python-pymongo/repos/community-staging-x86_64/PKGBUILD
    (from rev 141169, python-pymongo/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   73 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   73 ++++++++++++++++++++++++++++++++++++
 2 files changed, 146 insertions(+)

Copied: python-pymongo/repos/community-staging-i686/PKGBUILD (from rev 141169, python-pymongo/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-20 05:37:11 UTC (rev 141170)
@@ -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.3
+pkgrel=2
+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=('3c6b2317f8031bc1e200fd1ea35f00a96f4569e3f3f220a5e66ab6227d96ccaf')
+
+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-staging-x86_64/PKGBUILD (from rev 141169, python-pymongo/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-20 05:37:11 UTC (rev 141170)
@@ -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.3
+pkgrel=2
+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=('3c6b2317f8031bc1e200fd1ea35f00a96f4569e3f3f220a5e66ab6227d96ccaf')
+
+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