unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#40707] gnu: font-gnu-freefont: Add otf and woff font types.
@ 2020-04-19  4:13 Raghav Gururajan
  2020-04-19  4:51 ` [bug#40707] gnu: Add otf and woff font formats for GNU Freefont. (v2) Raghav Gururajan
  2020-04-22 19:07 ` [bug#40707] v3 Raghav Gururajan
  0 siblings, 2 replies; 6+ messages in thread
From: Raghav Gururajan @ 2020-04-19  4:13 UTC (permalink / raw)
  To: 40707

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



[-- Attachment #2: 0001-gnu-font-gnu-freefont-Add-otf-and-woff-font-types.patch --]
[-- Type: text/x-patch, Size: 3539 bytes --]

From 0708899aef39921a338b77ebc772607963b89ca4 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sun, 19 Apr 2020 00:06:35 -0400
Subject: [PATCH] gnu: font-gnu-freefont: Add otf and woff font types.

* gnu/packages/fonts.scm (font-gnu-freefont): Add otf and woff font types.
---
 gnu/packages/fonts.scm | 34 ++++++++++++++++++++++++++--------
 1 file changed, 26 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index dbc0c4f9d6..f06f5bcc60 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -230,9 +230,9 @@ The Lato 2.010 family supports more than 100 Latin-based languages, over
 50 Cyrillic-based languages as well as Greek and IPA phonetics.")
     (license license:silofl1.1)))
 
-(define-public font-gnu-freefont-ttf
+(define-public font-gnu-freefont
   (package
-    (name "font-gnu-freefont-ttf")
+    (name "font-gnu-freefont")
     (version "20120503")
     (source (origin
              (method url-fetch)
@@ -249,18 +249,36 @@ The Lato 2.010 family supports more than 100 Latin-based languages, over
                    (lambda _
                      (let ((doc-dir  (string-append %output "/share/doc/"
                                                     ,name "-" ,version))
-                           (font-dir (string-append %output
-                                                    "/share/fonts/truetype")))
+                           (ttf-font-dir (string-append %output
+                                                    "/share/fonts/ttf"))
+                           (otf-font-dir (string-append %output
+                                                    "/share/fonts/otf"))
+                           (woff-font-dir (string-append %output
+                                                    "/share/fonts/woff")))
                        (mkdir-p doc-dir)
                        (substitute* "Makefile"
                          (("\\$\\(TMPDIR\\)") doc-dir)
-                         (("sfd/\\*.ttf") ""))
-                       (system* "make" "ttftar")
-                       (mkdir-p font-dir)
+                         (("sfd/\\*.ttf") "")
+                         (("sfd/\\*.otf") "")
+                         (("sfd/\\*.woff") ""))
+                       (system* "make" "ttftar" "otftar" "wofftar")
+                       (mkdir-p ttf-font-dir)
+                       (mkdir-p otf-font-dir)
+                       (mkdir-p woff-font-dir)
                        (for-each (lambda (file)
-                                   (install-file file font-dir))
+                                   (install-file file ttf-font-dir))
                                  (filter
                                    (lambda (file) (string-suffix? "ttf" file))
+                                   (find-files "." "")))
+                       (for-each (lambda (file)
+                                   (install-file file otf-font-dir))
+                                 (filter
+                                   (lambda (file) (string-suffix? "otf" file))
+                                   (find-files "." "")))
+                       (for-each (lambda (file)
+                                   (install-file file woff-font-dir))
+                                 (filter
+                                   (lambda (file) (string-suffix? "woff" file))
                                    (find-files "." "")))))))
        #:test-target "tests"))
     ;; replace python 3 with python 2
-- 
2.26.1


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

* [bug#40707] gnu: Add otf and woff font formats for GNU Freefont. (v2)
  2020-04-19  4:13 [bug#40707] gnu: font-gnu-freefont: Add otf and woff font types Raghav Gururajan
@ 2020-04-19  4:51 ` Raghav Gururajan
  2020-04-22 19:07 ` [bug#40707] v3 Raghav Gururajan
  1 sibling, 0 replies; 6+ messages in thread
From: Raghav Gururajan @ 2020-04-19  4:51 UTC (permalink / raw)
  To: 40707

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



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-otf-and-woff-font-formats-for-GNU-Freefont.patch --]
[-- Type: text/x-patch, Size: 4516 bytes --]

From 43fa86b94a4f814b5607113e91aa0f82a33ec8f5 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Sun, 19 Apr 2020 00:47:03 -0400
Subject: [PATCH] gnu: Add otf and woff font formats for GNU Freefont.

* gnu/packages/fonts.scm (font-gnu-freefont): Add otf and woff font formats.
* gnu/packages/genealogy.scm (gramps): Change input name of GNU Freefont.
---
 gnu/packages/fonts.scm     | 35 +++++++++++++++++++++++++++--------
 gnu/packages/genealogy.scm |  2 +-
 2 files changed, 28 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index dbc0c4f9d6..0356d50c7c 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -32,6 +32,7 @@
 ;;; Copyright © 2020 Amin Bandali <bandali@gnu.org>
 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
 ;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
+;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -230,9 +231,9 @@ The Lato 2.010 family supports more than 100 Latin-based languages, over
 50 Cyrillic-based languages as well as Greek and IPA phonetics.")
     (license license:silofl1.1)))
 
-(define-public font-gnu-freefont-ttf
+(define-public font-gnu-freefont
   (package
-    (name "font-gnu-freefont-ttf")
+    (name "font-gnu-freefont")
     (version "20120503")
     (source (origin
              (method url-fetch)
@@ -249,18 +250,36 @@ The Lato 2.010 family supports more than 100 Latin-based languages, over
                    (lambda _
                      (let ((doc-dir  (string-append %output "/share/doc/"
                                                     ,name "-" ,version))
-                           (font-dir (string-append %output
-                                                    "/share/fonts/truetype")))
+                           (ttf-font-dir (string-append %output
+                                                    "/share/fonts/ttf"))
+                           (otf-font-dir (string-append %output
+                                                    "/share/fonts/otf"))
+                           (woff-font-dir (string-append %output
+                                                    "/share/fonts/woff")))
                        (mkdir-p doc-dir)
                        (substitute* "Makefile"
                          (("\\$\\(TMPDIR\\)") doc-dir)
-                         (("sfd/\\*.ttf") ""))
-                       (system* "make" "ttftar")
-                       (mkdir-p font-dir)
+                         (("sfd/\\*.ttf") "")
+                         (("sfd/\\*.otf") "")
+                         (("sfd/\\*.woff") ""))
+                       (system* "make" "ttftar" "otftar" "wofftar")
+                       (mkdir-p ttf-font-dir)
+                       (mkdir-p otf-font-dir)
+                       (mkdir-p woff-font-dir)
                        (for-each (lambda (file)
-                                   (install-file file font-dir))
+                                   (install-file file ttf-font-dir))
                                  (filter
                                    (lambda (file) (string-suffix? "ttf" file))
+                                   (find-files "." "")))
+                       (for-each (lambda (file)
+                                   (install-file file otf-font-dir))
+                                 (filter
+                                   (lambda (file) (string-suffix? "otf" file))
+                                   (find-files "." "")))
+                       (for-each (lambda (file)
+                                   (install-file file woff-font-dir))
+                                 (filter
+                                   (lambda (file) (string-suffix? "woff" file))
                                    (find-files "." "")))))))
        #:test-target "tests"))
     ;; replace python 3 with python 2
diff --git a/gnu/packages/genealogy.scm b/gnu/packages/genealogy.scm
index 869f69add8..79b24ed048 100644
--- a/gnu/packages/genealogy.scm
+++ b/gnu/packages/genealogy.scm
@@ -55,7 +55,7 @@
        ("intltool" ,intltool)))
     (inputs
      `(("cairo" ,cairo)
-       ("font-gnu-freefont-ttf" ,font-gnu-freefont-ttf)
+       ("font-gnu-freefont" ,font-gnu-freefont)
        ("geocode-glib" ,geocode-glib)
        ("gexiv2" ,gexiv2)
        ("ghostscript" ,ghostscript)
-- 
2.26.1


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

* [bug#40707] v3
  2020-04-19  4:13 [bug#40707] gnu: font-gnu-freefont: Add otf and woff font types Raghav Gururajan
  2020-04-19  4:51 ` [bug#40707] gnu: Add otf and woff font formats for GNU Freefont. (v2) Raghav Gururajan
@ 2020-04-22 19:07 ` Raghav Gururajan
  2020-04-22 19:12   ` Leo Famulari
  1 sibling, 1 reply; 6+ messages in thread
From: Raghav Gururajan @ 2020-04-22 19:07 UTC (permalink / raw)
  To: 40707

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



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-font-gnu-freefont-Add-otf-and-woff-font-types.patch --]
[-- Type: text/x-patch, Size: 5148 bytes --]

From ad08ebb65723994dda15d02f23c08ef820c8fd4d Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Wed, 22 Apr 2020 15:03:07 -0400
Subject: [PATCH] gnu: font-gnu-freefont: Add otf and woff font types.

* gnu/packages/fonts.scm (font-gnu-freefont): Add otf and woff font types.
* gnu/packages/genealogy.scm (gramps): Replace variable string of gnu-freefont.
* doc/guix.texi: Replace variable string of gnu-freefont.
---
 doc/guix.texi              |  2 +-
 gnu/packages/fonts.scm     | 35 +++++++++++++++++++++++++++--------
 gnu/packages/genealogy.scm |  2 +-
 3 files changed, 29 insertions(+), 10 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index ef5f68db24..98201fbc26 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -1683,7 +1683,7 @@ package in Guix looks for fonts in @file{$HOME/.guix-profile}
 by default.  Thus, to allow graphical applications installed with Guix
 to display fonts, you have to install fonts with Guix as well.
 Essential font packages include @code{gs-fonts}, @code{font-dejavu}, and
-@code{font-gnu-freefont-ttf}.
+@code{font-gnu-freefont}.
 
 @cindex @code{fc-cache}
 @cindex font cache
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index dbc0c4f9d6..0356d50c7c 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -32,6 +32,7 @@
 ;;; Copyright © 2020 Amin Bandali <bandali@gnu.org>
 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
 ;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
+;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -230,9 +231,9 @@ The Lato 2.010 family supports more than 100 Latin-based languages, over
 50 Cyrillic-based languages as well as Greek and IPA phonetics.")
     (license license:silofl1.1)))
 
-(define-public font-gnu-freefont-ttf
+(define-public font-gnu-freefont
   (package
-    (name "font-gnu-freefont-ttf")
+    (name "font-gnu-freefont")
     (version "20120503")
     (source (origin
              (method url-fetch)
@@ -249,18 +250,36 @@ The Lato 2.010 family supports more than 100 Latin-based languages, over
                    (lambda _
                      (let ((doc-dir  (string-append %output "/share/doc/"
                                                     ,name "-" ,version))
-                           (font-dir (string-append %output
-                                                    "/share/fonts/truetype")))
+                           (ttf-font-dir (string-append %output
+                                                    "/share/fonts/ttf"))
+                           (otf-font-dir (string-append %output
+                                                    "/share/fonts/otf"))
+                           (woff-font-dir (string-append %output
+                                                    "/share/fonts/woff")))
                        (mkdir-p doc-dir)
                        (substitute* "Makefile"
                          (("\\$\\(TMPDIR\\)") doc-dir)
-                         (("sfd/\\*.ttf") ""))
-                       (system* "make" "ttftar")
-                       (mkdir-p font-dir)
+                         (("sfd/\\*.ttf") "")
+                         (("sfd/\\*.otf") "")
+                         (("sfd/\\*.woff") ""))
+                       (system* "make" "ttftar" "otftar" "wofftar")
+                       (mkdir-p ttf-font-dir)
+                       (mkdir-p otf-font-dir)
+                       (mkdir-p woff-font-dir)
                        (for-each (lambda (file)
-                                   (install-file file font-dir))
+                                   (install-file file ttf-font-dir))
                                  (filter
                                    (lambda (file) (string-suffix? "ttf" file))
+                                   (find-files "." "")))
+                       (for-each (lambda (file)
+                                   (install-file file otf-font-dir))
+                                 (filter
+                                   (lambda (file) (string-suffix? "otf" file))
+                                   (find-files "." "")))
+                       (for-each (lambda (file)
+                                   (install-file file woff-font-dir))
+                                 (filter
+                                   (lambda (file) (string-suffix? "woff" file))
                                    (find-files "." "")))))))
        #:test-target "tests"))
     ;; replace python 3 with python 2
diff --git a/gnu/packages/genealogy.scm b/gnu/packages/genealogy.scm
index 869f69add8..79b24ed048 100644
--- a/gnu/packages/genealogy.scm
+++ b/gnu/packages/genealogy.scm
@@ -55,7 +55,7 @@
        ("intltool" ,intltool)))
     (inputs
      `(("cairo" ,cairo)
-       ("font-gnu-freefont-ttf" ,font-gnu-freefont-ttf)
+       ("font-gnu-freefont" ,font-gnu-freefont)
        ("geocode-glib" ,geocode-glib)
        ("gexiv2" ,gexiv2)
        ("ghostscript" ,ghostscript)
-- 
2.26.1


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

* [bug#40707] v3
  2020-04-22 19:07 ` [bug#40707] v3 Raghav Gururajan
@ 2020-04-22 19:12   ` Leo Famulari
  2020-11-21 10:29     ` Christopher Baines
  2020-11-21 21:31     ` Raghav Gururajan via Guix-patches via
  0 siblings, 2 replies; 6+ messages in thread
From: Leo Famulari @ 2020-04-22 19:12 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 40707

On Wed, Apr 22, 2020 at 03:07:01PM -0400, Raghav Gururajan wrote:
> +                       (system* "make" "ttftar" "otftar" "wofftar")

As discussed on IRC, this command actually fails, like this:

------
tar czvf freefont-ttf-20200422.tar.gz freefont-20200422/
tar: freefont-20200422: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
make: *** [Makefile:64: ttftar] Error 2
phase `install' succeeded after 0.2 seconds
------

The issue is uncovered when running (invoke "make" ...).

Can you take a look?

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

* [bug#40707] v3
  2020-04-22 19:12   ` Leo Famulari
@ 2020-11-21 10:29     ` Christopher Baines
  2020-11-21 21:31     ` Raghav Gururajan via Guix-patches via
  1 sibling, 0 replies; 6+ messages in thread
From: Christopher Baines @ 2020-11-21 10:29 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 40707

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


Leo Famulari <leo@famulari.name> writes:

> On Wed, Apr 22, 2020 at 03:07:01PM -0400, Raghav Gururajan wrote:
>> +                       (system* "make" "ttftar" "otftar" "wofftar")
>
> As discussed on IRC, this command actually fails, like this:
>
> ------
> tar czvf freefont-ttf-20200422.tar.gz freefont-20200422/
> tar: freefont-20200422: Cannot stat: No such file or directory
> tar: Exiting with failure status due to previous errors
> make: *** [Makefile:64: ttftar] Error 2
> phase `install' succeeded after 0.2 seconds
> ------
>
> The issue is uncovered when running (invoke "make" ...).
>
> Can you take a look?

It's been a few months, is this patch still relevant?

Thanks,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

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

* [bug#40707] v3
  2020-04-22 19:12   ` Leo Famulari
  2020-11-21 10:29     ` Christopher Baines
@ 2020-11-21 21:31     ` Raghav Gururajan via Guix-patches via
  1 sibling, 0 replies; 6+ messages in thread
From: Raghav Gururajan via Guix-patches via @ 2020-11-21 21:31 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 40707

Hi Chris!

> 
> It's been a few months, is this patch still relevant?

Nah! It's not relevant anymore. I'll close it.

Regards,
RG.




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

end of thread, other threads:[~2020-11-21 21:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-19  4:13 [bug#40707] gnu: font-gnu-freefont: Add otf and woff font types Raghav Gururajan
2020-04-19  4:51 ` [bug#40707] gnu: Add otf and woff font formats for GNU Freefont. (v2) Raghav Gururajan
2020-04-22 19:07 ` [bug#40707] v3 Raghav Gururajan
2020-04-22 19:12   ` Leo Famulari
2020-11-21 10:29     ` Christopher Baines
2020-11-21 21:31     ` Raghav Gururajan via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).