[arch-commits] Commit in python-couchdb/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Aug 6 15:29:15 UTC 2016
Date: Saturday, August 6, 2016 @ 15:29:15
Author: felixonmars
Revision: 185625
archrelease: copy trunk to community-any
Added:
python-couchdb/repos/community-any/PKGBUILD
(from rev 185624, python-couchdb/trunk/PKGBUILD)
Deleted:
python-couchdb/repos/community-any/PKGBUILD
----------+
PKGBUILD | 155 +++++++++++++++++++++++++++----------------------------------
1 file changed, 70 insertions(+), 85 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2016-08-06 15:28:59 UTC (rev 185624)
+++ PKGBUILD 2016-08-06 15:29:15 UTC (rev 185625)
@@ -1,85 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Aaron DeVore <aaron.devore at gmail.com>
-# Contributor: Byron Clark <byron at theclarkfamily.name>
-# Contributor: Guan 'kuno' Qing <neokuno AT gmail DOT com>
-
-pkgbase=python-couchdb
-pkgname=(python-couchdb python2-couchdb)
-pkgver=1.0.1
-pkgrel=1
-pkgdesc="Python library for working with CouchDB"
-url="http://code.google.com/p/couchdb-python/"
-license=('BSD')
-arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('couchdb')
-source=(http://pypi.python.org/packages/source/C/CouchDB/CouchDB-$pkgver.tar.gz)
-md5sums=('bcedc91f6154b7563dfb34b3d854c6c6')
-
-prepare() {
- cp -a CouchDB-$pkgver{,-py2}
-
- cd "$srcdir/CouchDB-$pkgver-py2"
- sed -i 's/python /python2 /' Makefile
- find . -name "*.py" -exec \
- sed -i '1s|env python$|env python2|' {} \;
-}
-
-build() {
- cd "$srcdir/CouchDB-$pkgver"
- python setup.py build
-
- cd "$srcdir/CouchDB-$pkgver-py2"
- python2 setup.py build
-}
-
-check() {
- mkdir "$srcdir/tmp_couchdb"
- cat > "$srcdir/tmp_couchdb.conf" << EOF
-[couchdb]
-database_dir = "$srcdir/tmp_couchdb"
-view_index_dir = "$srcdir/tmp_couchdb"
-uri_file = "$srcdir/tmp_couchdb.uri"
-[log]
-file = "$srcdir/tmp_couchdb.log"
-EOF
-
- couchdb -a "$srcdir/tmp_couchdb.conf" &
- _COUCHDB_PID=$!
- sleep 3;
-
- cd "$srcdir/CouchDB-$pkgver"
- python setup.py test || warning "python 3 tests failed"
-
- cd "$srcdir/CouchDB-$pkgver-py2"
- python2 setup.py test
-
- kill $_COUCHDB_PID
-}
-
-package_python-couchdb() {
- depends=('python-setuptools')
-
- cd "$srcdir/CouchDB-$pkgver"
- python setup.py install --root="$pkgdir" --optimize=1
-
- install -D -m644 "COPYING" \
- "$pkgdir/usr/share/licenses/$pkgname/COPYING"
-}
-
-package_python2-couchdb() {
- depends=('python2-setuptools')
-
- cd "$srcdir/CouchDB-$pkgver-py2"
- python2 setup.py install --root="$pkgdir" --optimize=1
-
- install -D -m644 "COPYING" \
- "$pkgdir/usr/share/licenses/$pkgname/COPYING"
-
- for name in couchdb-dump couchdb-load couchdb-replicate couchpy; do
- mv "$pkgdir/usr/bin/$name"{,2}
- done
-}
-
-# vim:ts=2:sw=2:et
Copied: python-couchdb/repos/community-any/PKGBUILD (from rev 185624, python-couchdb/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2016-08-06 15:29:15 UTC (rev 185625)
@@ -0,0 +1,70 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Aaron DeVore <aaron.devore at gmail.com>
+# Contributor: Byron Clark <byron at theclarkfamily.name>
+# Contributor: Guan 'kuno' Qing <neokuno AT gmail DOT com>
+
+pkgbase=python-couchdb
+pkgname=(python-couchdb python2-couchdb)
+pkgver=1.1
+_commit=38f48c6d13cce15112f93fa97b4b8b67fb857632
+pkgrel=1
+pkgdesc="Python library for working with CouchDB"
+url="https://github.com/djc/couchdb-python/"
+license=('BSD')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-pifpaf' 'couchdb')
+source=("git+https://github.com/djc/couchdb-python.git#commit=$_commit")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a couchdb-python{,-py2}
+
+ cd "$srcdir"/couchdb-python-py2
+ sed -i 's/python /python2 /' Makefile
+ find . -name "*.py" -exec \
+ sed -i '1s|env python$|env python2|' {} \;
+}
+
+build() {
+ cd "$srcdir"/couchdb-python
+ python setup.py build
+
+ cd "$srcdir"/couchdb-python-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/couchdb-python
+ pifpaf run couchdb python setup.py test || warning "python 3 tests failed"
+
+ cd "$srcdir"/couchdb-python-py2
+ pifpaf run couchdb python2 setup.py test
+}
+
+package_python-couchdb() {
+ depends=('python-setuptools')
+
+ cd couchdb-python
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -D -m644 "COPYING" \
+ "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
+
+package_python2-couchdb() {
+ depends=('python2-setuptools')
+
+ cd couchdb-python-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ install -D -m644 "COPYING" \
+ "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+
+ for name in couchdb-dump couchdb-load couchdb-replicate couchpy couchdb-load-design-doc; do
+ mv "$pkgdir/usr/bin/$name"{,2}
+ done
+}
+
+# vim:ts=2:sw=2:et
More information about the arch-commits
mailing list