python/python3-cffsubr: Updated for version 0.3.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
lecramyajiv 2024-03-02 23:40:56 +05:30 committed by Willy Sudiarto Raharjo
parent 04a931e02b
commit 40a0a25c7e
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 25 additions and 11 deletions

View file

@ -1,2 +1,6 @@
cffsubr is a standalone cff subroutinizer based
on AFDKO tx tool.
Note:
Install python3-ufonormalizer,python3-fontParts and
python3-fontPens before installing afdko.

View file

@ -2,7 +2,7 @@
# Slackware build script for python3-cffsubr
# Copyright 2023 Vijay Marcel
# Copyright 2023-2024 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=python3-cffsubr
VERSION=${VERSION:-0.2.9}
VERSION=${VERSION:-0.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -69,8 +69,8 @@ rm -rvf $PKG
mkdir -vp $TMP $PKG $OUTPUT
cd $TMP
rm -rvf $PRGNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.post1.tar.gz
cd $SRCNAM-$VERSION.post1
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
@ -79,11 +79,21 @@ 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 {} \;
export PIP_NO_CACHE_DIR=1
python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
# Remove the external folder containing afdko as this will again
# build afdko. Make sure setup.py understands it doesn't need
# to build the tx binary
rm -rvf external
sed -i '/ext_modules=\[tx\]/d; /^ext_modules=/a ext_modules=[]' setup.py
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
# Create a symlink to installed afdko's tx tool, this is neccessary as
# cffsubr and fontmake needs this symlink to work properly
ln -s /usr/bin/tx $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/cffsubr/
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
| cut -f 1 -d : | xargs strip --strip-unneeded --remove-section=.comment --remove-section=.note 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -1,10 +1,10 @@
PRGNAM="python3-cffsubr"
VERSION="0.2.9"
VERSION="0.3.0"
HOMEPAGE="https://github.com/adobe-type-tools/cffsubr"
DOWNLOAD="https://pypi.io/packages/source/c/cffsubr/cffsubr-0.2.9.post1.tar.gz"
MD5SUM="2e3de35a947539b76dd3e426f99373c4"
DOWNLOAD="https://pypi.io/packages/source/c/cffsubr/cffsubr-0.3.0.tar.gz"
MD5SUM="9ea6396f228e278ff7660dc4edde4c37"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python3-psautohint python3-ufoProcessor python3-ufonormalizer afdko python3-setuptools-git-ls-files importlib-resources"
REQUIRES="python3-psautohint python3-ufoProcessor afdko python3-setuptools-git-ls-files importlib-resources"
MAINTAINER="Vijay Marcel"
EMAIL="vijaymarcel@outlook.com"