mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 06:36:37 -05:00
gnu: fontconfig: Add and register gs-fonts.
* gnu/packages/fontutils.scm (fontconfig): Add gs-fonts as an input and register it in the configuration file; so any porgram using fontconfig should at least have the gs-fonts at its disposal.
This commit is contained in:
parent
f1dfb7c47c
commit
b972db7275
1 changed files with 8 additions and 2 deletions
|
@ -19,6 +19,7 @@
|
||||||
(define-module (gnu packages fontutils)
|
(define-module (gnu packages fontutils)
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
#:use-module (gnu packages compression)
|
#:use-module (gnu packages compression)
|
||||||
|
#:use-module (gnu packages ghostscript)
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
#:use-module (gnu packages xml)
|
#:use-module (gnu packages xml)
|
||||||
#:use-module ((guix licenses) #:renamer (symbol-prefix-proc 'license:))
|
#:use-module ((guix licenses) #:renamer (symbol-prefix-proc 'license:))
|
||||||
|
@ -75,11 +76,16 @@ (define-public fontconfig
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(inputs `(("expat" ,expat)
|
(inputs `(("expat" ,expat)
|
||||||
("freetype" ,freetype)
|
("freetype" ,freetype)
|
||||||
|
("gs-fonts" ,gs-fonts)
|
||||||
("pkg-config" ,pkg-config)))
|
("pkg-config" ,pkg-config)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags
|
`(#:configure-flags
|
||||||
;; point to user profile instead of /usr/share/fonts in /etc/fonts.conf
|
;; point to user profile instead of /usr/share/fonts in /etc/fonts.conf
|
||||||
`("--with-default-fonts=~/.guix-profile/share/fonts")))
|
(list "--with-default-fonts=~/.guix-profile/share/fonts"
|
||||||
|
;; register gs-fonts
|
||||||
|
(string-append "--with-add-fonts="
|
||||||
|
(assoc-ref %build-inputs "gs-fonts")
|
||||||
|
"/share/fonts"))))
|
||||||
(synopsis "Fontconfig, a library for configuring and customising font access.")
|
(synopsis "Fontconfig, a library for configuring and customising font access.")
|
||||||
(description
|
(description
|
||||||
"Fontconfig can discover new fonts when installed automatically;
|
"Fontconfig can discover new fonts when installed automatically;
|
||||||
|
|
Loading…
Reference in a new issue