guix-commits
[Top][All Lists]
Advanced

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

03/03: gnu: Add font-un.


From: Ludovic Courtès
Subject: 03/03: gnu: Add font-un.
Date: Sun, 13 Mar 2016 22:39:31 +0000

civodul pushed a commit to branch master
in repository guix.

commit aae6b4b9a98a5b183aa5bd3a5850ecca609fdc92
Author: Nils Gillmann <address@hidden>
Date:   Sun Mar 6 18:23:11 2016 +0100

    gnu: Add font-un.
    
    * gnu/packages/fonts.scm (font-un): New variable.
    
    Signed-off-by: Ludovic Courtès <address@hidden>
---
 gnu/packages/fonts.scm |   67 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 67 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 24fd9c2..01c5eef 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -673,3 +673,70 @@ utilities to ease adding new glyphs to the font.")
 languages with a consistent look and aesthetic.  It's goal is to have no 
Unicode
 symbols unable to be displayed properly.")
     (license license:silofl1.1)))
+
+(define-public font-un
+  (package
+    (name "font-un")
+    (version "1.0.2-080608")
+    ;; The upstream server at kldp.net is serving us broken MIME.
+    ;; See <http://bugs.gnu.org/22908>.
+    (source (origin
+              (method url-fetch)
+              (uri (list
+                    (string-append
+                     "http://krosos.sdf.org/static/unix/";
+                     "un-fonts-core-" version ".tar.gz")
+                    ;; XXX: The upstream server at kldp.net
+                    (string-append
+                     
"https://kldp.net/projects/unfonts/download/4695?filename=";
+                     "un-fonts-core-" version ".tar.gz")))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "13liaz2pmww3aqabm55la5npd08m1skh334ky7qfidxaz5s742iv"))))
+    (build-system trivial-build-system)
+    (arguments
+     `(#:modules ((guix build utils))
+       #:builder
+       (begin
+         (use-modules (guix build utils))
+
+         (let ((tar      (string-append (assoc-ref %build-inputs "tar")
+                                        "/bin/tar"))
+               (PATH     (string-append (assoc-ref %build-inputs "gzip")
+                                        "/bin"))
+               (font-dir (string-append %output "/share/fonts/truetype"))
+               (doc-dir  (string-append %output "/share/doc/" ,name)))
+           (setenv "PATH" PATH)
+           (system* tar "xvf" (assoc-ref %build-inputs "source"))
+           (mkdir-p font-dir)
+           (mkdir-p doc-dir)
+           (chdir (string-append "un-fonts"))
+           (for-each (lambda (ttf)
+                       (copy-file ttf
+                                  (string-append font-dir "/"
+                                                 (basename ttf))))
+                     (find-files "." "\\.ttf$"))
+           (for-each (lambda (doc)
+                       (copy-file doc
+                                  (string-append doc-dir "/"
+                                                 (basename doc))))
+                     '("COPYING" "README"))))))
+    (native-inputs
+     `(("tar" ,tar)
+       ("gzip" ,gzip)))
+    (home-page "https://kldp.net/projects/unfonts/";)
+    (synopsis "Collection of Korean fonts")
+    (description
+     "Un-fonts is a family of mainly Korean fonts.
+It contains the following fonts and styles:
+
address@hidden
address@hidden UnBatang, UnBatangBold: serif;
address@hidden UnDotum, UnDotumBold: sans-serif;
address@hidden UnGraphic, UnGraphicBold: sans-serif style;
address@hidden UnDinaru, UnDinaruBold, UnDinaruLight;
address@hidden UnPilgi, UnPilgiBold: script;
address@hidden UnGungseo: cursive, brush-stroke.
address@hidden enumerate\n")
+    (license license:gpl2+)))



reply via email to

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