unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 0/1] Add Anonymous Pro fonts
@ 2015-09-03 21:53 Leo Famulari
  2015-09-03 21:53 ` [PATCH 1/1] gnu: " Leo Famulari
  2015-09-05 13:33 ` [PATCH 0/1] " Alex Kost
  0 siblings, 2 replies; 7+ messages in thread
From: Leo Famulari @ 2015-09-03 21:53 UTC (permalink / raw)
  To: guix-devel

This patch adds the Anonymous Pro fonts [1].

Your comments are requested!

I am not sure about the module name. The guidelines require placing the name
of the foundry between "font-" and "anonymous-pro". In this case, that would
result in "font-mark-simonson-studio-anonymous-pro". Seems long. And the rule
is not applied consistently to the fonts already packaged.

Suggestions?

[1] http://www.marksimonson.com/fonts/view/anonymous-pro
[2] http://www.gnu.org/software/guix/manual/html_node/Fonts.html

Leo Famulari (1):
  gnu: Add Anonymous Pro fonts.

 gnu/packages/fonts.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

-- 
2.4.3

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

* [PATCH 1/1] gnu: Add Anonymous Pro fonts.
  2015-09-03 21:53 [PATCH 0/1] Add Anonymous Pro fonts Leo Famulari
@ 2015-09-03 21:53 ` Leo Famulari
  2015-09-05 13:34   ` Alex Kost
  2015-09-05 13:33 ` [PATCH 0/1] " Alex Kost
  1 sibling, 1 reply; 7+ messages in thread
From: Leo Famulari @ 2015-09-03 21:53 UTC (permalink / raw)
  To: guix-devel

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

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index a78995c..75e6fe8 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -524,3 +524,45 @@ distributed with Ghostscript version 4.00.  The collection contains the
 following fonts in the OpenType format: Adventor, Bonum, Chorus, Cursor,
 Heros, Pagella, Schola, Termes.")
     (license license:gfl1.0)))
+
+(define-public font-anonymous-pro
+  (package
+    (name "font-anonymous-pro")
+    (version "1.002")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append "http://www.marksimonson.com/assets/content/fonts/"
+                                 "AnonymousPro-" version ".zip"))
+             (sha256
+              (base32 "1asj6lykvxh46czbal7ymy2k861zlcdqpz8x3s5bbpqwlm3mhrl6"))))
+    (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)
+           (chdir (string-append "AnonymousPro-" ,version ".001"))
+           (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$"))))))
+    (native-inputs
+     `(("unzip" ,unzip)))
+    (home-page "http://www.marksimonson.com/fonts/view/anonymous-pro")
+    (synopsis "Fixed-width fonts designed with coding in mind")
+    (description "Anonymous Pro is a family of four fixed-width fonts designed
+with coding in mind.  Anonymous Pro features an international, Unicode-based
+character set, with support for most Western and Central European Latin-based
+languages, plus Greek and Cyrillic.")
+    (license license:silofl1.1)))
-- 
2.4.3

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

* Re: [PATCH 0/1] Add Anonymous Pro fonts
  2015-09-03 21:53 [PATCH 0/1] Add Anonymous Pro fonts Leo Famulari
  2015-09-03 21:53 ` [PATCH 1/1] gnu: " Leo Famulari
@ 2015-09-05 13:33 ` Alex Kost
  2015-09-05 15:57   ` Andreas Enge
  1 sibling, 1 reply; 7+ messages in thread
From: Alex Kost @ 2015-09-05 13:33 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari (2015-09-04 00:53 +0300) wrote:

> This patch adds the Anonymous Pro fonts [1].
>
> Your comments are requested!
>
> I am not sure about the module name. The guidelines require placing the name
> of the foundry between "font-" and "anonymous-pro". In this case, that would
> result in "font-mark-simonson-studio-anonymous-pro". Seems long. And the rule
> is not applied consistently to the fonts already packaged.

I would also name it 'font-anonymous-pro', but I have problems with
naming font packages.  Andreas (the author of those naming guidelines)
should know better.

-- 
Alex

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

* Re: [PATCH 1/1] gnu: Add Anonymous Pro fonts.
  2015-09-03 21:53 ` [PATCH 1/1] gnu: " Leo Famulari
@ 2015-09-05 13:34   ` Alex Kost
  2015-09-05 19:06     ` Leo Famulari
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Kost @ 2015-09-05 13:34 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari (2015-09-04 00:53 +0300) wrote:

> * gnu/packages/fonts.scm (font-anonymous-pro): New variable.
> ---
>  gnu/packages/fonts.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 42 insertions(+)
>
>
> diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
> index a78995c..75e6fe8 100644
> --- a/gnu/packages/fonts.scm
> +++ b/gnu/packages/fonts.scm
> @@ -524,3 +524,45 @@ distributed with Ghostscript version 4.00.  The collection contains the
>  following fonts in the OpenType format: Adventor, Bonum, Chorus, Cursor,
>  Heros, Pagella, Schola, Termes.")
>      (license license:gfl1.0)))
> +
> +(define-public font-anonymous-pro
> +  (package
> +    (name "font-anonymous-pro")
> +    (version "1.002")
> +    (source (origin
> +             (method url-fetch)
> +             (uri (string-append "http://www.marksimonson.com/assets/content/fonts/"

This line is too long, we prefer to stay within 78 chars.  I would make it:

                     (string-append
                      "http://www.marksimonson.com/assets/content/fonts/"

> +                                 "AnonymousPro-" version ".zip"))
> +             (sha256
> +              (base32 "1asj6lykvxh46czbal7ymy2k861zlcdqpz8x3s5bbpqwlm3mhrl6"))))

Such (base32 "…") lines also look too long for me, so I prefer to move a
hash on another line (but some people leave it this way).

> +    (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)
> +           (chdir (string-append "AnonymousPro-" ,version ".001"))
> +           (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$"))))))

This (find-files …) should be shifted 2 chars left (the same as
'find-files' in the previous 'for-each').

Otherwise, LGTM.  So if there will be no other comments and objections
on the package name, I will push it.  No need to resend the patch — I'll
fix these small issues I mentioned.  Thank you.

-- 
Alex

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

* Re: [PATCH 0/1] Add Anonymous Pro fonts
  2015-09-05 13:33 ` [PATCH 0/1] " Alex Kost
@ 2015-09-05 15:57   ` Andreas Enge
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Enge @ 2015-09-05 15:57 UTC (permalink / raw)
  To: Alex Kost; +Cc: guix-devel

On Sat, Sep 05, 2015 at 04:33:52PM +0300, Alex Kost wrote:
> I would also name it 'font-anonymous-pro', but I have problems with
> naming font packages.  Andreas (the author of those naming guidelines)
> should know better.

Not really - I just formulated the consensus that had formed on the list.
I would say that there is no obligation to include the name of the
foundry (but it could give useful information in case more fonts from the
same foundry are added, and would be needed if the same font name were used
by different foundries).
So I also think that font-anonymous-pro would be fine, or
font-marksimonson-anonymous-pro, at your choice.

Andreas

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

* Re: [PATCH 1/1] gnu: Add Anonymous Pro fonts.
  2015-09-05 13:34   ` Alex Kost
@ 2015-09-05 19:06     ` Leo Famulari
  2015-09-06  9:45       ` Alex Kost
  0 siblings, 1 reply; 7+ messages in thread
From: Leo Famulari @ 2015-09-05 19:06 UTC (permalink / raw)
  To: Alex Kost; +Cc: guix-devel



On Sat, Sep 5, 2015, at 09:34, Alex Kost wrote:
> Leo Famulari (2015-09-04 00:53 +0300) wrote:
> > +    (source (origin
> > +             (method url-fetch)
> > +             (uri (string-append "http://www.marksimonson.com/assets/content/fonts/"
> 
> This line is too long, we prefer to stay within 78 chars.  I would make
> it:
> 
>                      (string-append
>                       "http://www.marksimonson.com/assets/content/fonts/"
> 
> > +                                 "AnonymousPro-" version ".zip"))
> > +             (sha256
> > +              (base32 "1asj6lykvxh46czbal7ymy2k861zlcdqpz8x3s5bbpqwlm3mhrl6"))))
> 
> Such (base32 "…") lines also look too long for me, so I prefer to move a
> hash on another line (but some people leave it this way).

I thought that lint would catch those, sorry.
 
> > +           (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$"))))))
> 
> This (find-files …) should be shifted 2 chars left (the same as
> 'find-files' in the previous 'for-each').

No excuse there, sorry again.
 
> Otherwise, LGTM.  So if there will be no other comments and objections
> on the package name, I will push it.  No need to resend the patch — I'll
> fix these small issues I mentioned.  Thank you.

I think the package name is fine. Thank you!

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

* Re: [PATCH 1/1] gnu: Add Anonymous Pro fonts.
  2015-09-05 19:06     ` Leo Famulari
@ 2015-09-06  9:45       ` Alex Kost
  0 siblings, 0 replies; 7+ messages in thread
From: Alex Kost @ 2015-09-06  9:45 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari (2015-09-05 22:06 +0300) wrote:

> On Sat, Sep 5, 2015, at 09:34, Alex Kost wrote:
[...]
>> Otherwise, LGTM.  So if there will be no other comments and objections
>> on the package name, I will push it.  No need to resend the patch — I'll
>> fix these small issues I mentioned.  Thank you.
>
> I think the package name is fine. Thank you!

Yeah, I agree.  Since Andreas didn't object, I have pushed this patch,
thanks.

-- 
Alex

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

end of thread, other threads:[~2015-09-06  9:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-03 21:53 [PATCH 0/1] Add Anonymous Pro fonts Leo Famulari
2015-09-03 21:53 ` [PATCH 1/1] gnu: " Leo Famulari
2015-09-05 13:34   ` Alex Kost
2015-09-05 19:06     ` Leo Famulari
2015-09-06  9:45       ` Alex Kost
2015-09-05 13:33 ` [PATCH 0/1] " Alex Kost
2015-09-05 15:57   ` Andreas Enge

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).