all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH]Remove empty doc directory from Hack font installation.
@ 2016-10-05 21:19 Dmitry Nikolaev
  2016-10-06 13:01 ` 宋文武
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Nikolaev @ 2016-10-05 21:19 UTC (permalink / raw)
  To: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 172 bytes --]

Hi. Hack font original zip file does not contain any documentation about
it, so empty doc directory in its installation is useless. This patch
removes it.

Dmitry Nikolaev

[-- Attachment #1.2: Type: text/html, Size: 214 bytes --]

[-- Attachment #2: 0001-Remove-empty-doc-directory-from-Hack-font-installati.patch --]
[-- Type: text/x-patch, Size: 1840 bytes --]

From b85bb829aa5e8f8701e88c65c01b87976a7c5e1c Mon Sep 17 00:00:00 2001
From: 8p8c <cameltheman@gmail.com>
Date: Thu, 6 Oct 2016 00:15:53 +0300
Subject: [PATCH] Remove empty doc directory from Hack font installation.

---
 gnu/packages/fonts.scm | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 9482d7a..95bc644 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -837,22 +837,15 @@ glyph designs, not just an added slant.")
                                                              "unzip")
                                                   "/bin"))
                          (font-dir (string-append %output
-                                                  "/share/fonts/truetype"))
-                         (doc-dir  (string-append %output "/share/doc/"
-                                                  ,name "-" ,version)))
+                                                  "/share/fonts/truetype")))
                      (setenv "PATH" PATH)
                      (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 "/" ttf)))
-                               (find-files "." "\\.ttf$"))
-                     (for-each (lambda (doc)
-                                 (copy-file doc
-                                            (string-append doc-dir "/" doc)))
-                               (find-files "." "\\.txt$"))))))
+                               (find-files "." "\\.ttf$"))))))
     (native-inputs
      `(("source" ,source)
        ("unzip" ,unzip)))
-- 
2.10.0


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

* Re: [PATCH]Remove empty doc directory from Hack font installation.
  2016-10-05 21:19 [PATCH]Remove empty doc directory from Hack font installation Dmitry Nikolaev
@ 2016-10-06 13:01 ` 宋文武
  0 siblings, 0 replies; 2+ messages in thread
From: 宋文武 @ 2016-10-06 13:01 UTC (permalink / raw)
  To: Dmitry Nikolaev; +Cc: guix-devel

Dmitry Nikolaev <cameltheman@gmail.com> writes:

> Hi. Hack font original zip file does not contain any documentation about it, so empty doc directory in its
> installation is useless. This patch removes it.

Applied, thanks!

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

end of thread, other threads:[~2016-10-06 13:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-05 21:19 [PATCH]Remove empty doc directory from Hack font installation Dmitry Nikolaev
2016-10-06 13:01 ` 宋文武

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.