all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* gnu: fontconfig: update to 2.11.94.
@ 2015-08-17  8:44 宋文武
  2015-08-17  9:46 ` Ricardo Wurmus
  0 siblings, 1 reply; 3+ messages in thread
From: 宋文武 @ 2015-08-17  8:44 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 228 bytes --]

I change the '--with-default-fonts' to gs-fonts, and '--with-add-fonts'
to ~/.guix-profile.
which make 'test-bz89617' pass, alternative, we can set FONTCONFIG_FILE
to a file:
  <fontconfig>
    <dir>/tmp</dir>
  </fontconfig>



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-fontconfig-Update-to-2.11.94.patch --]
[-- Type: text/x-patch, Size: 2926 bytes --]

From c00d718aad3e75e7567f9d1799291e83e89f868f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= <iyzsong@gmail.com>
Date: Mon, 17 Aug 2015 16:16:04 +0800
Subject: [PATCH] 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.
---
 gnu/packages/fontutils.scm | 29 ++++++++++++++++++++---------
 1 file changed, 20 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 8b5346a..a25a2ea 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -71,14 +71,14 @@ anti-aliased glyph bitmap generation with 256 gray levels.")
 (define-public fontconfig
   (package
    (name "fontconfig")
-   (version "2.11.92")
+   (version "2.11.94")
    (source (origin
             (method url-fetch)
             (uri (string-append
                    "http://www.freedesktop.org/software/fontconfig/release/fontconfig-"
                    version ".tar.bz2"))
             (sha256 (base32
-                     "18r45dcnaj93izwfr082qiwg8ka7ll6j0c9yf1slblm542d5pmd9"))))
+                     "1psrl4b4gi4wmbvwwh43lk491wsl8lgvqj146prlcha3vwjc0qyp"))))
    (build-system gnu-build-system)
    (propagated-inputs `(("expat" ,expat)
                         ("freetype" ,freetype)))
@@ -86,13 +86,24 @@ anti-aliased glyph bitmap generation with 256 gray levels.")
    (native-inputs
       `(("pkg-config" ,pkg-config)))
    (arguments
-     `(#:configure-flags
-               ;; point to user profile instead of /usr/share/fonts in /etc/fonts.conf
-        (list "--with-default-fonts=~/.guix-profile/share/fonts"
-              ;; register gs-fonts
-              (string-append "--with-add-fonts="
-                             (assoc-ref %build-inputs "gs-fonts")
-                             "/share/fonts"))))
+    `(#:configure-flags
+      (list "--with-cache-dir=/var/cache/fontconfig"
+            ;; register gs-fonts as default fonts
+            (string-append "--with-default-fonts="
+                           (assoc-ref %build-inputs "gs-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")
    (description
     "Fontconfig can discover new fonts when installed automatically;
-- 
2.4.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: gnu: fontconfig: update to 2.11.94.
  2015-08-17  8:44 gnu: fontconfig: update to 2.11.94 宋文武
@ 2015-08-17  9:46 ` Ricardo Wurmus
  2015-08-17 10:56   ` 宋文武
  0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2015-08-17  9:46 UTC (permalink / raw)
  To: 宋文武; +Cc: guix-devel

Nice!  This is needed to fix score generation with lilypond (or rather
ghostscript conversion from ps to pdf).

This is for core-updates, right?

~~ Ricardo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gnu: fontconfig: update to 2.11.94.
  2015-08-17  9:46 ` Ricardo Wurmus
@ 2015-08-17 10:56   ` 宋文武
  0 siblings, 0 replies; 3+ messages in thread
From: 宋文武 @ 2015-08-17 10:56 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> writes:

> Nice!  This is needed to fix score generation with lilypond (or rather
> ghostscript conversion from ps to pdf).
>
> This is for core-updates, right?
Yes, that's the intention.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-17 10:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-17  8:44 gnu: fontconfig: update to 2.11.94 宋文武
2015-08-17  9:46 ` Ricardo Wurmus
2015-08-17 10:56   ` 宋文武

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.