commit:     7263286cfa62d51450677289267dfce366089b7a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Oct  2 22:15:02 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct  2 22:22:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7263286c

media-libs/harfbuzz: add 12.1.0

Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/harfbuzz/Manifest               |  1 +
 media-libs/harfbuzz/harfbuzz-12.1.0.ebuild | 91 ++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)

diff --git a/media-libs/harfbuzz/Manifest b/media-libs/harfbuzz/Manifest
index ca844ea2d28f..596ad6ee61f2 100644
--- a/media-libs/harfbuzz/Manifest
+++ b/media-libs/harfbuzz/Manifest
@@ -4,3 +4,4 @@ DIST harfbuzz-11.4.5.tar.xz 18150652 BLAKE2B 
a4a392c238857c414ee7659926a8e5c857e
 DIST harfbuzz-11.5.0.tar.xz 18154144 BLAKE2B 
d57dcb123550061c6d350eec6f1d8e1e17d489f1d841adcae380c4df237543f02fe9cb4a2def0867af9a6eb5fc9e1a974b8a6a4ff5c0addb052347d4f72e6a19
 SHA512 
94f2e8fcaede877ef869e9c71ea075af581210f7b05cf516c3bad768351a1c6b7df9a61022ec075b5f2c952cca3b9294a3b674ffd21b1604426b5a8e1693a022
 DIST harfbuzz-11.5.1.tar.xz 18212420 BLAKE2B 
0d5fc089a8bd1506bd4a77c3804c32537288b21c7af472806672bad7eea85012392d62f0c28bf24cc7049c919719c1bddbcce1cd2da1950a4034579086b3c76d
 SHA512 
c5525837cba6fd2d79660ffcf4069b107fa60eec21daeb89fb529c9b2a388392e92aca896c503fdd9545050ffc8e831281141fcfe816fee74b997a465ff2b528
 DIST harfbuzz-12.0.0.tar.xz 18212392 BLAKE2B 
4d57a2f567368b89572d8ec7c395747429589ae916c40d3974a80c6aa5372fb935e81914fc5381e2570fa0d2e51f5d7e7e004299eda44b6264df3cbf80e28611
 SHA512 
0592217ae45ec202e452d2d6924636d3bdb3ba0f9dde522ee40743c12d6a9c3fface6ec756e3b1a892d5e15a8c60f0cfb31029b2f34198d09a0392ff4a2814d8
+DIST harfbuzz-12.1.0.tar.xz 18208424 BLAKE2B 
126fd2f5028a2b99652dfca2948b43bf83f6ff498e067d561adbd686b24b4b496153cb6acc8ede412bd0ac407e08422fb40b0224206a7c45736969c10b62cfaa
 SHA512 
94cbc3fe8fad30f4f7871bdddc8b129c486ab55329f9b48c6336fdf15d05f09c3c96cac51f68a0218db113b4783c07ce5d6bb455ccc875b31fd2261e3e8dc559

diff --git a/media-libs/harfbuzz/harfbuzz-12.1.0.ebuild 
b/media-libs/harfbuzz/harfbuzz-12.1.0.ebuild
new file mode 100644
index 000000000000..9521bf5cc795
--- /dev/null
+++ b/media-libs/harfbuzz/harfbuzz-12.1.0.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..14} )
+
+inherit flag-o-matic meson-multilib python-any-r1 xdg-utils
+
+DESCRIPTION="An OpenType text shaping engine"
+HOMEPAGE="https://harfbuzz.github.io/";
+
+if [[ ${PV} == 9999 ]] ; then
+       EGIT_REPO_URI="https://github.com/harfbuzz/harfbuzz.git";
+       inherit git-r3
+else
+       
SRC_URI="https://github.com/harfbuzz/harfbuzz/releases/download/${PV}/${P}.tar.xz";
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+fi
+
+LICENSE="Old-MIT ISC icu"
+# 0.9.18 introduced the harfbuzz-icu split; bug #472416
+# 3.0.0 dropped some unstable APIs; bug #813705
+# 6.0.0 changed libharfbuzz-subset.so ABI
+SLOT="0/6.0.0"
+
+IUSE="+cairo debug doc experimental +glib +graphite icu +introspection test 
+truetype"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="introspection? ( glib )"
+
+RDEPEND="
+       cairo? ( x11-libs/cairo:=[${MULTILIB_USEDEP}] )
+       glib? ( >=dev-libs/glib-2.38:2[${MULTILIB_USEDEP}] )
+       graphite? ( >=media-gfx/graphite2-1.2.1:=[${MULTILIB_USEDEP}] )
+       icu? ( >=dev-libs/icu-51.2-r1:=[${MULTILIB_USEDEP}] )
+       introspection? ( >=dev-libs/gobject-introspection-1.34:= )
+       truetype? ( >=media-libs/freetype-2.5.0.1:2=[${MULTILIB_USEDEP}] )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       ${PYTHON_DEPS}
+       sys-apps/help2man
+       virtual/pkgconfig
+       doc? ( dev-util/gtk-doc )
+       introspection? ( dev-util/glib-utils )
+"
+
+src_prepare() {
+       default
+
+       xdg_environment_reset
+
+       # bug #790359
+       filter-flags -fexceptions -fthreadsafe-statics
+
+       if ! use debug ; then
+               append-cppflags -DHB_NDEBUG
+       fi
+}
+
+multilib_src_configure() {
+       # harfbuzz-gobject only used for introspection, bug #535852
+       local emesonargs=(
+               -Dcoretext=disabled
+               -Dchafa=disabled
+               -Dfontations=disabled
+               -Dwasm=disabled
+
+               $(meson_feature cairo)
+               $(meson_feature glib)
+               $(meson_feature graphite graphite2)
+               $(meson_feature icu)
+               $(meson_feature introspection gobject)
+               $(meson_feature test tests)
+               $(meson_feature truetype freetype)
+
+               $(meson_native_use_feature doc docs)
+               $(meson_native_use_feature introspection)
+               # Breaks building tests..
+               #$(meson_native_use_feature utilities)
+
+               $(meson_use experimental experimental_api)
+       )
+
+       meson_src_configure
+}
+
+multilib_src_test() {
+       # harfbuzz:src / check-static-inits times out on hppa
+       meson_src_test --timeout-multiplier 5
+}

Reply via email to