From c43dbaeca0f96d90da29a151eb2ee14cad5f0aeb Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 13 Mar 2023 05:31:11 +0100 Subject: [PATCH] [harfbuzz] update to 7.0.0 (#29618) --- ports/harfbuzz/fix-linux-error.patch | 12 ++++++++++++ ports/harfbuzz/portfile.cmake | 9 +++++---- ports/harfbuzz/vcpkg.json | 3 +-- versions/baseline.json | 4 ++-- versions/h-/harfbuzz.json | 5 +++++ 5 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 ports/harfbuzz/fix-linux-error.patch diff --git a/ports/harfbuzz/fix-linux-error.patch b/ports/harfbuzz/fix-linux-error.patch new file mode 100644 index 00000000000..cd9b2263c3a --- /dev/null +++ b/ports/harfbuzz/fix-linux-error.patch @@ -0,0 +1,12 @@ +diff --git a/util/hb-info.cc b/util/hb-info.cc +index b3a8b35..e386124 100644 +--- a/util/hb-info.cc ++++ b/util/hb-info.cc +@@ -847,6 +847,7 @@ struct info_t : + { + hb_codepoint_t gid = 0; + bool b = hb_font_get_variation_glyph (font, u, vs, &gid); ++ (void)b; + assert (b); + + char glyphname[64]; diff --git a/ports/harfbuzz/portfile.cmake b/ports/harfbuzz/portfile.cmake index b8593e81ad9..dfbcef4ac7e 100644 --- a/ports/harfbuzz/portfile.cmake +++ b/ports/harfbuzz/portfile.cmake @@ -1,10 +1,11 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO harfbuzz/harfbuzz - REF "${VERSION}" - SHA512 7a96b5ffc1c15c919275dad9456575fe12dfa54883fecad5fd42c0e3c64360178425f70d2fbe3c44f39a61361320b4a6ec8af7c4f8378ad788d460a609f3e224 + REF ${VERSION} + SHA512 d7382cda95ac215fafe52d6fc0361affe3d9569a0faa178a553547a5baa168a42550a5918a0bbe30630559200c155839078ae26e7fca8bf32fa45c90ed79248f HEAD_REF master PATCHES + fix-linux-error.patch ) if("icu" IN_LIST FEATURES) @@ -97,7 +98,7 @@ configure_file("${CMAKE_CURRENT_LIST_DIR}/harfbuzzConfig.cmake.in" vcpkg_list(SET TOOL_NAMES) if("glib" IN_LIST FEATURES) - vcpkg_list(APPEND TOOL_NAMES hb-subset hb-shape hb-ot-shape-closure) + vcpkg_list(APPEND TOOL_NAMES hb-subset hb-shape hb-ot-shape-closure hb-info) endif() if(TOOL_NAMES) vcpkg_copy_tools(TOOL_NAMES ${TOOL_NAMES} AUTO_CLEAN) @@ -107,4 +108,4 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") endif() -file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") diff --git a/ports/harfbuzz/vcpkg.json b/ports/harfbuzz/vcpkg.json index 20da3e2b526..5296a59713d 100644 --- a/ports/harfbuzz/vcpkg.json +++ b/ports/harfbuzz/vcpkg.json @@ -1,7 +1,6 @@ { "name": "harfbuzz", - "version": "6.0.0", - "port-version": 1, + "version": "7.0.0", "description": "HarfBuzz OpenType text shaping engine", "homepage": "https://github.com/harfbuzz/harfbuzz", "license": "MIT-Modern-Variant", diff --git a/versions/baseline.json b/versions/baseline.json index 7874b8ae313..cc3dd841d0c 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2997,8 +2997,8 @@ "port-version": 0 }, "harfbuzz": { - "baseline": "6.0.0", - "port-version": 1 + "baseline": "7.0.0", + "port-version": 0 }, "hash-library": { "baseline": "8", diff --git a/versions/h-/harfbuzz.json b/versions/h-/harfbuzz.json index 0ec58644856..73c49c48977 100644 --- a/versions/h-/harfbuzz.json +++ b/versions/h-/harfbuzz.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "74d44792360393e3c1fee924def05c9d21a5fe3d", + "version": "7.0.0", + "port-version": 0 + }, { "git-tree": "4ffde6e2f07e83bb2aff1abf962b8b21dffbdf83", "version": "6.0.0",