[arch-commits] Commit in python-basemap/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 19:33:43 UTC 2020


    Date: Thursday, November 12, 2020 @ 19:33:43
  Author: foutrelis
Revision: 753528

archrelease: copy trunk to community-staging-x86_64

Added:
  python-basemap/repos/community-staging-x86_64/
  python-basemap/repos/community-staging-x86_64/LICENSE
    (from rev 753527, python-basemap/trunk/LICENSE)
  python-basemap/repos/community-staging-x86_64/PKGBUILD
    (from rev 753527, python-basemap/trunk/PKGBUILD)

----------+
 LICENSE  |   14 ++++++++++++++
 PKGBUILD |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)

Copied: python-basemap/repos/community-staging-x86_64/LICENSE (from rev 753527, python-basemap/trunk/LICENSE)
===================================================================
--- community-staging-x86_64/LICENSE	                        (rev 0)
+++ community-staging-x86_64/LICENSE	2020-11-12 19:33:43 UTC (rev 753528)
@@ -0,0 +1,14 @@
+copyright (c) 2011 by Jeffrey Whitaker.
+
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
+provided that the above copyright notices appear in all copies and that
+both the copyright notices and this permission notice appear in
+supporting documentation.
+THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
+EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
+USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.

Copied: python-basemap/repos/community-staging-x86_64/PKGBUILD (from rev 753527, python-basemap/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-12 19:33:43 UTC (rev 753528)
@@ -0,0 +1,59 @@
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Matthias Ellmer <ellmer.matthias at gmail.com>
+# Contributor: Julien Morin <jmorin at cp.dias.ie>
+
+pkgbase=python-basemap
+pkgname=('python-basemap' 'python-basemap-common')
+pkgver=1.2.2
+pkgrel=2
+arch=('x86_64')
+url="https://matplotlib.org/basemap/"
+license=('MIT')
+makedepends=('cython' 'python-matplotlib' 'geos' 'shapelib' 'python-numpy' 'python-pyproj')
+source=($pkgname-$pkgver.tar.gz::https://github.com/matplotlib/basemap/archive/v${pkgver}rel.tar.gz
+        LICENSE)
+sha256sums=('7e6ee5d03b10168862cff82bfa819df8264c04f078eac4549a22dd2631696613'
+            '0deac85afb0740df7626b6d8d7aa4b8814bbe9a412fb1a0e5962895d17e63add')
+
+prepare() {
+  pushd "${srcdir}"/basemap-${pkgver}rel
+# regenerate cythonized sources
+  cythonize --force src/_geoslib.pyx
+# Remove the bundled libraries and common data
+  rm -r geos-*
+  sed -i "s/lib64/lib/g" setup.py
+  popd
+}
+
+build() {
+  cd "${srcdir}"/basemap-${pkgver}rel
+  python setup.py config
+  python setup.py build
+}
+
+package_python-basemap() {
+  pkgdesc="Toolkit for plotting data on map projections"
+  depends=('python-basemap-common' 'python-matplotlib' 'geos' 'shapelib' 'python-numpy' 'python-pyproj')
+  optdepends=('python-owslib: needed for the BaseMap.wmsimage function'
+              'python-pillow: needed for Basemap warpimage, bluemarble, shadedrelief and etop methods')
+
+  cd "${srcdir}"/basemap-${pkgver}rel
+
+  python setup.py install -O1 --skip-build --root="${pkgdir}" --prefix=/usr
+  install -Dm644 "${srcdir}"/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+
+  _sitepackages=`python -c "import site; print(site.getsitepackages()[0])"`
+  rm -fr "${pkgdir}${_sitepackages}"/mpl_toolkits/basemap/data
+  ln -sf /usr/share/basemap/data "${pkgdir}${_sitepackages}"/mpl_toolkits/basemap/data
+}
+
+package_python-basemap-common() {
+  pkgdesc="Data files for python-basemap"
+  license=('GPL2')
+
+  cd "${srcdir}"/basemap-${pkgver}rel
+
+  install -dm755 "${pkgdir}"/usr/share/basemap
+  cp -a lib/mpl_toolkits/basemap/data/ "${pkgdir}"/usr/share/basemap/
+}



More information about the arch-commits mailing list