mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: fontconfig: Update to 2.11.94.
* gnu/packages/fontutils.scm (fontconfig): Update to 2.11.94. [arguments]: Pass '--with-cache-dir=/var/cache/fontconfig' to configure. Add #:phases.
This commit is contained in:
parent
d0f74308e2
commit
030fa12ef2
1 changed files with 20 additions and 9 deletions
|
@ -71,14 +71,14 @@ (define-public freetype
|
||||||
(define-public fontconfig
|
(define-public fontconfig
|
||||||
(package
|
(package
|
||||||
(name "fontconfig")
|
(name "fontconfig")
|
||||||
(version "2.11.92")
|
(version "2.11.94")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append
|
(uri (string-append
|
||||||
"http://www.freedesktop.org/software/fontconfig/release/fontconfig-"
|
"http://www.freedesktop.org/software/fontconfig/release/fontconfig-"
|
||||||
version ".tar.bz2"))
|
version ".tar.bz2"))
|
||||||
(sha256 (base32
|
(sha256 (base32
|
||||||
"18r45dcnaj93izwfr082qiwg8ka7ll6j0c9yf1slblm542d5pmd9"))))
|
"1psrl4b4gi4wmbvwwh43lk491wsl8lgvqj146prlcha3vwjc0qyp"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(propagated-inputs `(("expat" ,expat)
|
(propagated-inputs `(("expat" ,expat)
|
||||||
("freetype" ,freetype)))
|
("freetype" ,freetype)))
|
||||||
|
@ -86,13 +86,24 @@ (define-public fontconfig
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("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
|
(list "--with-cache-dir=/var/cache/fontconfig"
|
||||||
(list "--with-default-fonts=~/.guix-profile/share/fonts"
|
;; register gs-fonts as default fonts
|
||||||
;; register gs-fonts
|
(string-append "--with-default-fonts="
|
||||||
(string-append "--with-add-fonts="
|
(assoc-ref %build-inputs "gs-fonts")
|
||||||
(assoc-ref %build-inputs "gs-fonts")
|
"/share/fonts")
|
||||||
"/share/fonts"))))
|
;; register fonts from user profile
|
||||||
|
"--with-add-fonts=~/.guix-profile/share/fonts"
|
||||||
|
;; python is not actually needed
|
||||||
|
"PYTHON=false")
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(replace 'install
|
||||||
|
(lambda _
|
||||||
|
;; Don't try to create /var/cache/fontconfig.
|
||||||
|
(zero? (system* "make" "install"
|
||||||
|
"fc_cachedir=$(TMPDIR)"
|
||||||
|
"RUN_FC_CACHE_TEST=false")))))))
|
||||||
(synopsis "Library for configuring and customizing font access")
|
(synopsis "Library for configuring and customizing 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