guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/07: gnu: fontconfig: Use 'font-dejavu' and remove replacement.


From: guix-commits
Subject: 05/07: gnu: fontconfig: Use 'font-dejavu' and remove replacement.
Date: Tue, 8 Dec 2020 05:31:05 -0500 (EST)

civodul pushed a commit to branch ungrafting
in repository guix.

commit 2dfb16150e11f273fd6f991bb563bf02a8a69402
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Tue Dec 8 11:05:41 2020 +0100

    gnu: fontconfig: Use 'font-dejavu' and remove replacement.
    
    * gnu/packages/fontutils.scm (fontconfig)[replacement]: Remove.
    [inputs]: Replace GS-FONTS by FONT-DEJAVU.
    [arguments]: Adjust accordingly.
    (fontconfig/font-dejavu): Remove.
---
 gnu/packages/fontutils.scm | 22 ++++++----------------
 1 file changed, 6 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 09d4b79..09cd214 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -318,12 +318,6 @@ Font Format (WOFF).")
 (define-public fontconfig
   (package
    (name "fontconfig")
-
-   ;; This replacement is not security-related, but works around the fact
-   ;; that gs-fonts are not recognized by newer versions of Pango, causing
-   ;; many applications to fail to find fonts otherwise.
-   (replacement fontconfig/font-dejavu)
-
    (version "2.13.1")
    (source (origin
             (method url-fetch)
@@ -338,16 +332,19 @@ Font Format (WOFF).")
    (propagated-inputs `(("expat" ,expat)
                         ("freetype" ,freetype)
                         ("libuuid" ,util-linux "lib")))
-   (inputs `(("gs-fonts" ,gs-fonts)))
+   (inputs
+    ;; We use to use 'gs-fonts' but they are not recognized by newer versions
+    ;; of Pango, causing many applications to fail to find fonts otherwise.
+    `(("font-dejavu" ,font-dejavu)))
    (native-inputs
     `(("gperf" ,gperf)
       ("pkg-config" ,pkg-config)))
    (arguments
     `(#:configure-flags
       (list "--with-cache-dir=/var/cache/fontconfig"
-            ;; register gs-fonts as default fonts
+            ;; register the default fonts
             (string-append "--with-default-fonts="
-                           (assoc-ref %build-inputs "gs-fonts")
+                           (assoc-ref %build-inputs "font-dejavu")
                            "/share/fonts")
 
             ;; Register fonts from user and system profiles.
@@ -380,13 +377,6 @@ high quality, anti-aliased and subpixel rendered text on a 
display.")
                        "See COPYING in the distribution."))
    (home-page "https://www.freedesktop.org/wiki/Software/fontconfig";)))
 
-(define fontconfig/font-dejavu
-  (package
-    (inherit fontconfig)
-    (inputs
-     ;; XXX: Reuse the name to avoid having to override the configure flags.
-     `(("gs-fonts" ,font-dejavu)))))
-
 (define-public t1lib
   (package
    (name "t1lib")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]