From 557562b6e6504b778ee5e1dc68a72bf63b95746a Mon Sep 17 00:00:00 2001 From: nulano Date: Sat, 2 Jan 2021 13:29:37 +0100 Subject: [PATCH] install harfbuzz --- config.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/config.sh b/config.sh index f7185fc17..5d964c6c7 100644 --- a/config.sh +++ b/config.sh @@ -5,6 +5,7 @@ ARCHIVE_SDIR=pillow-depends-master # Package versions for fresh source builds FREETYPE_VERSION=2.10.4 +HARFBUZZ_VERSION=2.7.4 LIBPNG_VERSION=1.6.37 ZLIB_VERSION=1.2.11 JPEG_VERSION=9d @@ -17,6 +18,21 @@ LIBWEBP_VERSION=1.1.0 BZIP2_VERSION=1.0.8 LIBXCB_VERSION=1.14 +# workaround for multibuild bug with .tar.xz +function untar { + local in_fname=$1 + if [ -z "$in_fname" ];then echo "in_fname not defined"; exit 1; fi + local extension=${in_fname##*.} + case $extension in + tar) tar -xf $in_fname ;; + gz|tgz) tar -zxf $in_fname ;; + bz2) tar -jxf $in_fname ;; + zip) unzip -qq $in_fname ;; + xz) unxz -c $in_fname | tar -xf - ;; + *) echo Did not recognize extension $extension; exit 1 ;; + esac +} + function pre_build { # Any stuff that you need to do before you start building the wheels # Runs in the root directory of this repository. @@ -69,6 +85,8 @@ function pre_build { build_freetype fi + build_simple harfbuzz $HARFBUZZ_VERSION https://github.com/harfbuzz/harfbuzz/releases/download/$HARFBUZZ_VERSION tar.xz --with-freetype=yes --with-glib=no + # Append licenses for filename in dependency_licenses/*; do echo -e "\n\n----\n\n$(basename $filename | cut -f 1 -d '.')\n" | cat >> Pillow/LICENSE