Browse Source

l/reportlab: Upgraded to reportlab-3.5.32.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
7230f7ee4c
  1. 1
      l/reportlab/reportlab-3.3.0.tar.gz.sha1
  2. 1
      l/reportlab/reportlab-3.5.32.tar.gz.sha256
  3. 22
      l/reportlab/reportlab.SlackBuild

1
l/reportlab/reportlab-3.3.0.tar.gz.sha1

@ -1 +0,0 @@
04c20507ec324918d05e852ddc3c8d7b6ec51c19 reportlab-3.3.0.tar.gz

1
l/reportlab/reportlab-3.5.32.tar.gz.sha256

@ -0,0 +1 @@
83ef44936ef4e9c432d62bc2b72ec8d772b87af319d123e827a72e9b6884c851 reportlab-3.5.32.tar.gz

22
l/reportlab/reportlab.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008,2009,2010,2012,2013,2016 Damien Goutte-Gattat
# Copyright (C) 2008-2013,2016,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,9 +27,8 @@
# Source package infos
NAMESRC=${NAMESRC:-reportlab}
VERSION=${VERSION:-3.3.0}
VERSION=${VERSION:-3.5.32}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/b8/17/7c5342dfbc9dc856173309270006e34c3bfad59934f0faa1dcc117ac93f1/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-reportlab}
@ -72,10 +71,9 @@ 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
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -85,8 +83,12 @@ tar xf $CWD/$ARCHIVE
cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python setup.py build
python setup.py install --root=$PKG
python2 setup.py build
python2 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 | \
@ -96,8 +98,8 @@ find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
mkdir -p $PKG/usr/doc/$NAME
(
cd docs
PYTHONPATH=$PKG/usr/lib$LIBDIRSUFFIX/python2.7/site-packages:$PYTHONPATH \
python genAll.py
PYTHONPATH=$PKG/usr/lib$LIBDIRSUFFIX/python3.7/site-packages:$PYTHONPATH \
python3 genAll.py
)
install -m 644 CHANGES.md LICENSE.txt README.txt docs/*.pdf $PKG/usr/doc/$NAME

Loading…
Cancel
Save