mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-02 11:38:07 -07:00
x11-libs/pango: add 1.57.1
* Hookup libthai. * Move sysprof to runtime dependencies to avoid breakage in reverse dependencies. Bug: https://bugs.gentoo.org/931307 Bug: https://bugs.gentoo.org/973565 Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/809 Merges: https://codeberg.org/gentoo/gentoo/pulls/809 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
c5b220340e
commit
a4b2a40729
@@ -1,6 +1,10 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Alfred Wingate <parona@protonmail.com> (2026-05-03)
|
||||
# dev-libs/libthai not keyworded here
|
||||
x11-libs/pango libthai
|
||||
|
||||
# Sam James <sam@gentoo.org> (2026-04-11)
|
||||
# Unkeyworded dependencies
|
||||
sys-libs/libcap-ng bpf
|
||||
|
||||
@@ -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 <parona@protonmail.com> (2026-05-03)
|
||||
# dev-libs/libthai not keyworded here
|
||||
x11-libs/pango libthai
|
||||
|
||||
# Sam James <sam@gentoo.org> (2026-04-28)
|
||||
# dev-cpp/cpp-httplib doesn't support 32-bit arches
|
||||
dev-util/ccache http
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
# Copyright 2022-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Alfred Wingate <parona@protonmail.com> (2026-05-03)
|
||||
# dev-libs/libthai not keyworded here
|
||||
x11-libs/pango libthai
|
||||
|
||||
# Cristian Othón Martínez Vera <cfuga@cfuga.mx> (2026-03-22)
|
||||
# app-pda/usbmuxd is not keyworded here
|
||||
gnome-base/gvfs ios
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Alfred Wingate <parona@protonmail.com> (2026-05-03)
|
||||
# dev-libs/libthai not keyworded here
|
||||
x11-libs/pango libthai
|
||||
|
||||
# Sam James <sam@gentoo.org> (2026-04-11)
|
||||
# Unkeyworded dependencies
|
||||
sys-libs/libcap-ng bpf
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Alfred Wingate <parona@protonmail.com> (2026-05-03)
|
||||
# dev-libs/libthai not keyworded here
|
||||
x11-libs/pango libthai
|
||||
|
||||
# Robin H. Johnson <robbat2@gentoo.org> (2026-03-22)
|
||||
# sys-block/vdo not keyworded here
|
||||
sys-fs/lvm2 vdo
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Alfred Wingate <parona@protonmail.com> (2026-05-03)
|
||||
# dev-libs/libthai not keyworded here
|
||||
x11-libs/pango libthai
|
||||
|
||||
# Sam James <sam@gentoo.org> (2026-04-11)
|
||||
# Unkeyworded dependencies
|
||||
sys-libs/libcap-ng bpf
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Alfred Wingate <parona@protonmail.com> (2026-05-03)
|
||||
# dev-libs/libthai not keyworded here
|
||||
x11-libs/pango libthai
|
||||
|
||||
# Brett A C Sheffield <bacs@librecast.net> (2026-04-22)
|
||||
# virtual/pandoc is not keyworded here
|
||||
>=dev-libs/xmlsec-1.3.11 doc
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="examples">Install source code examples</flag>
|
||||
<flag name="libthai">Support Thai line-breaking with <pkg>dev-libs/libthai</pkg></flag>
|
||||
<flag name="sysprof">Enable profiling data capture support using <pkg>dev-util/sysprof-capture</pkg></flag>
|
||||
<flag name="X">Build and install the legacy pangoxft library</flag>
|
||||
</use>
|
||||
|
||||
102
x11-libs/pango/pango-1.57.1.ebuild
Normal file
102
x11-libs/pango/pango-1.57.1.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user