diff options
| author | Martin Vejdarski <extrulm@gmail.com> | 2021-01-25 10:47:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-25 01:47:30 -0800 |
| commit | cc093a822431437b4a78945032f2996efe668a7d (patch) | |
| tree | e51a99885034a7d02a4e83917148154b60000cd0 /ports/pango | |
| parent | a6fbf2032211255168f2437d94ce1bc50c5a03f5 (diff) | |
| download | vcpkg-cc093a822431437b4a78945032f2996efe668a7d.tar.gz vcpkg-cc093a822431437b4a78945032f2996efe668a7d.zip | |
[harfbuzz] Use meson and update to 2.7.0 (#12860)
* [harfbuzz] Use meson
* [harfbuzz] Add config file for CMake
* [harfbuzz,pango] Remove glib option for harfbuzz
* [libass,libmupdf,qt5-base,skia] Fix for harfbuzz
* Back out meson edit already applied in https://github.com/microsoft/vcpkg/pull/15258
* [harfbuzz] Fixup pkgconfig
* [libass] Bump port version
* Revert "[libass,libmupdf,qt5-base,skia] Fix for harfbuzz"
This reverts commit 3ba27c6c1c10a2889a8c5e028d010916f91418e3.
* [harfbuzz] Update to 2.7.4
* update baseline record
* Restore glib feature for harfbuzz and remove vagrant change
* Update port version
* Change over to manifests
* Update port version
Co-authored-by: Ebrahim Byagowi <ebrahim@gnu.org>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
Diffstat (limited to 'ports/pango')
| -rw-r--r-- | ports/pango/0002-remove-hb-glib.diff | 75 | ||||
| -rw-r--r-- | ports/pango/CONTROL | 4 | ||||
| -rw-r--r-- | ports/pango/portfile.cmake | 4 |
3 files changed, 80 insertions, 3 deletions
diff --git a/ports/pango/0002-remove-hb-glib.diff b/ports/pango/0002-remove-hb-glib.diff new file mode 100644 index 000000000..10234ae86 --- /dev/null +++ b/ports/pango/0002-remove-hb-glib.diff @@ -0,0 +1,75 @@ +diff --git a/pango/pango-ot-buffer.c b/pango/pango-ot-buffer.c +index 142b2f17..334df746 100644 +--- a/pango/pango-ot-buffer.c ++++ b/pango/pango-ot-buffer.c +@@ -40,7 +40,6 @@ pango_ot_buffer_new (PangoFcFont *font) + PangoOTBuffer *buffer = g_slice_new (PangoOTBuffer); + + buffer->buffer = hb_buffer_create (); +- hb_buffer_set_unicode_funcs (buffer->buffer, hb_glib_get_unicode_funcs ()); + + return buffer; + } +diff --git a/pango/pango-ot-private.h b/pango/pango-ot-private.h +index 0d803ec1..d9d86644 100644 +--- a/pango/pango-ot-private.h ++++ b/pango/pango-ot-private.h +@@ -22,12 +22,12 @@ + #ifndef __PANGO_OT_PRIVATE_H__ + #define __PANGO_OT_PRIVATE_H__ + ++#include <glib.h> + #include <glib-object.h> + + #include <pango/pango-ot.h> + #include <hb-ot.h> + #include <hb-ft.h> +-#include <hb-glib.h> + + #include "pangofc-private.h" + +diff --git a/pango/pango-ot-tag.c b/pango/pango-ot-tag.c +index 610b59d7..3bf4eccd 100644 +--- a/pango/pango-ot-tag.c ++++ b/pango/pango-ot-tag.c +@@ -47,7 +47,8 @@ PangoOTTag + pango_ot_tag_from_script (PangoScript script) + { + hb_tag_t tag1, tag2; +- hb_ot_tags_from_script (hb_glib_script_to_script (script), &tag1, &tag2); ++ hb_ot_tags_from_script ((hb_script_t) g_unicode_script_to_iso15924 ((GUnicodeScript) script), ++ &tag1, &tag2); + return (PangoOTTag) tag1; + } + +@@ -75,7 +76,7 @@ pango_ot_tag_from_script (PangoScript script) + PangoScript + pango_ot_tag_to_script (PangoOTTag script_tag) + { +- return (PangoScript) hb_glib_script_from_script (hb_ot_tag_to_script ((hb_tag_t) script_tag)); ++ return (PangoScript) g_unicode_script_from_iso15924 (hb_ot_tag_to_script ((hb_tag_t) script_tag)); + } + + +diff --git a/pango/pangofc-shape.c b/pango/pangofc-shape.c +index 60f829f3..4cb0ae04 100644 +--- a/pango/pangofc-shape.c ++++ b/pango/pangofc-shape.c +@@ -28,7 +28,7 @@ + + #include "pangofc-private.h" + #include <hb-ft.h> +-#include <hb-glib.h> ++#include <glib.h> + + /* cache a single hb_buffer_t */ + static hb_buffer_t *cached_buffer = NULL; /* MT-safe */ +@@ -362,7 +362,7 @@ _pango_fc_shape (PangoFont *font, + /* setup buffer */ + + hb_buffer_set_direction (hb_buffer, hb_direction); +- hb_buffer_set_script (hb_buffer, hb_glib_script_to_script (analysis->script)); ++ hb_buffer_set_script (hb_buffer, (hb_script_t) g_unicode_script_to_iso15924 (analysis->script)); + hb_buffer_set_language (hb_buffer, hb_language_from_string (pango_language_to_string (analysis->language), -1)); + #if HB_VERSION_ATLEAST(1,0,3) + hb_buffer_set_cluster_level (hb_buffer, HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS); diff --git a/ports/pango/CONTROL b/ports/pango/CONTROL index cea8f1464..8ab0abd62 100644 --- a/ports/pango/CONTROL +++ b/ports/pango/CONTROL @@ -1,6 +1,6 @@ Source: pango Version: 1.40.11 -Port-Version: 8 +Port-Version: 9 Homepage: https://ftp.gnome.org/pub/GNOME/sources/pango/ Description: Text and font handling library. -Build-Depends: glib, gettext, cairo[gobject], fontconfig, freetype, harfbuzz[glib] (!(windows&static)&!osx) +Build-Depends: glib, gettext, cairo[gobject], fontconfig, freetype, harfbuzz (!(windows&static)&!osx) diff --git a/ports/pango/portfile.cmake b/ports/pango/portfile.cmake index 475d49f01..2127e3c56 100644 --- a/ports/pango/portfile.cmake +++ b/ports/pango/portfile.cmake @@ -8,7 +8,9 @@ vcpkg_extract_source_archive_ex( OUT_SOURCE_PATH SOURCE_PATH ARCHIVE ${ARCHIVE} REF ${PANGO_VERSION} - PATCHES 0001-fix-static-symbols-export.diff + PATCHES + 0001-fix-static-symbols-export.diff + 0002-remove-hb-glib.diff ) file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h.unix DESTINATION ${SOURCE_PATH}) |
