mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
font-alias: Install dummy fonts.dir files.
* gnu/packages/xorg.scm (font-alias)[arguments]: New 'install-fonts-dir' phase.
This commit is contained in:
parent
0f21557ce8
commit
bf9655f57d
1 changed files with 17 additions and 0 deletions
|
@ -413,6 +413,23 @@ (define-public font-alias
|
|||
"16ic8wfwwr3jicaml7b5a0sk6plcgc1kg84w02881yhwmqm3nicb"))))
|
||||
(build-system gnu-build-system)
|
||||
(native-inputs `(("pkg-config" ,pkg-config)))
|
||||
(arguments
|
||||
`(#:phases (modify-phases %standard-phases
|
||||
(add-after
|
||||
'install 'install-fonts-dir
|
||||
;; The X font server will not add directories to the font
|
||||
;; path unless they contain a "fonts.dir" file, so add some
|
||||
;; dummy files.
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(for-each (lambda (d)
|
||||
(call-with-output-file
|
||||
(string-append out "/share/fonts/X11"
|
||||
"/" d "/fonts.dir")
|
||||
(lambda (p)
|
||||
(format p "0~%"))))
|
||||
'("75dpi" "100dpi" "misc" "cyrillic"))
|
||||
#t))))))
|
||||
(home-page "http://www.x.org/wiki/")
|
||||
(synopsis "Xorg font aliases")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue