summaryrefslogtreecommitdiffstats
path: root/gis
diff options
context:
space:
mode:
author Cristiano Urban2022-03-31 02:31:20 +0200
committer Willy Sudiarto Raharjo2022-04-02 13:19:18 +0200
commit0d9c6586343efa58ad1fea439c52a471adbdbb9b (patch)
tree47026f1771ef555c8f60f9f05c6daa843929da1f /gis
parent11493e8736751774c28b7bb7ed4f358fbe34c2e6 (diff)
downloadslackbuilds-0d9c6586343efa58ad1fea439c52a471adbdbb9b.tar.gz
gis/python3-basemap: Updated for version 1.3.2.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis')
-rw-r--r--gis/python3-basemap/python3-basemap.SlackBuild20
-rw-r--r--gis/python3-basemap/python3-basemap.info6
2 files changed, 18 insertions, 8 deletions
diff --git a/gis/python3-basemap/python3-basemap.SlackBuild b/gis/python3-basemap/python3-basemap.SlackBuild
index 24558ad5b0..71d5ab263d 100644
--- a/gis/python3-basemap/python3-basemap.SlackBuild
+++ b/gis/python3-basemap/python3-basemap.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-basemap
SRCNAM=basemap
-VERSION=${VERSION:-1.2.2}
+VERSION=${VERSION:-1.3.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -70,9 +70,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $SRCNAM-${VERSION}rel
-tar xvf $CWD/$SRCNAM-${VERSION}rel.tar.gz
-cd $SRCNAM-${VERSION}rel
+rm -rf $SRCNAM-${VERSION}
+tar xvf $CWD/$SRCNAM-${VERSION}.tar.gz
+cd $SRCNAM-${VERSION}
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -80,16 +80,26 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+cd packages/${SRCNAM}
# regenerate cythonized sources
# thanks arch linux maintainers
cythonize --force src/_geoslib.pyx
python3 setup.py install --root=$PKG
+cd ${TMP}/${SRCNAM}-${VERSION}
+
+cd packages/${SRCNAM}_data
+python3 setup.py install --root=$PKG
+cd ${TMP}/${SRCNAM}-${VERSION}
+
+cd packages/${SRCNAM}_data_hires
+python3 setup.py install --root=$PKG
+cd ${TMP}/${SRCNAM}-${VERSION}
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a LICENSE* README.md Changelog $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE README.md CHANGELOG.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/gis/python3-basemap/python3-basemap.info b/gis/python3-basemap/python3-basemap.info
index 3882061ae5..89bb1ccfa7 100644
--- a/gis/python3-basemap/python3-basemap.info
+++ b/gis/python3-basemap/python3-basemap.info
@@ -1,8 +1,8 @@
PRGNAM="python3-basemap"
-VERSION="1.2.2"
+VERSION="1.3.2"
HOMEPAGE="https://github.com/matplotlib/basemap"
-DOWNLOAD="https://github.com/matplotlib/basemap/archive/v1.2.2rel/basemap-1.2.2rel.tar.gz"
-MD5SUM="fe3e9c8ccecb1630a7f44728f48219bc"
+DOWNLOAD="https://github.com/matplotlib/basemap/archive/v1.3.2/basemap-1.3.2.tar.gz"
+MD5SUM="c1936ad0666126721df7a1842ad1ac3a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="geos python3-pyproj python3-pyshp python3-matplotlib"