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

Felix Yan felixonmars at archlinux.org
Sun Dec 25 23:02:00 UTC 2016


    Date: Sunday, December 25, 2016 @ 23:02:00
  Author: felixonmars
Revision: 202426

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

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

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

Copied: python-shapely/repos/community-staging-i686/PKGBUILD (from rev 202424, python-shapely/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2016-12-25 23:02:00 UTC (rev 202426)
@@ -0,0 +1,69 @@
+# $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.5.17
+pkgrel=2
+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=('afb3feef824bde120cd0eb63caf863f4')
+
+prepare() {
+  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
+
+  # Temporary workaround for file conflict, also the path was not following FHS
+  # https://github.com/Toblerity/Shapely/issues/287
+  mv "$pkgdir"/usr/{shapely,lib/$pkgname}
+}
+ 
+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
+
+  mv "$pkgdir"/usr/{shapely,lib/$pkgname}
+}
+
+# vim:set ts=2 sw=2 et:

Copied: python-shapely/repos/community-staging-x86_64/PKGBUILD (from rev 202424, python-shapely/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2016-12-25 23:02:00 UTC (rev 202426)
@@ -0,0 +1,69 @@
+# $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.5.17
+pkgrel=2
+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=('afb3feef824bde120cd0eb63caf863f4')
+
+prepare() {
+  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
+
+  # Temporary workaround for file conflict, also the path was not following FHS
+  # https://github.com/Toblerity/Shapely/issues/287
+  mv "$pkgdir"/usr/{shapely,lib/$pkgname}
+}
+ 
+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
+
+  mv "$pkgdir"/usr/{shapely,lib/$pkgname}
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list