From 8eb6ab38d47f373b6a1b6a7c043b7ea7f8b8f2cf Mon Sep 17 00:00:00 2001 Message-ID: <8eb6ab38d47f373b6a1b6a7c043b7ea7f8b8f2cf.1735762381.git.rovanion.luckey@gmail.com> From: Rovanion Luckey Date: Wed, 1 Jan 2025 20:52:08 +0100 Subject: [PATCH 1/3] gnu: Add harfbuzz-meson. * gnu/packages/gtk.scm (harfbuzz-meson): New variable. Temporary package to cover the need of MuseScore to have Harfbuzz built with Meson in order for it to produce the CMake-files it needs, but without having to rebuild its 15.000 dependants. Later to be removed when the main package is switched over to be built with Meson. Change-Id: I21406452155674a292656142268c40f01902d25d --- gnu/packages/gtk.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm index ef1391e8ba..984645f847 100644 --- a/gnu/packages/gtk.scm +++ b/gnu/packages/gtk.scm @@ -37,6 +37,7 @@ ;;; Copyright © 2023, 2024 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2023 Janneke Nieuwenhuizen ;;; Copyright © 2024 John Kehayias +;;; Copyright © 2024, 2025 Rovanion Luckey ;;; ;;; This file is part of GNU Guix. ;;; @@ -278,6 +279,45 @@ (define-public cairo-xcb #~(cons "-Dxlib-xcb=enabled" #$flags)))) (synopsis "2D graphics library (with X11 support)"))) +(define-public harfbuzz-meson + (package + (name "harfbuzz") + (version "8.3.0") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/harfbuzz/harfbuzz" + "/releases/download/" version "/harfbuzz-" + version ".tar.xz")) + (sha256 + (base32 + "0izq2lpqxrf1l755nxrxkkiarywkx5j43asznankxplbxgm0358h")))) + (build-system meson-build-system) + (outputs '("out" + "bin")) ;160K, only hb-view depend on cairo + (inputs + (list cairo)) + (propagated-inputs + ;; There are all in the Requires or Requires.private field of '.pc'. + (list glib graphite2 icu4c)) + (native-inputs + (append (list `(,glib "bin")) ;for glib-mkenums + (if (target-hurd?) + '() + (list gobject-introspection)) + (list pkg-config + python-wrapper + which))) + (arguments + (list #:configure-flags + #~(list "-Dgraphite2=enabled" + (string-append "--bindir=" #$output:bin "/bin")))) + (synopsis "OpenType text shaping engine") + (description + "HarfBuzz is an OpenType text shaping engine.") + (license (license:x11-style "file://COPYING" + "See 'COPYING' in the distribution.")) + (home-page "https://www.freedesktop.org/wiki/Software/HarfBuzz/"))) + (define-public harfbuzz (package (name "harfbuzz") base-commit: d43f2386383b1428c3b79e8a1443986a75341ad5 -- 2.46.0