all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: Add ttf-symbola.
Date: Wed, 22 Oct 2014 20:51:04 +0400	[thread overview]
Message-ID: <87iojcdp53.fsf@gmail.com> (raw)

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

This font may be useful for resolving some symbols (like  🐼, 😻) in Emacs.

I don't know what license should be used, as the only mention about the
license is the following note from <http://users.teilar.gr/~g1951d/>:

«In lieu of a licence: Fonts in this site are offered free for any use;
they may be opened, edited, modified, regenerated, posted, packaged and
redistributed.»

Is it OK to use "fsf-free" for this package?


[-- Attachment #2: 0001-gnu-Add-ttf-symbola.patch --]
[-- Type: text/x-diff, Size: 3342 bytes --]

From 42e291f301925f766436570fa8efabde51ef89a2 Mon Sep 17 00:00:00 2001
From: Alex Kost <alezost@gmail.com>
Date: Wed, 22 Oct 2014 20:36:33 +0400
Subject: [PATCH] gnu: Add ttf-symbola.

* gnu/packages/fonts.scm (ttf-symbola): New variable.
---
 gnu/packages/fonts.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 7c95666..188f7b0 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
 ;;; Copyright © 2014 Guy Grant <tadnimi@gnu.org>
+;;; Copyright © 2014 Alex Kost <alezost@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -26,6 +27,7 @@
   #:use-module (guix build-system trivial)
   #:use-module ((gnu packages base)
                 #:select (tar))
+  #:use-module (gnu packages zip)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages xorg)
@@ -240,3 +242,52 @@ for long (8 and more hours per day) work with computers.")
     (license
      (license:x11-style
       "http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web"))))
+
+(define-public ttf-symbola
+  (package
+    (name "ttf-symbola")
+    (version "7.17")
+    (source (origin
+              (method url-fetch)
+              (uri "http://users.teilar.gr/~g1951d/Symbola.zip")
+              (sha256
+               (base32
+                "19q5wcqk1rz8ps7jvvx1rai6x8ais79z71sm8d36hvsk2vr135al"))))
+    (build-system trivial-build-system)
+    (arguments
+     `(#:modules ((guix build utils))
+       #:builder
+       (begin
+         (use-modules (guix build utils))
+
+         (let ((unzip    (string-append (assoc-ref %build-inputs "unzip")
+                                        "/bin/unzip"))
+               (font-dir (string-append %output "/share/fonts/truetype"))
+               (doc-dir  (string-append %output "/share/doc/" ,name)))
+           (system* unzip (assoc-ref %build-inputs "source"))
+           (mkdir-p font-dir)
+           (mkdir-p doc-dir)
+           (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))))
+                     (find-files "." "\\.docx$|\\.htm$"))))))
+    (native-inputs
+     `(("source" ,source)
+       ("unzip" ,unzip)))
+    (home-page "http://users.teilar.gr/~g1951d/")
+    (synopsis "Font with many Unicode symbols")
+    (description
+     "Symbola is a TrueType font providing basic Latin, Greek, Cyrillic and many
+Symbol blocks of Unicode.")
+    (license
+     (license:fsf-free
+      "http://users.teilar.gr/~g1951d/"
+      "In lieu of a licence: Fonts in this site are offered free for any use;
+they may be opened, edited, modified, regenerated, posted, packaged and
+redistributed."))))
-- 
2.1.2


             reply	other threads:[~2014-10-22 16:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <RT-Ticket-954922@rt.gnu.org>
2014-10-22 16:51 ` Alex Kost [this message]
2014-10-23  6:26   ` [PATCH] gnu: Add ttf-symbola Andreas Enge
2014-10-23 14:14     ` Eric Bavier
2014-10-23 17:36       ` Ian Denhardt
2014-10-24  6:11         ` Alex Kost
2014-10-24  6:52           ` Ian Denhardt
2014-10-24 17:47             ` Alex Kost
2014-11-13 20:15             ` Ludovic Courtès
2014-11-16 19:27               ` Ian Denhardt
2014-11-16 21:09                 ` Ludovic Courtès
2014-11-19  3:28                   ` [PATCH] gnu: Add ttf-symbola. [gnu.org #954922] Ian Denhardt
     [not found]                     ` <rt-3.4.5-31938-1416367745-1484.954922-6-0@rt.gnu.org>
2014-12-16 21:58                       ` [gnu.org #954922] Vague "licensing" for the symbola font Donald R Robertson III via RT
2014-12-17 19:53                   ` [PATCH] gnu: Add ttf-symbola Ian Denhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iojcdp53.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.