Browse Source

l/matplotlib: Upgraded to matplotlib-3.1.1.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
9475a3f203
  1. 15
      l/matplotlib/matplotlib-1.5.2-svg-miterlimit.patch
  2. 1
      l/matplotlib/matplotlib-1.5.2.tar.gz.sha1
  3. 1
      l/matplotlib/matplotlib-3.1.1.tar.gz.sha256
  4. 43
      l/matplotlib/matplotlib.SlackBuild

15
l/matplotlib/matplotlib-1.5.2-svg-miterlimit.patch

@ -1,15 +0,0 @@
diff -Naur matplotlib-1.5.1.orig/lib/matplotlib/backends/backend_svg.py matplotlib-1.5.1/lib/matplotlib/backends/backend_svg.py
--- matplotlib-1.5.1.orig/lib/matplotlib/backends/backend_svg.py 2016-01-11 03:43:13.000000000 +0100
+++ matplotlib-1.5.1/lib/matplotlib/backends/backend_svg.py 2016-03-12 18:46:22.218964040 +0100
@@ -298,10 +298,7 @@
writer = self.writer
default_style = generate_css({
'stroke-linejoin': 'round',
- 'stroke-linecap': 'butt',
- # Disable the miter limit. 100000 seems to be close to
- # the maximum that renderers support before breaking.
- 'stroke-miterlimit': '100000'})
+ 'stroke-linecap': 'butt'})
writer.start('defs')
writer.start('style', type='text/css')
writer.data('*{%s}\n' % default_style)

1
l/matplotlib/matplotlib-1.5.2.tar.gz.sha1

@ -1 +0,0 @@
2c78d4b1d9cc1e064a7592158977cb22d6606ca7 matplotlib-1.5.2.tar.gz

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

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

43
l/matplotlib/matplotlib.SlackBuild

@ -24,14 +24,13 @@
#
# Latest matplotlib sourcecode is available at: <http://matplotlib.org/>.
#
# Depends: l/numpy, l/python-dateutil, n/tornado, l/pyparsing
# Depends: l/python-cycler, l/pytz
# Depends: l/numpy, l/python-cycler, l/python-dateutil, l/python-kiwisolver
# Source package infos
NAMESRC=${NAMESRC:-matplotlib}
VERSION=${VERSION:-1.5.2}
VERSION=${VERSION:-3.1.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://github.com/matplotlib/matplotlib/archive/v$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/12/d1/7b12cd79c791348cb0c78ce6e7d16bd72992f13c9f1e8e43d2725a6d8adf/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-matplotlib}
@ -57,12 +56,25 @@ if [ ! -d $TMP ]; then
exit 1
fi
# Compilation flags
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
;;
*)
CPUOPT="-O2"
;;
esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -70,18 +82,31 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
patch -p1 < $CWD/matplotlib-1.5.2-svg-miterlimit.patch
python setup.py build
python setup.py install --root=$PKG
CFLAGS="$CPUOPT" \
CXXFLAGS="$CPUOPT" \
python3 setup.py build
python3 setup.py install --root=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 CHANGELOG CONTRIBUTING.md README.rst $PKG/usr/doc/$NAME
install -m 644 README.rst $PKG/usr/doc/$NAME
cp -r LICENSE $PKG/usr/doc/$NAME/LICENSE
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
numpy
python-cycler
python-dateutil
python-kiwisolver
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save