aboutsummaryrefslogtreecommitdiff
path: root/python/python3-fonttools
diff options
context:
space:
mode:
authorVijay Marcel <vijaymarcel@outlook.com>2024-08-22 20:35:58 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-08-22 23:24:23 +0700
commitb747c6d028b7c47408ce68e0e91a57812636320d (patch)
tree82065dbd193bf776a11d80df4c021ab2f7a33162 /python/python3-fonttools
parent91dc42139592e6d3f5f852fc136be69b52f8712f (diff)
python/python3-fonttools: Updated for version 4.53.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-fonttools')
-rw-r--r--python/python3-fonttools/README8
-rw-r--r--python/python3-fonttools/python3-fonttools.SlackBuild11
-rw-r--r--python/python3-fonttools/python3-fonttools.info8
3 files changed, 10 insertions, 17 deletions
diff --git a/python/python3-fonttools/README b/python/python3-fonttools/README
index ce6ddefb1b..d5eb8b9c57 100644
--- a/python/python3-fonttools/README
+++ b/python/python3-fonttools/README
@@ -7,9 +7,5 @@ python3-reportlab – to drawing glyphs as PNG images
python3-sympy – for symbolic font statistics analysis
-Note:
-Install pytz, Sphinx, sphinx-rtd-theme, snowballstemmer,
-imagesize,msgpack-python, html5lib first and then go for
-other dependencies.If you encounter an error about syntax
-error in python then check if the slackbuild builds for python2,
-disable it and then try to install.
+Sphinx,sphinx-rtd-theme,freetype-py are optional
+dependencies only needed for document generation.
diff --git a/python/python3-fonttools/python3-fonttools.SlackBuild b/python/python3-fonttools/python3-fonttools.SlackBuild
index 2303aff7c4..9c6dab80ee 100644
--- a/python/python3-fonttools/python3-fonttools.SlackBuild
+++ b/python/python3-fonttools/python3-fonttools.SlackBuild
@@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-fonttools
SRCNAM=fonttools
-VERSION=${VERSION:-4.51.0}
+VERSION=${VERSION:-4.53.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -79,6 +79,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH=/opt/python$PYVER/site-packages
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" python3 -m build --wheel --no-isolation
python3 -m installer --destdir "$PKG" dist/*.whl
@@ -88,16 +90,11 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mv -v $PKG/usr/share/man $PKG/usr
rm -rvf $PKG/usr/share
-cd Doc
-make man
-mv -v $TMP/$SRCNAM-$VERSION/Doc/build/man/fonttools.1 $PKG/usr/man/man1/
-cd ..
-
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 CONTRIBUTING.md LICENSE.external LICENSE README.rst CODE_OF_CONDUCT.md NEWS.rst $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE.external LICENSE README.rst NEWS.rst $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \+
diff --git a/python/python3-fonttools/python3-fonttools.info b/python/python3-fonttools/python3-fonttools.info
index 627b51e7ff..3f75b7ff11 100644
--- a/python/python3-fonttools/python3-fonttools.info
+++ b/python/python3-fonttools/python3-fonttools.info
@@ -1,10 +1,10 @@
PRGNAM="python3-fonttools"
-VERSION="4.51.0"
+VERSION="4.53.1"
HOMEPAGE="https://github.com/fonttools/fonttools"
-DOWNLOAD="https://github.com/fonttools/fonttools/archive/4.51.0/fonttools-4.51.0.tar.gz"
-MD5SUM="f3183c58106f442b924a0aa208129544"
+DOWNLOAD="https://pypi.io/packages/source/f/fonttools/fonttools-4.53.1.tar.gz"
+MD5SUM="2601d5b066fc9f388a6816725f52f368"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python-unicodedata2 python3-scipy python3-zopfli python3-fs python3-uharfbuzz freetype-py python3-lxml python3-lz4"
+REQUIRES="python-unicodedata2 python3-scipy python3-zopfli python3-fs python3-uharfbuzz python3-lxml python3-lz4 python3-setuptools-opt"
MAINTAINER="Vijay Marcel"
EMAIL="vijaymarcel@outlook.com"