aboutsummaryrefslogtreecommitdiff
path: root/python/python3-formencode/python3-formencode.SlackBuild
diff options
context:
space:
mode:
authorArn0 <yth@ythogtha.org>2023-11-08 08:59:04 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-11-11 08:08:32 +0700
commit5b2787f08313c9920d909418738c59e5552aad4f (patch)
tree327d259669f44e7e770d899b40af7eb0f678c99b /python/python3-formencode/python3-formencode.SlackBuild
parent536e259322daa8a9cf722ec4f06e288f8ba755a9 (diff)
python/python3-formencode: Updated for version 2.1.0.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-formencode/python3-formencode.SlackBuild')
-rw-r--r--python/python3-formencode/python3-formencode.SlackBuild15
1 files changed, 10 insertions, 5 deletions
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