mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: font-fantasque-sans: Update to 1.8.0.
* gnu/packages/fonts.scm (font-fantasque-sans): Update to 1.8.0. [native-inputs]: Remove ttf2eot. [arguments]: Rename the ‘xrange->range’ phase to ‘support-python@3’. Patch another Python twoism.
This commit is contained in:
parent
679d41b440
commit
0d197a63d1
1 changed files with 8 additions and 7 deletions
|
@ -781,7 +781,7 @@ (define-public font-un
|
|||
(define-public font-fantasque-sans
|
||||
(package
|
||||
(name "font-fantasque-sans")
|
||||
(version "1.7.2")
|
||||
(version "1.8.0")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
|
@ -790,26 +790,27 @@ (define-public font-fantasque-sans
|
|||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"1gjranq7qf20rfxnpxsckv1hl35nzsal0rjs475nhfbpqy5wmly6"))))
|
||||
(base32 "17l18488qyl9gdj80r8pcym3gp3jkgsdikwalnrp5rgvwidqx507"))))
|
||||
(build-system gnu-build-system)
|
||||
(native-inputs
|
||||
`(("ttfautohint" ,ttfautohint)
|
||||
("woff-tools" ,woff-tools)
|
||||
("fontforge" ,fontforge)
|
||||
("woff2" ,woff2)
|
||||
("ttf2eot" ,ttf2eot)
|
||||
("zip" ,zip)))
|
||||
(arguments
|
||||
`(#:tests? #f ;test target intended for visual inspection
|
||||
#:phases (modify-phases %standard-phases
|
||||
(delete 'configure) ;no configuration
|
||||
(add-before 'build 'xrange->range
|
||||
;; Rather than use a python2 fontforge, just replace the
|
||||
;; offending function.
|
||||
(add-before 'build 'support-python@3
|
||||
;; Rather than use a Python 2 fontforge, replace Python-2-
|
||||
;; specific code with a passable Python 3 equivalent.
|
||||
(lambda _
|
||||
(substitute* "Scripts/fontbuilder.py"
|
||||
(("xrange") "range"))
|
||||
(substitute* "Scripts/features.py"
|
||||
(("f\\.write\\(fea_code\\)")
|
||||
"f.write(str.encode(fea_code))"))
|
||||
#t))
|
||||
(replace 'install
|
||||
;; 'make install' wants to install to ~/.fonts, install to
|
||||
|
|
Loading…
Reference in a new issue