From 5b2787f08313c9920d909418738c59e5552aad4f Mon Sep 17 00:00:00 2001 From: Arn0 Date: Wed, 8 Nov 2023 08:59:04 +0100 Subject: python/python3-formencode: Updated for version 2.1.0. Signed-off-by: Andrew Clemons Signed-off-by: Willy Sudiarto Raharjo --- python/python3-formencode/python3-formencode.SlackBuild | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'python/python3-formencode/python3-formencode.SlackBuild') diff --git a/python/python3-formencode/python3-formencode.SlackBuild b/python/python3-formencode/python3-formencode.SlackBuild index f88f44c6d6..2134545296 100644 --- a/python/python3-formencode/python3-formencode.SlackBuild +++ b/python/python3-formencode/python3-formencode.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-formencode SRCNAM=FormEncode -VERSION=${VERSION:-2.0.1} +VERSION=${VERSION:-2.1.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -66,11 +66,16 @@ find -L . \ -exec chmod 644 {} \; python3 setup.py install --root=$PKG -./regen-docs || true +sh ./regen-docs || NODOC=1 -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html -cp -a docs/_build/* $PKG/usr/doc/$PRGNAM-$VERSION/html || \ - cp -a docs $PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/ +if [ -z "$NODOC" ]; then + cp -a docs/_build $PKG/usr/doc/$PRGNAM-$VERSION/html +else + cp -a docs $PKG/usr/doc/$PRGNAM-$VERSION + rmdir --ignore-fail-on-non-empty $PKG/usr/doc/$PRGNAM-$VERSION/docs/_build + rm $PKG/usr/doc/$PRGNAM-$VERSION/docs/make.bat +fi cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install -- cgit v1.2.3