pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Add a package for pango-1.55
Module Name: pkgsrc-wip
Committed By: pin <voidpin%protonmail.com@localhost>
Pushed By: pin
Date: Fri Dec 6 12:45:12 2024 +0100
Changeset: 3f7140ac0b6055676b015d4b011a08f23244295f
Modified Files:
Makefile
Added Files:
pango/COMMIT_MSG
pango/DESCR
pango/Makefile
pango/PLIST
pango/buildlink3.mk
pango/distinfo
pango/files/pango-view.sh
pango/options.mk
pango/patches/patch-pango_pangocairo-coretextfont.c
pango/patches/patch-pango_pangocairo-coretextfontmap.c
pango/patches/patch-pango_pangocoretext-private.h
pango/patches/patch-pango_pangocoretext.c
pango/patches/patch-pango_pangocoretext.h
pango/patches/patch-pangocairo-coretext.h
pango/patches/patch-utils_meson.build
Log Message:
Add a package for pango-1.55
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3f7140ac0b6055676b015d4b011a08f23244295f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
pango/COMMIT_MSG | 15 ++++
pango/DESCR | 20 ++++++
pango/Makefile | 83 ++++++++++++++++++++++
pango/PLIST | 73 +++++++++++++++++++
pango/buildlink3.mk | 35 +++++++++
pango/distinfo | 12 ++++
pango/files/pango-view.sh | 16 +++++
pango/options.mk | 53 ++++++++++++++
.../patches/patch-pango_pangocairo-coretextfont.c | 58 +++++++++++++++
.../patch-pango_pangocairo-coretextfontmap.c | 18 +++++
pango/patches/patch-pango_pangocoretext-private.h | 20 ++++++
pango/patches/patch-pango_pangocoretext.c | 19 +++++
pango/patches/patch-pango_pangocoretext.h | 17 +++++
pango/patches/patch-pangocairo-coretext.h | 16 +++++
pango/patches/patch-utils_meson.build | 17 +++++
16 files changed, 473 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 0cf6fd7b29..a606d9b1c7 100644
--- a/Makefile
+++ b/Makefile
@@ -2986,6 +2986,7 @@ SUBDIR+= pam-pop3
SUBDIR+= pam-pwdfile
SUBDIR+= pan2-git
SUBDIR+= panda
+SUBDIR+= pango
SUBDIR+= pangoterm
SUBDIR+= papp
SUBDIR+= paprefs
diff --git a/pango/COMMIT_MSG b/pango/COMMIT_MSG
new file mode 100644
index 0000000000..8d9220a400
--- /dev/null
+++ b/pango/COMMIT_MSG
@@ -0,0 +1,15 @@
+devel/pango: update to 1.55.0
+
+Overview of changes in 1.55, 26-11-2024
+=======================================
+- Support Unicode 16
+- Add pango_font_map_add_font_file
+- fontconfig: Reject patterns without FC_FILE
+- coretext: Actually use .AppleSystemUIFont
+- coretext: Keep track of variations
+- win32: Use font options for caching
+- win32: Keep variations in PangoWin32Font
+- build: Require harfbuzz 8.4.0
+- build: Require fontconfig 2.15
+- build: Require meson 1.2.0
+- build: Require Window 10
diff --git a/pango/DESCR b/pango/DESCR
new file mode 100644
index 0000000000..65e28390d3
--- /dev/null
+++ b/pango/DESCR
@@ -0,0 +1,20 @@
+Pango is a library for layout and rendering of text, with an emphasis
+on internationalization. Pango can be used anywhere that text layout
+is needed; however, most of the work on Pango-1.0 was done using the
+GTK+ widget toolkit as a test platform. Pango forms the core of text
+and font handling for GTK+-2.0.
+
+Pango is designed to be modular; the core Pango layout can be used
+with four different font backends:
+
+ - Core X windowing system fonts
+ - Client-side fonts on X using the Xft library
+ - Direct rendering of scalable fonts using the FreeType library
+ - Native fonts on Microsoft backends
+
+Dynamically loaded modules then handle text layout for particular
+combinations of script and font backend.
+
+As well as the low level layout rendering routines, Pango includes
+PangoLayout, a high level driver for laying out entire blocks of text,
+and routines to assist in editing internationalized text.
diff --git a/pango/Makefile b/pango/Makefile
new file mode 100644
index 0000000000..478e450da4
--- /dev/null
+++ b/pango/Makefile
@@ -0,0 +1,83 @@
+# $NetBSD: Makefile,v 1.266 2024/06/30 21:56:30 wiz Exp $
+
+DISTNAME= pango-1.55.0
+CATEGORIES= devel fonts
+MASTER_SITES= ${MASTER_SITE_GNOME:=sources/pango/${PKGVERSION_NOREV:R}/}
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://pango.gnome.org/
+COMMENT= Library for layout and rendering of text
+LICENSE= gnu-lgpl-v2
+
+TOOL_DEPENDS+= help2man-[0-9]*:../../converters/help2man
+
+USE_LANGUAGES= c c++
+USE_TOOLS+= pkg-config
+INSTALLATION_DIRS= ${PKGMANDIR}/man1
+
+SUBST_CLASSES+= wrksrc
+SUBST_STAGE.wrksrc= pre-configure
+SUBST_FILES.wrksrc= output/utils/pango-view.sh
+SUBST_VARS.wrksrc= WRKSRC
+
+.include "../../mk/bsd.prefs.mk"
+
+MESON_REQD+= 1.2.0
+MESON_ARGS+= -Dcairo=enabled
+MESON_ARGS+= -Dfontconfig=enabled
+
+PLIST_VARS+= native
+
+.if ${USE_CROSS_COMPILE:tl} == "yes"
+TOOL_DEPENDS+= glib2-tools>=0:../../devel/glib2-tools
+MESON_CROSS_BINARIES+= glib-genmarshal glib-mkenums
+MESON_CROSS_BINARY.glib-genmarshal+= ${TOOLBASE:Q}/bin/glib-genmarshal
+MESON_CROSS_BINARY.glib-mkenums+= ${TOOLBASE:Q}/bin/glib-mkenums
+.else
+PLIST.native= yes
+.endif
+
+PKGCONFIG_OVERRIDE+= output/meson-private/pango.pc
+PKGCONFIG_OVERRIDE+= output/meson-private/pangocairo.pc
+PKGCONFIG_OVERRIDE+= output/meson-private/pangofc.pc
+PKGCONFIG_OVERRIDE+= output/meson-private/pangoft2.pc
+PKGCONFIG_OVERRIDE+= output/meson-private/pangoot.pc
+PKGCONFIG_OVERRIDE+= output/meson-private/pangoxft.pc
+PKGCONFIG_OVERRIDE_STAGE= pre-install
+MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/output/${PKGBASE}
+
+CHECK_FILES_SKIP+= ${PREFIX}/libdata/pango/pango.modules
+CHECK_PORTABILITY_SKIP+= docs/check.docs
+
+PYTHON_FOR_BUILD_ONLY= tool
+
+BUILDLINK_TRANSFORM+= rm:-Werror=implicit-fallthrough # clang10svn
+
+post-extract:
+ ${MKDIR} -p ${WRKSRC}/output/utils
+ ${CP} ${FILESDIR}/pango-view.sh ${WRKSRC}/output/utils
+
+post-install:
+ ${MV} ${DESTDIR}${PREFIX}/share/man/man1/pango-view.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/pango-view.1 || ${TRUE}
+
+.include "options.mk"
+.include "../../graphics/librsvg/available.mk"
+
+BUILDLINK_API_DEPENDS.fribidi+= fribidi>=1.0.6
+.include "../../converters/fribidi/buildlink3.mk"
+BUILDLINK_API_DEPENDS.glib2+= glib2>=2.60
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+BUILDLINK_API_DEPENDS.fontconfig+= fontconfig>=2.11.91
+.include "../../fonts/fontconfig/buildlink3.mk"
+BUILDLINK_API_DEPENDS.harfbuzz+= harfbuzz>=2.7.2
+.include "../../fonts/harfbuzz/buildlink3.mk"
+.if ${LIBRSVG_TYPE} == "rust"
+.include "../../graphics/graphite2/buildlink3.mk"
+.endif
+BUILDLINK_API_DEPENDS.cairo+= cairo>=1.18
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../devel/meson/build.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/pango/PLIST b/pango/PLIST
new file mode 100644
index 0000000000..e7b3a66702
--- /dev/null
+++ b/pango/PLIST
@@ -0,0 +1,73 @@
+@comment $NetBSD: PLIST,v 1.93 2024/06/30 21:56:30 wiz Exp $
+bin/pango-list
+bin/pango-segmentation
+bin/pango-view
+include/pango-1.0/pango/pango-attributes.h
+include/pango-1.0/pango/pango-bidi-type.h
+include/pango-1.0/pango/pango-break.h
+include/pango-1.0/pango/pango-color.h
+include/pango-1.0/pango/pango-context.h
+include/pango-1.0/pango/pango-coverage.h
+include/pango-1.0/pango/pango-direction.h
+include/pango-1.0/pango/pango-engine.h
+include/pango-1.0/pango/pango-enum-types.h
+include/pango-1.0/pango/pango-features.h
+include/pango-1.0/pango/pango-font.h
+include/pango-1.0/pango/pango-fontmap.h
+include/pango-1.0/pango/pango-fontset-simple.h
+include/pango-1.0/pango/pango-fontset.h
+include/pango-1.0/pango/pango-glyph-item.h
+include/pango-1.0/pango/pango-glyph.h
+include/pango-1.0/pango/pango-gravity.h
+include/pango-1.0/pango/pango-item.h
+include/pango-1.0/pango/pango-language.h
+include/pango-1.0/pango/pango-layout.h
+include/pango-1.0/pango/pango-markup.h
+include/pango-1.0/pango/pango-matrix.h
+include/pango-1.0/pango/pango-modules.h
+include/pango-1.0/pango/pango-ot.h
+include/pango-1.0/pango/pango-renderer.h
+include/pango-1.0/pango/pango-script.h
+include/pango-1.0/pango/pango-tabs.h
+include/pango-1.0/pango/pango-types.h
+include/pango-1.0/pango/pango-utils.h
+include/pango-1.0/pango/pango-version-macros.h
+include/pango-1.0/pango/pango.h
+include/pango-1.0/pango/pangocairo.h
+include/pango-1.0/pango/pangofc-decoder.h
+include/pango-1.0/pango/pangofc-font.h
+include/pango-1.0/pango/pangofc-fontmap.h
+include/pango-1.0/pango/pangoft2.h
+${PLIST.x11}include/pango-1.0/pango/pangoxft-render.h
+${PLIST.x11}include/pango-1.0/pango/pangoxft.h
+${PLIST.introspection}lib/girepository-1.0/Pango-1.0.typelib
+${PLIST.introspection}lib/girepository-1.0/PangoCairo-1.0.typelib
+${PLIST.introspection}lib/girepository-1.0/PangoFT2-1.0.typelib
+${PLIST.introspection}lib/girepository-1.0/PangoFc-1.0.typelib
+${PLIST.introspection}lib/girepository-1.0/PangoOT-1.0.typelib
+${PLIST.introspection}${PLIST.x11}lib/girepository-1.0/PangoXft-1.0.typelib
+lib/libpango-1.0.so
+lib/libpango-1.0.so.0
+lib/libpango-1.0.so.0.5500.0
+lib/libpangocairo-1.0.so
+lib/libpangocairo-1.0.so.0
+lib/libpangocairo-1.0.so.0.5500.0
+lib/libpangoft2-1.0.so
+lib/libpangoft2-1.0.so.0
+lib/libpangoft2-1.0.so.0.5500.0
+${PLIST.x11}lib/libpangoxft-1.0.so
+${PLIST.x11}lib/libpangoxft-1.0.so.0
+${PLIST.x11}lib/libpangoxft-1.0.so.0.5500.0
+lib/pkgconfig/pango.pc
+lib/pkgconfig/pangocairo.pc
+lib/pkgconfig/pangofc.pc
+lib/pkgconfig/pangoft2.pc
+lib/pkgconfig/pangoot.pc
+${PLIST.x11}lib/pkgconfig/pangoxft.pc
+${PLIST.native}man/man1/pango-view.1
+${PLIST.introspection}share/gir-1.0/Pango-1.0.gir
+${PLIST.introspection}share/gir-1.0/PangoCairo-1.0.gir
+${PLIST.introspection}share/gir-1.0/PangoFT2-1.0.gir
+${PLIST.introspection}share/gir-1.0/PangoFc-1.0.gir
+${PLIST.introspection}share/gir-1.0/PangoOT-1.0.gir
+${PLIST.introspection}${PLIST.x11}share/gir-1.0/PangoXft-1.0.gir
diff --git a/pango/buildlink3.mk b/pango/buildlink3.mk
new file mode 100644
index 0000000000..a7776de9f5
--- /dev/null
+++ b/pango/buildlink3.mk
@@ -0,0 +1,35 @@
+# $NetBSD: buildlink3.mk,v 1.61 2024/04/07 07:33:49 wiz Exp $
+
+BUILDLINK_TREE+= pango
+
+.if !defined(PANGO_BUILDLINK3_MK)
+PANGO_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.pango+= pango>=1.6.0
+BUILDLINK_ABI_DEPENDS.pango+= pango>=1.52.2nb1
+BUILDLINK_PKGSRCDIR.pango?= ../../devel/pango
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+pkgbase := pango
+.include "../../mk/pkg-build-options.mk"
+
+.if ${PKG_BUILD_OPTIONS.pango:Mlibthai}
+.include "../../devel/libthai/buildlink3.mk"
+.endif
+
+.if ${PKG_BUILD_OPTIONS.pango:Mx11}
+.include "../../x11/libXft/buildlink3.mk"
+.include "../../x11/libXrender/buildlink3.mk"
+.endif
+
+.include "../../converters/fribidi/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../fonts/harfbuzz/buildlink3.mk"
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.endif # PANGO_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -pango
diff --git a/pango/distinfo b/pango/distinfo
new file mode 100644
index 0000000000..b1e2a6d6b3
--- /dev/null
+++ b/pango/distinfo
@@ -0,0 +1,12 @@
+$NetBSD: distinfo,v 1.145 2024/06/30 21:56:30 wiz Exp $
+
+BLAKE2s (pango-1.55.0.tar.xz) = f0f2992260baf5c4522ba1e0b6fc5ced6dd7b09b4ab9f5398247ac7964a73e2d
+SHA512 (pango-1.55.0.tar.xz) = ae0e59201bc9fa75f220b6ad3261bc44f0ea09b42459229cd820e5a70efb1f8c3c2b4e602c62f858080720a6d41b49898cfc8ab0dc5075d767c48008b6097722
+Size (pango-1.55.0.tar.xz) = 2098352 bytes
+SHA1 (patch-pango_pangocairo-coretextfont.c) = 32fddb025bf2896d23d22814b6edd91042fd58b5
+SHA1 (patch-pango_pangocairo-coretextfontmap.c) = 395cb1f8472a319c4b1c58ea137e36452bc44cc6
+SHA1 (patch-pango_pangocoretext-private.h) = 0d7d61cd7e7b9da34bf8a0d5d1c6e7734341cadf
+SHA1 (patch-pango_pangocoretext.c) = deb37c157f8fb517e2e367a685c4dcab1b93c7c2
+SHA1 (patch-pango_pangocoretext.h) = d6817eb02f0020c102ab95d63202f9508a70e647
+SHA1 (patch-pangocairo-coretext.h) = 2f7c8efad48b58398070f48e71c16d99d3d59f57
+SHA1 (patch-utils_meson.build) = 5ad3aa09c27daea2d116576a7147673e14dba90c
diff --git a/pango/files/pango-view.sh b/pango/files/pango-view.sh
new file mode 100755
index 0000000000..0e48e6b16b
--- /dev/null
+++ b/pango/files/pango-view.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+# $NetBSD: pango-view.sh,v 1.1 2020/02/24 17:08:31 brook Exp $
+#
+# Run pango-view with LD_LIBRARY_PATH
+#
+# During the build process, help2man is used to create a man page for
+# pango-view, which it does by running pango-view. On some platforms
+# (notably Darwin) this fails because pango-view requires access to a
+# shared library just built and rpath is not set appropriately.
+# Therefore, LD_LIBRARY_PATH must be set, which cannot be done in
+# meson.build, because help2man does not propagate the environment to
+# programs it runs. The solution is to wrap pango-view in this script
+# and provide LD_LIBRARY_PATH here.
+#
+
+env LD_LIBRARY_PATH=@WRKSRC@/output/pango @WRKSRC@/output/utils/pango-view ${*}
diff --git a/pango/options.mk b/pango/options.mk
new file mode 100644
index 0000000000..b0820b1baa
--- /dev/null
+++ b/pango/options.mk
@@ -0,0 +1,53 @@
+# $NetBSD: options.mk,v 1.22 2024/04/12 21:35:19 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.pango
+PKG_SUPPORTED_OPTIONS= introspection libthai x11
+PKG_SUGGESTED_OPTIONS= x11
+
+PKG_SUGGESTED_OPTIONS+= ${${USE_CROSS_COMPILE:tl} == "yes":?:introspection}
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= introspection
+PLIST_VARS+= x11
+
+###
+### X11 support
+###
+.if !empty(PKG_OPTIONS:Mx11)
+# fix for pangox.pc
+PLIST.x11= yes
+MESON_ARGS+= -Dxft=enabled
+BUILDLINK_API_DEPENDS.Xft2+= Xft2>=2.1.7nb3
+.include "../../x11/libXft/buildlink3.mk"
+.include "../../x11/libXrender/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+BUILDLINK_DEPMETHOD.libXt?= build # only for configure
+.include "../../x11/libXt/buildlink3.mk"
+.else
+MESON_ARGS+= -Dxft=disabled
+.endif
+
+###
+### gobject-introspection
+###
+.if !empty(PKG_OPTIONS:Mintrospection)
+PLIST.introspection= yes
+MESON_ARGS+= -Dintrospection=enabled
+BUILDLINK_DEPMETHOD.gobject-introspection= build
+.include "../../devel/gobject-introspection/buildlink3.mk"
+.else
+MESON_ARGS+= -Dintrospection=disabled
+.endif
+
+###
+### Thai language support
+###
+.if !empty(PKG_OPTIONS:Mlibthai)
+MESON_ARGS+= -Dlibthai=enabled
+.include "../../devel/libthai/buildlink3.mk"
+.else
+MESON_ARGS+= -Dlibthai=disabled
+.endif
+
+.include "../../mk/bsd.prefs.mk"
diff --git a/pango/patches/patch-pango_pangocairo-coretextfont.c b/pango/patches/patch-pango_pangocairo-coretextfont.c
new file mode 100644
index 0000000000..f66da26343
--- /dev/null
+++ b/pango/patches/patch-pango_pangocairo-coretextfont.c
@@ -0,0 +1,58 @@
+$NetBSD$
+
+From 60df2b006e5d4553abc7bb5fe9a99539c91b0022 Mon Sep 17 00:00:00 2001
+From: Tom Schoonjans <Tom.Schoonjans%diamond.ac.uk@localhost>
+Date: Fri, 20 Jul 2018 12:30:34 +0100
+Subject: [PATCH] Revert "Restore scaling of CoreText fonts."
+
+This reverts commit f661cdbf8cfbdb2ba7241d8dfa4a579c6dfe0a94.
+
+--- pango/pangocairo-coretextfont.c.orig 2024-12-06 11:15:23.694779478 +0000
++++ pango/pangocairo-coretextfont.c
+@@ -36,7 +36,6 @@ struct _PangoCairoCoreTextFont
+ {
+ PangoCoreTextFont font;
+ PangoCairoFontPrivate cf_priv;
+- int abs_size;
+ };
+
+ struct _PangoCairoCoreTextFontClass
+@@ -121,17 +120,6 @@ pango_cairo_core_text_font_create_base_m
+ return metrics;
+ }
+
+-static PangoFontDescription *
+-pango_cairo_core_text_font_describe_absolute (PangoFont *font)
+-{
+- PangoCairoCoreTextFont *cafont = (PangoCairoCoreTextFont *)font;
+- PangoFontDescription *desc = pango_font_describe (font);
+-
+- pango_font_description_set_absolute_size (desc, cafont->abs_size);
+-
+- return desc;
+-}
+-
+ static void
+ pango_cairo_core_text_font_finalize (GObject *object)
+ {
+@@ -149,10 +137,9 @@ pango_cairo_core_text_font_class_init (P
+ PangoFontClass *font_class = PANGO_FONT_CLASS (class);
+
+ object_class->finalize = pango_cairo_core_text_font_finalize;
+- /* font_class->describe defined by parent class PangoCoreTextFont. */
++
+ font_class->get_glyph_extents = pango_cairo_core_text_font_get_glyph_extents;
+ font_class->get_metrics = _pango_cairo_font_get_metrics;
+- font_class->describe_absolute = pango_cairo_core_text_font_describe_absolute;
+ }
+
+ static void
+@@ -192,8 +179,6 @@ _pango_cairo_core_text_font_new (PangoCa
+ cafont = g_object_new (PANGO_TYPE_CAIRO_CORE_TEXT_FONT, NULL);
+ cfont = PANGO_CORE_TEXT_FONT (cafont);
+
+- cafont->abs_size = pango_core_text_font_key_get_size (key);
+-
+ _pango_core_text_font_set_ctfont (cfont, font_ref);
+
+ if (synthesize_italic)
diff --git a/pango/patches/patch-pango_pangocairo-coretextfontmap.c b/pango/patches/patch-pango_pangocairo-coretextfontmap.c
new file mode 100644
index 0000000000..1e177329f4
--- /dev/null
+++ b/pango/patches/patch-pango_pangocairo-coretextfontmap.c
@@ -0,0 +1,18 @@
+$NetBSD: patch-pango_pangocairo-coretextfontmap.c,v 1.1 2018/11/20 08:34:43 maya Exp $
+
+From 60df2b006e5d4553abc7bb5fe9a99539c91b0022 Mon Sep 17 00:00:00 2001
+From: Tom Schoonjans <Tom.Schoonjans%diamond.ac.uk@localhost>
+Date: Fri, 20 Jul 2018 12:30:34 +0100
+Subject: [PATCH] Revert "Restore scaling of CoreText fonts."
+
+This reverts commit f661cdbf8cfbdb2ba7241d8dfa4a579c6dfe0a94.
+
+--- pango/pangocairo-coretextfontmap.c.orig 2018-07-16 00:50:43.000000000 +0000
++++ pango/pangocairo-coretextfontmap.c
+@@ -186,5 +186,5 @@ static void
+ pango_cairo_core_text_font_map_init (PangoCairoCoreTextFontMap *cafontmap)
+ {
+ cafontmap->serial = 1;
+- cafontmap->dpi = 96.;
++ cafontmap->dpi = 72.;
+ }
diff --git a/pango/patches/patch-pango_pangocoretext-private.h b/pango/patches/patch-pango_pangocoretext-private.h
new file mode 100644
index 0000000000..07a6052c07
--- /dev/null
+++ b/pango/patches/patch-pango_pangocoretext-private.h
@@ -0,0 +1,20 @@
+$NetBSD: patch-pango_pangocoretext-private.h,v 1.2 2021/04/08 08:38:55 adam Exp $
+
+From 60df2b006e5d4553abc7bb5fe9a99539c91b0022 Mon Sep 17 00:00:00 2001
+From: Tom Schoonjans <Tom.Schoonjans%diamond.ac.uk@localhost>
+Date: Fri, 20 Jul 2018 12:30:34 +0100
+Subject: [PATCH] Revert "Restore scaling of CoreText fonts."
+
+This reverts commit f661cdbf8cfbdb2ba7241d8dfa4a579c6dfe0a94.
+
+--- pango/pangocoretext-private.h.orig 2018-07-16 00:50:43.000000000 +0000
++++ pango/pangocoretext-private.h
+@@ -99,8 +99,6 @@ void _pango_core_text_f
+ PangoFontDescription *_pango_core_text_font_description_from_ct_font_descriptor (CTFontDescriptorRef desc);
+
+ _PANGO_EXTERN
+-int pango_core_text_font_key_get_size (const PangoCoreTextFontKey *key);
+-_PANGO_EXTERN
+ int pango_core_text_font_key_get_size (const PangoCoreTextFontKey *key);
+ _PANGO_EXTERN
+ double pango_core_text_font_key_get_resolution (const PangoCoreTextFontKey *key);
diff --git a/pango/patches/patch-pango_pangocoretext.c b/pango/patches/patch-pango_pangocoretext.c
new file mode 100644
index 0000000000..7d74dc9c98
--- /dev/null
+++ b/pango/patches/patch-pango_pangocoretext.c
@@ -0,0 +1,19 @@
+$NetBSD$
+
+From 60df2b006e5d4553abc7bb5fe9a99539c91b0022 Mon Sep 17 00:00:00 2001
+From: Tom Schoonjans <Tom.Schoonjans%diamond.ac.uk@localhost>
+Date: Fri, 20 Jul 2018 12:30:34 +0100
+Subject: [PATCH] Revert "Restore scaling of CoreText fonts."
+
+This reverts commit f661cdbf8cfbdb2ba7241d8dfa4a579c6dfe0a94.
+
+--- pango/pangocoretext.c.orig 2024-12-06 11:13:47.621384791 +0000
++++ pango/pangocoretext.c
+@@ -244,6 +244,7 @@ pango_core_text_font_class_init (PangoCo
+
+ font_class->describe = pango_core_text_font_describe;
+ /* font_class->describe_absolute is left virtual for PangoCairoCoreTextFont. */
++ font_class->describe_absolute = pango_core_text_font_describe;
+ font_class->get_coverage = pango_core_text_font_get_coverage;
+ font_class->get_font_map = pango_core_text_font_get_font_map;
+ font_class->create_hb_font = pango_core_text_font_create_hb_font;
diff --git a/pango/patches/patch-pango_pangocoretext.h b/pango/patches/patch-pango_pangocoretext.h
new file mode 100644
index 0000000000..a037015a4a
--- /dev/null
+++ b/pango/patches/patch-pango_pangocoretext.h
@@ -0,0 +1,17 @@
+$NetBSD: patch-pango_pangocoretext.h,v 1.3 2015/06/10 23:30:24 prlw1 Exp $
+
+Use correct CoreText header on Mac OS X.
+
+--- pango/pangocoretext.h.orig 2015-05-27 17:38:43.000000000 +0000
++++ pango/pangocoretext.h
+@@ -24,7 +24,9 @@
+ #define __PANGOCORETEXT_H__
+
+ #include <pango/pango.h>
+-#include <Carbon/Carbon.h>
++#ifndef __GI_SCANNER__
++#include <ApplicationServices/ApplicationServices.h>
++#endif
+
+ G_BEGIN_DECLS
+
diff --git a/pango/patches/patch-pangocairo-coretext.h b/pango/patches/patch-pangocairo-coretext.h
new file mode 100644
index 0000000000..1a08f133bb
--- /dev/null
+++ b/pango/patches/patch-pangocairo-coretext.h
@@ -0,0 +1,16 @@
+$NetBSD: patch-pangocairo-coretext.h,v 1.1 2012/05/15 15:07:23 adam Exp $
+
+Let g-ir-scanner skip this header file, since it cannot inspect frameworks.
+
+--- pango/pangocairo-coretext.h.orig 2012-05-15 14:55:59.000000000 +0000
++++ pango/pangocairo-coretext.h
+@@ -25,7 +25,9 @@
+
+ #include "pangocoretext-private.h"
+ #include <pango/pangocairo.h>
++#ifndef __GI_SCANNER__
+ #include <cairo-quartz.h>
++#endif
+
+ G_BEGIN_DECLS
+
diff --git a/pango/patches/patch-utils_meson.build b/pango/patches/patch-utils_meson.build
new file mode 100644
index 0000000000..855dacf28b
--- /dev/null
+++ b/pango/patches/patch-utils_meson.build
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Make help2man execute a wrapper script so that LD_LIBRARY_PATH can be defined.
+
+--- utils/meson.build.orig 2024-12-06 11:10:58.416813497 +0000
++++ utils/meson.build
+@@ -52,8 +52,9 @@ if help2man.found() and not meson.is_cro
+
+ custom_target('pango-view.1',
+ output: 'pango-view.1',
++ depends: pango_view,
+ command: [
+- help2man, help2man_opts, '--output=@OUTPUT@', pango_view
++ help2man, help2man_opts, '--output=@OUTPUT@', '--no-discard-stderr', meson.current_build_dir() + '/pango-view.sh'
+ ],
+ install: true,
+ install_dir: join_paths(pango_datadir, 'man/man1'))
Home |
Main Index |
Thread Index |
Old Index