mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-14 10:12:40 +03:00
Merge pull request #8870 from radarhere/harfbuzz_upgrade
Updated harfbuzz to 11.0.1
This commit is contained in:
commit
d1e27fc86c
4
.github/workflows/wheels-dependencies.sh
vendored
4
.github/workflows/wheels-dependencies.sh
vendored
|
@ -38,7 +38,7 @@ ARCHIVE_SDIR=pillow-depends-main
|
||||||
|
|
||||||
# Package versions for fresh source builds
|
# Package versions for fresh source builds
|
||||||
FREETYPE_VERSION=2.13.3
|
FREETYPE_VERSION=2.13.3
|
||||||
HARFBUZZ_VERSION=11.0.0
|
HARFBUZZ_VERSION=11.0.1
|
||||||
LIBPNG_VERSION=1.6.47
|
LIBPNG_VERSION=1.6.47
|
||||||
JPEGTURBO_VERSION=3.1.0
|
JPEGTURBO_VERSION=3.1.0
|
||||||
OPENJPEG_VERSION=2.5.3
|
OPENJPEG_VERSION=2.5.3
|
||||||
|
@ -107,7 +107,7 @@ function build_harfbuzz {
|
||||||
|
|
||||||
local out_dir=$(fetch_unpack https://github.com/harfbuzz/harfbuzz/releases/download/$HARFBUZZ_VERSION/harfbuzz-$HARFBUZZ_VERSION.tar.xz harfbuzz-$HARFBUZZ_VERSION.tar.xz)
|
local out_dir=$(fetch_unpack https://github.com/harfbuzz/harfbuzz/releases/download/$HARFBUZZ_VERSION/harfbuzz-$HARFBUZZ_VERSION.tar.xz harfbuzz-$HARFBUZZ_VERSION.tar.xz)
|
||||||
(cd $out_dir \
|
(cd $out_dir \
|
||||||
&& meson setup build --prefix=$BUILD_PREFIX --libdir=$BUILD_PREFIX/lib --buildtype=release -Dfreetype=enabled -Dglib=disabled)
|
&& meson setup build --prefix=$BUILD_PREFIX --libdir=$BUILD_PREFIX/lib --buildtype=release -Dfreetype=enabled -Dglib=disabled -Dtests=disabled)
|
||||||
(cd $out_dir/build \
|
(cd $out_dir/build \
|
||||||
&& meson install)
|
&& meson install)
|
||||||
touch harfbuzz-stamp
|
touch harfbuzz-stamp
|
||||||
|
|
|
@ -113,7 +113,7 @@ V = {
|
||||||
"BROTLI": "1.1.0",
|
"BROTLI": "1.1.0",
|
||||||
"FREETYPE": "2.13.3",
|
"FREETYPE": "2.13.3",
|
||||||
"FRIBIDI": "1.0.16",
|
"FRIBIDI": "1.0.16",
|
||||||
"HARFBUZZ": "11.0.0",
|
"HARFBUZZ": "11.0.1",
|
||||||
"JPEGTURBO": "3.1.0",
|
"JPEGTURBO": "3.1.0",
|
||||||
"LCMS2": "2.17",
|
"LCMS2": "2.17",
|
||||||
"LIBAVIF": "1.2.1",
|
"LIBAVIF": "1.2.1",
|
||||||
|
@ -349,8 +349,8 @@ DEPS: dict[str, dict[str, Any]] = {
|
||||||
"libs": [r"..\target\release\imagequant_sys.lib"],
|
"libs": [r"..\target\release\imagequant_sys.lib"],
|
||||||
},
|
},
|
||||||
"harfbuzz": {
|
"harfbuzz": {
|
||||||
"url": f"https://github.com/harfbuzz/harfbuzz/archive/{V['HARFBUZZ']}.zip",
|
"url": f"https://github.com/harfbuzz/harfbuzz/releases/download/{V['HARFBUZZ']}/FILENAME",
|
||||||
"filename": f"harfbuzz-{V['HARFBUZZ']}.zip",
|
"filename": f"harfbuzz-{V['HARFBUZZ']}.tar.xz",
|
||||||
"license": "COPYING",
|
"license": "COPYING",
|
||||||
"build": [
|
"build": [
|
||||||
*cmds_cmake(
|
*cmds_cmake(
|
||||||
|
@ -514,8 +514,8 @@ def extract_dep(url: str, filename: str, prefs: dict[str, str]) -> None:
|
||||||
msg = "Attempted Path Traversal in Zip File"
|
msg = "Attempted Path Traversal in Zip File"
|
||||||
raise RuntimeError(msg)
|
raise RuntimeError(msg)
|
||||||
zf.extractall(sources_dir)
|
zf.extractall(sources_dir)
|
||||||
elif filename.endswith((".tar.gz", ".tgz")):
|
elif filename.endswith((".tar.gz", ".tar.xz")):
|
||||||
with tarfile.open(file, "r:gz") as tgz:
|
with tarfile.open(file, "r:xz" if filename.endswith(".xz") else "r:gz") as tgz:
|
||||||
for member in tgz.getnames():
|
for member in tgz.getnames():
|
||||||
member_abspath = os.path.abspath(os.path.join(sources_dir, member))
|
member_abspath = os.path.abspath(os.path.join(sources_dir, member))
|
||||||
member_prefix = os.path.commonpath([sources_dir_abs, member_abspath])
|
member_prefix = os.path.commonpath([sources_dir_abs, member_abspath])
|
||||||
|
@ -776,7 +776,7 @@ def main() -> None:
|
||||||
|
|
||||||
for k, v in DEPS.items():
|
for k, v in DEPS.items():
|
||||||
if "dir" not in v:
|
if "dir" not in v:
|
||||||
v["dir"] = re.sub(r"\.(tar\.gz|zip)", "", v["filename"])
|
v["dir"] = re.sub(r"\.(tar\.gz|tar\.xz|zip)", "", v["filename"])
|
||||||
prefs[f"dir_{k}"] = os.path.join(sources_dir, v["dir"])
|
prefs[f"dir_{k}"] = os.path.join(sources_dir, v["dir"])
|
||||||
|
|
||||||
print()
|
print()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user