Browse Source

l/matplotlib: Upgraded to matplotlib-3.2.2.

current-20200608
parent
commit
f56965913a
  1. 1
      l/matplotlib/matplotlib-3.1.1.tar.gz.sha256
  2. 1
      l/matplotlib/matplotlib-3.2.2.tar.gz.sha256
  3. 17
      l/matplotlib/matplotlib.SlackBuild

1
l/matplotlib/matplotlib-3.1.1.tar.gz.sha256

@ -1 +0,0 @@
1febd22afe1489b13c6749ea059d392c03261b2950d1d45c17e3aed812080c93 matplotlib-3.1.1.tar.gz

1
l/matplotlib/matplotlib-3.2.2.tar.gz.sha256

@ -0,0 +1 @@
3d77a6630d093d74cbbfebaa0571d00790966be1ed204e4a8239f5cbd6835c5d matplotlib-3.2.2.tar.gz

17
l/matplotlib/matplotlib.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2014,2015,2016 Damien Goutte-Gattat
# Copyright (C) 2014,2015,2016,2020 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -28,9 +28,8 @@
# Source package infos
NAMESRC=${NAMESRC:-matplotlib}
VERSION=${VERSION:-3.1.1}
VERSION=${VERSION:-3.2.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/12/d1/7b12cd79c791348cb0c78ce6e7d16bd72992f13c9f1e8e43d2725a6d8adf/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-matplotlib}
@ -43,6 +42,7 @@ TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
[ $ARCH = x86_64 ] && LIBDIRSUFFIX=64 || LIBDIRSUFFIX=
set -e # Quit if a command returns non-zero
@ -71,8 +71,7 @@ esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
@ -84,7 +83,7 @@ tar xf $CWD/$ARCHIVE
cd $NAME
CFLAGS="$CPUOPT" \
CXXFLAGS="$CPUOPT" \
python3 setup.py build
python3 setup.py build -j $JOBS
python3 setup.py install --root=$PKG
# Strip binaries
@ -96,6 +95,12 @@ mkdir -p $PKG/usr/doc/$NAME
install -m 644 README.rst $PKG/usr/doc/$NAME
cp -r LICENSE $PKG/usr/doc/$NAME/LICENSE
# Build HTML docs if possible
export PYTHONPATH=$PKG/usr/lib$LIBDIRSUFFIX/python3.8/site-packages
if sphinx-build -b html docs $PKG/usr/doc/$NAME/html ; then
rm -rf $PKG/usr/doc/$NAME/html/.{buildinfo,doctrees}
fi
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save