# harfbuzz 14.2.1 — VARIANTE ISLA DINÁMICA (SHADOW de recipes/harfbuzz.toml estática).
# Shaping de texto (lo usa pango). Pango-1.0 referencia HarfBuzz-0.0 en su introspección ⇒ el
# g-ir-scanner de pango pide HarfBuzz-0.0.gir, que sólo produce harfbuzz con gobject+introspection.
# El corpus lo tiene disabled ⇒ esta variante lo habilita. Ver [[gnome-introspection-dinamica]].
#
# vs corpus: link=dynamic, default_library=both, -Dgobject=enabled -Dintrospection=enabled (produce
# HarfBuzz-0.0.gir/typelib + libharfbuzz.so/libharfbuzz-gobject.so). freetype-shared (el .so, para NEEDED
# coherente). Sombrea el corpus SÓLO para la cola GNOME.
name    = "harfbuzz"
version = "14.2.1"

[source]
tarball = "https://github.com/harfbuzz/harfbuzz/releases/download/14.2.1/harfbuzz-14.2.1.tar.xz"
sha256  = "a54a5d8e9380a41fbb762ce367bcbf7704792dfca0d93f1bbca86c5a57902e0e"

[build]
compiler = "zig-cc"
target   = "x86_64-linux-musl"
link     = "dynamic"

[build.phases]
configure = "PKG_CONFIG_PATH=/usr/lib/pkgconfig PYTHONPATH=/usr/lib/python3.12/site-packages meson setup output --prefix=/usr --buildtype=release -Ddefault_library=both -Dglib=enabled -Dgobject=enabled -Dcairo=disabled -Dicu=disabled -Dgraphite=disabled -Dfreetype=enabled -Dtests=disabled -Ddocs=disabled -Dintrospection=enabled -Dutilities=disabled"
compile   = "PYTHONPATH=/usr/lib/python3.12/site-packages ninja -C output"
install   = "PYTHONPATH=/usr/lib/python3.12/site-packages DESTDIR=/out meson install -C output --no-rebuild"

# glib(isla) + glib-introspected + gobject-introspection + py3-setuptools = maquinaria de typelibs.
# freetype-shared (.so) + su cierre libpng-shared/zlib-shared. pcre2/libffi = cierre .pc de glib.
[deps]
build = ["meson", "samurai", "python3", "py3-setuptools", "pkgconf", "gi-foreign-girs", "glib", "glib-introspected", "gobject-introspection", "freetype-shared", "libpng-shared", "zlib-shared", "pcre2", "libffi"]
