From 7597030cb6f2efd8c54ff9b9a0a6fc110b03b8b6 Mon Sep 17 00:00:00 2001 From: pinoaffe Date: Mon, 22 Sep 2025 09:39:07 +0200 Subject: [PATCH] gnu: Add birdfont. * gnu/packages/fontutils.scm (birdfont): New variable. Change-Id: I23e297e48cbd6a93ef1be199b1ad3280bd5482f3 --- gnu/packages/fontutils.scm | 54 +++++++++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm index 8603f7224f3..ba279e86b19 100644 --- a/gnu/packages/fontutils.scm +++ b/gnu/packages/fontutils.scm @@ -18,7 +18,7 @@ ;;; Copyright © 2023 gemmaro ;;; Copyright © 2023 John Kehayias ;;; Copyright © 2023 Janneke Nieuwenhuizen -;;; Copyright © 2023 pinoaffe +;;; Copyright © 2023, 2025 pinoaffe ;;; Copyright © 2023 Liliana Marie Prikler ;;; Copyright © 2024 Sören Tempel ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> @@ -2143,6 +2143,58 @@ edit the fonts that your GNU/Linux kernel is using to display your text on text- based (vs graphical) terminals.") (license license:gpl3+))) +(define-public birdfont + (package + (name "birdfont") + (version "2.33.6") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/johanmattssonm/birdfont") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "137qmfjdhs8m06j95iqcdv5hrpp2kf8p6l0sa0jr7vl7ziin65gg")))) + (build-system gnu-build-system) + (arguments (list + #:tests? #f ; no tests + #:phases + #~(modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (apply system* + "python3" + "configure" + ;; Required for RUNPATH validation. + (string-append "--ldflags=-Wl,-rpath=" out "/lib") + (string-append "--prefix=" out) + configure-flags)))) + (replace 'build + (lambda _ (system* "python3" "build.py"))) + (replace 'install + (lambda _ (system* "python3" "install.py" "--libdir=/lib")))))) + (inputs (list cairo + gdk-pixbuf + glib + gtk+/fixed + libgee + libnotify + libsoup + sqlite + webkitgtk-for-gtk3 + xmlbird)) + (native-inputs (list gettext-minimal + pkg-config + python-doit + python-wrapper + vala)) + (home-page "https://github.com/johanmattssonm/birdfont") + (synopsis "Font editor for creating fonts in TTF, EOT, and SVG format") + (description "Birdfont is a font editor which can create vector graphics and export +TTF, EOT, and SVG fonts. It includes a graphical as well as a commandline interface.") + (license license:gpl3))) (define-public lcdf-typetools (package