all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* fonts.scm -> packaging "un-fonts", download isses
@ 2016-02-28 22:40 Nils Gillmann
  2016-02-29  6:32 ` Ricardo Wurmus
  0 siblings, 1 reply; 10+ messages in thread
From: Nils Gillmann @ 2016-02-28 22:40 UTC (permalink / raw)
  To: guix-devel

I try to package/import some leftovers from gentoo I have,
currently the fontset "un-fonts".
I get some errors while trying to download it. Currently it's
based on another font package where I try to adopt my existing
ebuild into. Here is the package definition and the output:

(define-public font-un-fonts
  (package
    (name "font-un-fonts")
    (version "1.0.2")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "https://kldp.net/frs/download.php/4695/"
                    "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-ttf-" ,version))
           (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
")
    (license license:gpl2)))


the error output (to cut down the line length here) is located
here: https://ptpb.pw/EFI5

-- 
ng
irc://loupsycedyglgamf.onion:67/~NiAsterisk
http://loupsycedyglgamf.onion/NiAsterisk/
EDN: https://wiki.c3d2.de/Echt_Dezentrales_Netz/en

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

end of thread, other threads:[~2016-03-05  0:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-28 22:40 fonts.scm -> packaging "un-fonts", download isses Nils Gillmann
2016-02-29  6:32 ` Ricardo Wurmus
2016-02-29 10:04   ` Nils Gillmann
2016-02-29 10:28     ` Nils Gillmann
2016-02-29 10:39       ` Ricardo Wurmus
2016-02-29 10:52         ` Nils Gillmann
2016-02-29 12:29           ` Ricardo Wurmus
2016-03-04 11:53             ` Nils Gillmann
2016-03-05  0:03               ` Andreas Enge
2016-03-04 13:17             ` Nils Gillmann

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.