python/rst2pdf: Updated for version 0.100.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Vijay Marcel 2023-06-17 07:29:23 +07:00 committed by Willy Sudiarto Raharjo
parent 6670e0022b
commit ab8eafd0e8
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 20 additions and 24 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for rst2pdf
# Copyright 2022 Vijay Marcel
# Copyright 2022-2023 Vijay Marcel
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=rst2pdf
VERSION=${VERSION:-0.99}
VERSION=${VERSION:-0.100}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -47,20 +47,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
trap 'echo "$0 FAILED at line $LINENO!" | tee -a $OUTPUT/error-${PRGNAM}.log' ERR
@ -79,17 +65,27 @@ find -L . \
python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
cd doc
rst2man rst2pdf.rst rst2pdf.1
mkdir -pv $PKG/usr/man/man1
cp -a rst2pdf.1 $PKG/usr/man/man1/
cd ..
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
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a doc CHANGES.rst CODE_OF_CONDUCT.rst Contributors.txt LICENSE.txt \
MAINTAINERS.rst PKG-INFO README.rst $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES.rst CODE_OF_CONDUCT.rst Contributors.txt LICENSE.txt MAINTAINERS.rst PKG-INFO README.rst $PKG/usr/doc/$PRGNAM-$VERSION
cd doc
cp -a manual.rst gen_docs.sh rst2html-manual.py $PKG/usr/doc/$PRGNAM-$VERSION
cd ..
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \+
rm -rvf $PKG/usr/doc/$PRGNAM-$VERSION/doc/output/
mkdir -p $PKG/install
mkdir -pv $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG

View file

@ -1,8 +1,8 @@
PRGNAM="rst2pdf"
VERSION="0.99"
VERSION="0.100"
HOMEPAGE="https://rst2pdf.org"
DOWNLOAD="https://pypi.io/packages/source/r/rst2pdf/rst2pdf-0.99.tar.gz"
MD5SUM="dbec71c69c3a6b2915c52c529a3fd4ab"
DOWNLOAD="https://pypi.io/packages/source/r/rst2pdf/rst2pdf-0.100.tar.gz"
MD5SUM="31960321d8c4f304850a13a4dad0a3a6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python3-reportlab python-smartypants python-importlib_metadata"