guix-devel
[Top][All Lists]
Advanced

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

[PATCH] Add un-fonts (new patch, closes old thread)


From: Nils Gillmann
Subject: [PATCH] Add un-fonts (new patch, closes old thread)
Date: Fri, 04 Mar 2016 23:11:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

This adds the fontset un-fonts and closes the old thread on it.

I made the file being served from sdf.org available on
krosos.sdf.org/static/unix/ and as soon as I get the okay from
any other location (potentially in-berlin.de) I will change the
location. Sdf.org is really permanent, but I prefer to move it to
a place which could serve it via tls.

>From 2dcb24a8ea630311743bc8b661c57db0ffcb5be9 Mon Sep 17 00:00:00 2001
From: Nils Gillmann <address@hidden>
Date: Fri, 4 Mar 2016 23:04:16 +0100
Subject: [PATCH] gnu: Add un-fonts.

* gnu/packages/fonts.scm (font-un-fonts): New variable.
---
 gnu/packages/fonts.scm | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 69e195d..141664e 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -628,3 +628,66 @@ Unicode's Basic Multilingual Plane.  The package also 
includes
 utilities to ease adding new glyphs to the font.")
     (home-page "http://unifoundry.com/unifont.html";)
     (license license:gpl2+)))
+
+(define-public font-un-fonts
+  (package
+    (name "font-un-fonts")
+    (version "1.0.2")
+    ;; origin server is serving us broken MIME
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "http://krosos.sdf.org/static/unix/";
+                    "un-fonts-core-" version "-080608" ".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
+     `(("source" ,source)
+       ("tar" ,tar)
+       ("gzip" ,gzip)))
+    (home-page "https://kldp.net/projects/unfonts/";)
+    (synopsis
+     "Un-fonts is a collection of Korean fonts")
+    (description
+     "Un-fonts is a family of mainly Korean fonts.
+It contains the following fonts and styles:
+
+UnBatang, UnBatangBold: serif
+UnDotum, UnDotumBold: sans-serif
+UnGraphic, UnGraphicBold: sans-serif style
+UnDinaru, UnDinaruBold, UnDinaruLight
+UnPilgi, UnPilgiBold: script
+UnGungseo: cursive, brush-stroke
+")
+    ;; GPL + embed exception for documents / images
+    (license license:gpl2+)))
-- 
2.6.3

thanks,
-- 
ng
irc://loupsycedyglgamf.onion:67/~NiAsterisk
https://psyced.org:34443/NiAsterisk/
EDN: https://wiki.c3d2.de/Echt_Dezentrales_Netz/en

reply via email to

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