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

Felix Yan felixonmars at archlinux.org
Fri Aug 25 13:43:27 UTC 2017


    Date: Friday, August 25, 2017 @ 13:43:26
  Author: felixonmars
Revision: 253364

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

Added:
  python-shapely/repos/community-testing-i686/
  python-shapely/repos/community-testing-i686/PKGBUILD
    (from rev 253363, python-shapely/trunk/PKGBUILD)
  python-shapely/repos/community-testing-x86_64/
  python-shapely/repos/community-testing-x86_64/PKGBUILD
    (from rev 253363, python-shapely/trunk/PKGBUILD)

-----------------------------------+
 community-testing-i686/PKGBUILD   |   67 ++++++++++++++++++++++++++++++++++++
 community-testing-x86_64/PKGBUILD |   67 ++++++++++++++++++++++++++++++++++++
 2 files changed, 134 insertions(+)

Copied: python-shapely/repos/community-testing-i686/PKGBUILD (from rev 253363, python-shapely/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2017-08-25 13:43:26 UTC (rev 253364)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: David Verelst <david dot verelst at gmail com>
+# Contributor: richli
+
+pkgbase=python-shapely
+pkgname=(python-shapely python2-shapely)
+pkgver=1.6.0
+pkgrel=1
+pkgdesc="Manipulation and analysis of geometric objects in the Cartesian plane"
+arch=('i686' 'x86_64')
+url="https://pypi.python.org/pypi/Shapely"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-packaging' 'python2-packaging' 'geos'
+             'python-numpy' 'python2-numpy' 'cython' 'cython2')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("https://pypi.io/packages/source/S/Shapely/Shapely-${pkgver}.tar.gz")
+md5sums=('83768fd1104a82148f4bee38597af49e')
+
+prepare() {
+  rm -r Shapely-$pkgver/_vendor
+  sed -i 's/from _vendor.packaging./from packaging./' Shapely-$pkgver/setup.py
+
+  cp -a Shapely-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/Shapely-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/Shapely-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  # TODO: make the hack less dirty...
+
+  cd "$srcdir"/Shapely-$pkgver
+  mv shapely shapely.bak
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.6:$PYTHONPATH" py.test
+  mv shapely.bak shapely
+
+  cd "$srcdir"/Shapely-$pkgver-py2
+  mv shapely shapely.bak
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" py.test2
+  mv shapely.bak shapely
+}
+
+package_python-shapely() {
+  depends=('geos' 'python')
+  optdepends=('python-numpy: for shapely.vectorized submodule')
+
+  cd "$srcdir"/Shapely-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-shapely() {
+  depends=('geos' 'python2')
+  optdepends=('python2-numpy: for shapely.vectorized submodule')
+
+  cd "$srcdir"/Shapely-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:

Copied: python-shapely/repos/community-testing-x86_64/PKGBUILD (from rev 253363, python-shapely/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-08-25 13:43:26 UTC (rev 253364)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: David Verelst <david dot verelst at gmail com>
+# Contributor: richli
+
+pkgbase=python-shapely
+pkgname=(python-shapely python2-shapely)
+pkgver=1.6.0
+pkgrel=1
+pkgdesc="Manipulation and analysis of geometric objects in the Cartesian plane"
+arch=('i686' 'x86_64')
+url="https://pypi.python.org/pypi/Shapely"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-packaging' 'python2-packaging' 'geos'
+             'python-numpy' 'python2-numpy' 'cython' 'cython2')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("https://pypi.io/packages/source/S/Shapely/Shapely-${pkgver}.tar.gz")
+md5sums=('83768fd1104a82148f4bee38597af49e')
+
+prepare() {
+  rm -r Shapely-$pkgver/_vendor
+  sed -i 's/from _vendor.packaging./from packaging./' Shapely-$pkgver/setup.py
+
+  cp -a Shapely-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/Shapely-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/Shapely-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  # TODO: make the hack less dirty...
+
+  cd "$srcdir"/Shapely-$pkgver
+  mv shapely shapely.bak
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.6:$PYTHONPATH" py.test
+  mv shapely.bak shapely
+
+  cd "$srcdir"/Shapely-$pkgver-py2
+  mv shapely shapely.bak
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" py.test2
+  mv shapely.bak shapely
+}
+
+package_python-shapely() {
+  depends=('geos' 'python')
+  optdepends=('python-numpy: for shapely.vectorized submodule')
+
+  cd "$srcdir"/Shapely-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-shapely() {
+  depends=('geos' 'python2')
+  optdepends=('python2-numpy: for shapely.vectorized submodule')
+
+  cd "$srcdir"/Shapely-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list