diff options
author | lecramyajiv <vijaymarcel@gmail.com> | 2024-03-02 23:40:56 +0530 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-03-05 17:43:07 +0700 |
commit | 40a0a25c7e2d2bf852d19db152ee1966ec92ee80 (patch) | |
tree | 7e7bc0aec6d231a55a308e037d6da2ef1970aa1c /python | |
parent | 04a931e02b1f33f42abdf7c91da7e5749c6cdae0 (diff) |
python/python3-cffsubr: Updated for version 0.3.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/python3-cffsubr/README | 4 | ||||
-rw-r--r-- | python/python3-cffsubr/python3-cffsubr.SlackBuild | 24 | ||||
-rw-r--r-- | python/python3-cffsubr/python3-cffsubr.info | 8 |
3 files changed, 25 insertions, 11 deletions
diff --git a/python/python3-cffsubr/README b/python/python3-cffsubr/README index 741e73e140376..17712ec0651f6 100644 --- a/python/python3-cffsubr/README +++ b/python/python3-cffsubr/README @@ -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. diff --git a/python/python3-cffsubr/python3-cffsubr.SlackBuild b/python/python3-cffsubr/python3-cffsubr.SlackBuild index 2e14ca09ffae9..53b8cd05f38a6 100644 --- a/python/python3-cffsubr/python3-cffsubr.SlackBuild +++ b/python/python3-cffsubr/python3-cffsubr.SlackBuild @@ -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 diff --git a/python/python3-cffsubr/python3-cffsubr.info b/python/python3-cffsubr/python3-cffsubr.info index df2f6cafc2411..9093f9fb87515 100644 --- a/python/python3-cffsubr/python3-cffsubr.info +++ b/python/python3-cffsubr/python3-cffsubr.info @@ -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" |