diff --git a/profiles/arch/alpha/package.use.mask b/profiles/arch/alpha/package.use.mask index 99d7fed71614c..aebc174e1ce80 100644 --- a/profiles/arch/alpha/package.use.mask +++ b/profiles/arch/alpha/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Alfred Wingate (2026-05-03) +# dev-libs/libthai not keyworded here +x11-libs/pango libthai + # Sam James (2026-04-11) # Unkeyworded dependencies sys-libs/libcap-ng bpf diff --git a/profiles/arch/hppa/package.use.mask b/profiles/arch/hppa/package.use.mask index 577b60af2ac05..9fa160c6f2412 100644 --- a/profiles/arch/hppa/package.use.mask +++ b/profiles/arch/hppa/package.use.mask @@ -4,6 +4,10 @@ # NOTE: When masking a USE flag due to missing keywords, please file a keyword # request bug for the hppa arch. +# Alfred Wingate (2026-05-03) +# dev-libs/libthai not keyworded here +x11-libs/pango libthai + # Sam James (2026-04-28) # dev-cpp/cpp-httplib doesn't support 32-bit arches dev-util/ccache http diff --git a/profiles/arch/loong/package.use.mask b/profiles/arch/loong/package.use.mask index 380305d05feb3..dc82f0ef61e4a 100644 --- a/profiles/arch/loong/package.use.mask +++ b/profiles/arch/loong/package.use.mask @@ -1,6 +1,10 @@ # Copyright 2022-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Alfred Wingate (2026-05-03) +# dev-libs/libthai not keyworded here +x11-libs/pango libthai + # Cristian Othón Martínez Vera (2026-03-22) # app-pda/usbmuxd is not keyworded here gnome-base/gvfs ios diff --git a/profiles/arch/mips/package.use.mask b/profiles/arch/mips/package.use.mask index 8cbcf8878ca73..0cc61b74a3dd6 100644 --- a/profiles/arch/mips/package.use.mask +++ b/profiles/arch/mips/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Alfred Wingate (2026-05-03) +# dev-libs/libthai not keyworded here +x11-libs/pango libthai + # Sam James (2026-04-11) # Unkeyworded dependencies sys-libs/libcap-ng bpf diff --git a/profiles/arch/powerpc/package.use.mask b/profiles/arch/powerpc/package.use.mask index cebef5a8b2c8b..34372ad63a415 100644 --- a/profiles/arch/powerpc/package.use.mask +++ b/profiles/arch/powerpc/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Alfred Wingate (2026-05-03) +# dev-libs/libthai not keyworded here +x11-libs/pango libthai + # Robin H. Johnson (2026-03-22) # sys-block/vdo not keyworded here sys-fs/lvm2 vdo diff --git a/profiles/arch/s390/package.use.mask b/profiles/arch/s390/package.use.mask index e9621ef3a3bee..6428578e10caf 100644 --- a/profiles/arch/s390/package.use.mask +++ b/profiles/arch/s390/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Alfred Wingate (2026-05-03) +# dev-libs/libthai not keyworded here +x11-libs/pango libthai + # Sam James (2026-04-11) # Unkeyworded dependencies sys-libs/libcap-ng bpf diff --git a/profiles/arch/sparc/package.use.mask b/profiles/arch/sparc/package.use.mask index 91125c85e6091..8c2e8325f159f 100644 --- a/profiles/arch/sparc/package.use.mask +++ b/profiles/arch/sparc/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Alfred Wingate (2026-05-03) +# dev-libs/libthai not keyworded here +x11-libs/pango libthai + # Brett A C Sheffield (2026-04-22) # virtual/pandoc is not keyworded here >=dev-libs/xmlsec-1.3.11 doc diff --git a/x11-libs/pango/Manifest b/x11-libs/pango/Manifest index 6ca20013c7b9d..54f6cac767124 100644 --- a/x11-libs/pango/Manifest +++ b/x11-libs/pango/Manifest @@ -3,3 +3,4 @@ DIST pango-1.54.0.tar.xz 1963180 BLAKE2B 92c389ab3f21631c245575e30804ffee6fef7b6 DIST pango-1.56.3.tar.xz 1883584 BLAKE2B 02b12409a0d16090ebde13e6d92b2053468e32b4b97eb0f758e05ea2ffc44141367b77cef7bb2b701785a4f9f9071d06e47a6d4974e2aa5839571fd0de19efc3 SHA512 adb5aa66ea0c45f7bb112867a77f25d31d39bbb18fd8d41df0c1fd329714def874aa3cb8a49847561a75b0824c2abf8ce09a610d088e88d7de015c36a1536ac0 DIST pango-1.56.4.tar.xz 1883988 BLAKE2B 727261844a914af5229379f7a0b41c2cc05df106523189f31112e50ba01a94bf45f17eacfb3e91fe51a2ea1d09132b6021cf51b8a0986ba258e651fc48e3f468 SHA512 19471618a66b68e19786c458387f2bc8027ecbda5aaf29efcc025a99b3a74402765c6c4c6ea2997d8f1219ef7f1bea817e6ca55e494dff24780f5d3f2a6242a2 DIST pango-1.57.0.tar.xz 2566400 BLAKE2B b74cb272812132c83d3654a0f5b292639556c014adf6b917f3588f242f56804336cf9bf701e6b32469251315e454a50b88216412ba39204ee6c4440f83eaeeaa SHA512 e3d251e0c2d5cb7f2e9d26e675aa2fae0c3cedce9e73b77f92a4abbeff55eaa819811e4c064ca036d3964a3ee4592f596ebfa7c0a760189b9d8c38a5f3a4ea3a +DIST pango-1.57.1.tar.xz 2588416 BLAKE2B 9b07a13c35a4b26df12ff720f727e54b4393640cd85a87253d1446eaa97d23d6c2ee3d09a7bb2379666cbb1097065f9aa20ec32bfe046c60c85e8bbb63fc65a8 SHA512 ccfcec11f0beb0487d9225be227e7f31d03229ed1e0dc3309e2647ed5fa953cf036ad352232429f5604f97d20812074ff145ea622110afa4df3a410ebba4d26a diff --git a/x11-libs/pango/metadata.xml b/x11-libs/pango/metadata.xml index 4882f116d6ea4..c64969f186ead 100644 --- a/x11-libs/pango/metadata.xml +++ b/x11-libs/pango/metadata.xml @@ -7,6 +7,7 @@ Install source code examples + Support Thai line-breaking with dev-libs/libthai Enable profiling data capture support using dev-util/sysprof-capture Build and install the legacy pangoxft library diff --git a/x11-libs/pango/pango-1.57.1.ebuild b/x11-libs/pango/pango-1.57.1.ebuild new file mode 100644 index 0000000000000..49c0c12ee21f9 --- /dev/null +++ b/x11-libs/pango/pango-1.57.1.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic gnome2-utils meson-multilib xdg + +DESCRIPTION="Internationalized text layout and rendering library" +HOMEPAGE="https://www.gtk.org/docs/architecture/pango https://gitlab.gnome.org/GNOME/pango" +SRC_URI="https://download.gnome.org/sources/pango/$(ver_cut 1-2)/${P}.tar.xz" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +IUSE="debug examples libthai gtk-doc +introspection sysprof test X" +REQUIRED_USE="gtk-doc? ( introspection )" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/glib-2.82:2[${MULTILIB_USEDEP}] + >=dev-libs/fribidi-1.0.6[${MULTILIB_USEDEP}] + >=media-libs/harfbuzz-8.4.0:=[glib(+),introspection?,truetype(+),${MULTILIB_USEDEP}] + >=media-libs/fontconfig-2.17.0:1.0[${MULTILIB_USEDEP}] + >=x11-libs/cairo-1.18.0[X?,${MULTILIB_USEDEP}] + >=media-libs/freetype-2.5.0.1:2[harfbuzz,png,${MULTILIB_USEDEP}] + introspection? ( >=dev-libs/gobject-introspection-1.83.2:= ) + libthai? ( dev-libs/libthai:= ) + sysprof? ( >=dev-util/sysprof-capture-3.40.1:4[${MULTILIB_USEDEP}] ) + X? ( + >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] + >=x11-libs/libXft-2.3.1-r1[${MULTILIB_USEDEP}] + >=x11-libs/libXrender-0.9.8[${MULTILIB_USEDEP}] + ) +" +DEPEND="${RDEPEND} + X? ( x11-base/xorg-proto ) +" +BDEPEND=" + dev-util/glib-utils + virtual/pkgconfig + dev-python/docutils + gtk-doc? ( + introspection? ( + >=dev-libs/gobject-introspection-1.83.2 + dev-util/gi-docgen + ) + ) + test? ( media-fonts/cantarell ) +" + +src_prepare() { + default + xdg_environment_reset + gnome2_environment_reset + + # get rid of a win32 example + rm examples/pangowin32tobmp.c || die + + # Skip broken test: https://gitlab.gnome.org/GNOME/pango/-/issues/677 + rm tests/layouts/valid-20.layout || die + + # Often breaks w/ new harfbuzz (bug #960222) + sed -i -e '/test-font-data/d' tests/meson.build || die +} + +multilib_src_configure() { + if use debug; then + append-cflags -DPANGO_ENABLE_DEBUG + else + append-cflags -DG_DISABLE_CAST_CHECKS + fi + + local emesonargs=( + # Never use gi-docgen subproject + --wrap-mode nofallback + + $(meson_native_use_bool gtk-doc documentation) + $(meson_native_use_feature introspection) + -Dman-pages=true + $(meson_use test build-testsuite) + -Dbuild-examples=false + -Dfontconfig=enabled + $(meson_feature sysprof) + $(meson_native_use_feature libthai) + -Dcairo=enabled + $(meson_feature X xft) + -Dfreetype=enabled + ) + meson_src_configure +} + +multilib_src_install_all() { + if use examples; then + dodoc -r examples + fi + + if use gtk-doc; then + mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die + mv "${ED}"/usr/share/doc/Pango* "${ED}"/usr/share/gtk-doc/html/ || die + fi +}