| 1 |
|
# Copyright 1999-2025 Gentoo Authors
|
|
1 |
# Copyright 1999-2026 Gentoo Authors
|
| 2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
3 |
|
| 4 |
4 |
EAPI=8
|
| ... | ... | |
| 13 |
13 |
SLOT="0"
|
| 14 |
14 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
| 15 |
15 |
|
| 16 |
|
IUSE="debug examples +introspection sysprof test X"
|
|
16 |
IUSE="debug examples libthai gtk-doc +introspection sysprof test X"
|
|
17 |
REQUIRED_USE="gtk-doc? ( introspection )"
|
| 17 |
18 |
RESTRICT="!test? ( test )"
|
| 18 |
19 |
|
| 19 |
20 |
RDEPEND="
|
| 20 |
|
>=dev-libs/glib-2.62.2:2[${MULTILIB_USEDEP}]
|
|
21 |
>=dev-libs/glib-2.82:2[${MULTILIB_USEDEP}]
|
| 21 |
22 |
>=dev-libs/fribidi-1.0.6[${MULTILIB_USEDEP}]
|
| 22 |
|
>=media-libs/harfbuzz-2.6.0:=[glib(+),introspection?,truetype(+),${MULTILIB_USEDEP}]
|
| 23 |
|
>=media-libs/fontconfig-2.13.0:1.0[${MULTILIB_USEDEP}]
|
| 24 |
|
>=x11-libs/cairo-1.12.10[X?,${MULTILIB_USEDEP}]
|
| 25 |
|
>=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}]
|
| 26 |
|
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= )
|
|
23 |
>=media-libs/harfbuzz-8.4.0:=[glib(+),introspection?,truetype(+),${MULTILIB_USEDEP}]
|
|
24 |
>=media-libs/fontconfig-2.17.0:1.0[${MULTILIB_USEDEP}]
|
|
25 |
>=x11-libs/cairo-1.18.0[X?,${MULTILIB_USEDEP}]
|
|
26 |
>=media-libs/freetype-2.5.0.1:2[harfbuzz,png,${MULTILIB_USEDEP}]
|
|
27 |
introspection? ( >=dev-libs/gobject-introspection-1.83.2:= )
|
|
28 |
libthai? ( dev-libs/libthai:= )
|
|
29 |
sysprof? ( >=dev-util/sysprof-capture-3.40.1:4[${MULTILIB_USEDEP}] )
|
| 27 |
30 |
X? (
|
| 28 |
31 |
>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
|
| 29 |
32 |
>=x11-libs/libXft-2.3.1-r1[${MULTILIB_USEDEP}]
|
| ... | ... | |
| 31 |
34 |
)
|
| 32 |
35 |
"
|
| 33 |
36 |
DEPEND="${RDEPEND}
|
| 34 |
|
sysprof? ( >=dev-util/sysprof-capture-3.40.1:4[${MULTILIB_USEDEP}] )
|
| 35 |
37 |
X? ( x11-base/xorg-proto )
|
| 36 |
38 |
"
|
| 37 |
39 |
BDEPEND="
|
| 38 |
40 |
dev-util/glib-utils
|
| 39 |
|
sys-apps/help2man
|
| 40 |
41 |
virtual/pkgconfig
|
|
42 |
dev-python/docutils
|
|
43 |
gtk-doc? (
|
|
44 |
introspection? (
|
|
45 |
>=dev-libs/gobject-introspection-1.83.2
|
|
46 |
dev-util/gi-docgen
|
|
47 |
)
|
|
48 |
)
|
| 41 |
49 |
test? ( media-fonts/cantarell )
|
| 42 |
50 |
"
|
| 43 |
51 |
|
| ... | ... | |
| 48 |
56 |
|
| 49 |
57 |
# get rid of a win32 example
|
| 50 |
58 |
rm examples/pangowin32tobmp.c || die
|
|
59 |
|
|
60 |
# Skip broken test: https://gitlab.gnome.org/GNOME/pango/-/issues/677
|
|
61 |
rm tests/layouts/valid-20.layout || die
|
|
62 |
|
|
63 |
# Often breaks w/ new harfbuzz (bug #960222)
|
|
64 |
sed -i -e '/test-font-data/d' tests/meson.build || die
|
| 51 |
65 |
}
|
| 52 |
66 |
|
| 53 |
67 |
multilib_src_configure() {
|
| ... | ... | |
| 61 |
75 |
# Never use gi-docgen subproject
|
| 62 |
76 |
--wrap-mode nofallback
|
| 63 |
77 |
|
| 64 |
|
-Ddocumentation=false # we ship pregenerated docs
|
|
78 |
$(meson_native_use_bool gtk-doc documentation)
|
| 65 |
79 |
$(meson_native_use_feature introspection)
|
|
80 |
-Dman-pages=true
|
| 66 |
81 |
$(meson_use test build-testsuite)
|
| 67 |
82 |
-Dbuild-examples=false
|
| 68 |
83 |
-Dfontconfig=enabled
|
| 69 |
84 |
$(meson_feature sysprof)
|
| 70 |
|
-Dlibthai=disabled
|
|
85 |
$(meson_native_use_feature libthai)
|
| 71 |
86 |
-Dcairo=enabled
|
| 72 |
87 |
$(meson_feature X xft)
|
| 73 |
88 |
-Dfreetype=enabled
|
| ... | ... | |
| 80 |
95 |
dodoc -r examples
|
| 81 |
96 |
fi
|
| 82 |
97 |
|
| 83 |
|
insinto /usr/share/gtk-doc/html
|
| 84 |
|
# This will install PangoXft API docs regardless of USE=-X, but this is intentional
|
| 85 |
|
doins -r "${S}"/docs/Pango*
|
| 86 |
|
}
|
| 87 |
|
|
| 88 |
|
pkg_postinst() {
|
| 89 |
|
xdg_pkg_postinst
|
| 90 |
|
|
| 91 |
|
if has_version 'media-libs/freetype[-harfbuzz]' ; then
|
| 92 |
|
ewarn "media-libs/freetype is installed without harfbuzz support. This may"
|
| 93 |
|
ewarn "lead to minor font rendering problems, see bug 712374."
|
|
98 |
if use gtk-doc; then
|
|
99 |
mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die
|
|
100 |
mv "${ED}"/usr/share/doc/Pango* "${ED}"/usr/share/gtk-doc/html/ || die
|
| 94 |
101 |
fi
|
| 95 |
102 |
}
|