gnu: font-culmus: Update to 0.140.

* gnu/packages/fonts.scm (font-culmus): Update to 0.140.
[arguments]: Update 'build phase to use included scripts.

Change-Id: I6dc1d3d06c57a7d6305467db23bcff220961c014
This commit is contained in:
Efraim Flashner 2024-09-11 14:27:23 +03:00
parent b6d5a7f583
commit 59b6be9133
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -2362,7 +2362,7 @@ (define-public font-dosis
(define-public font-culmus (define-public font-culmus
(package (package
(name "font-culmus") (name "font-culmus")
(version "0.133") (version "0.140")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
@ -2371,7 +2371,7 @@ (define-public font-culmus
version ".tar.gz")) version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"02akysgsqhi15cck54xcacm16q5raf4l7shgb8fnj7xr3c1pbfyp")))) "0fn79vndpa45gqr4mjmxzwy910x4ls1s6wbnycyf44bhpz4b4z5s"))))
(build-system font-build-system) (build-system font-build-system)
(arguments (arguments
`(#:license-file-regexp "^GNU-GPL|LICENSE" `(#:license-file-regexp "^GNU-GPL|LICENSE"
@ -2379,22 +2379,10 @@ (define-public font-culmus
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'install 'build (add-before 'install 'build
(lambda _ (lambda _
(let ((compile (for-each (lambda (font)
(lambda (name ext) (invoke "./GenerateOTF.py" font)
(invoke (invoke "./GenerateTTF.py" font))
"fontforge" "-lang=ff" (find-files "." "\\.sfd$")))))))
"-c" (string-append "Open('" name "');"
"Generate('"
(basename name "sfd") ext
"')")))))
;; This part based on the fonts shipped in the non-source package.
(for-each (lambda (name)
(compile name "ttf"))
(find-files "." "^[^Nachlieli].*\\.sfd$"))
(for-each (lambda (name)
(compile name "otf"))
(find-files "." "^Nachlieli.*\\.sfd$"))
#t))))))
(native-inputs (native-inputs
(list fontforge)) (list fontforge))
(home-page "https://culmus.sourceforge.io/") (home-page "https://culmus.sourceforge.io/")