all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] Add un-fonts (new patch, closes old thread)
@ 2016-03-04 22:11 Nils Gillmann
  2016-03-06 13:49 ` Ludovic Courtès
  2016-03-06 16:43 ` Nils Gillmann
  0 siblings, 2 replies; 11+ messages in thread
From: Nils Gillmann @ 2016-03-04 22:11 UTC (permalink / raw)
  To: guix-devel

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

This adds the fontset un-fonts and closes the old thread on it.

I made the file being served from sdf.org available on
krosos.sdf.org/static/unix/ and as soon as I get the okay from
any other location (potentially in-berlin.de) I will change the
location. Sdf.org is really permanent, but I prefer to move it to
a place which could serve it via tls.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-un-fonts.patch --]
[-- Type: text/x-patch, Size: 3215 bytes --]

From 2dcb24a8ea630311743bc8b661c57db0ffcb5be9 Mon Sep 17 00:00:00 2001
From: Nils Gillmann <niasterisk@grrlz.net>
Date: Fri, 4 Mar 2016 23:04:16 +0100
Subject: [PATCH] gnu: Add un-fonts.

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

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 69e195d..141664e 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -628,3 +628,66 @@ Unicode's Basic Multilingual Plane.  The package also includes
 utilities to ease adding new glyphs to the font.")
     (home-page "http://unifoundry.com/unifont.html")
     (license license:gpl2+)))
+
+(define-public font-un-fonts
+  (package
+    (name "font-un-fonts")
+    (version "1.0.2")
+    ;; origin server is serving us broken MIME
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "http://krosos.sdf.org/static/unix/"
+                    "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"))
+           (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
+")
+    ;; GPL + embed exception for documents / images
+    (license license:gpl2+)))
-- 
2.6.3


[-- Attachment #3: Type: text/plain, Size: 148 bytes --]


thanks,
-- 
ng
irc://loupsycedyglgamf.onion:67/~NiAsterisk
https://psyced.org:34443/NiAsterisk/
EDN: https://wiki.c3d2.de/Echt_Dezentrales_Netz/en

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

* Re: [PATCH] Add un-fonts (new patch, closes old thread)
  2016-03-04 22:11 [PATCH] Add un-fonts (new patch, closes old thread) Nils Gillmann
@ 2016-03-06 13:49 ` Ludovic Courtès
  2016-03-06 15:20   ` Andreas Enge
  2016-03-06 15:25   ` Nils Gillmann
  2016-03-06 16:43 ` Nils Gillmann
  1 sibling, 2 replies; 11+ messages in thread
From: Ludovic Courtès @ 2016-03-06 13:49 UTC (permalink / raw)
  To: Nils Gillmann; +Cc: guix-devel

Nils Gillmann <niasterisk@grrlz.net> skribis:

> I made the file being served from sdf.org available on
> krosos.sdf.org/static/unix/ and as soon as I get the okay from
> any other location (potentially in-berlin.de) I will change the
> location. Sdf.org is really permanent, but I prefer to move it to
> a place which could serve it via tls.
>
> From 2dcb24a8ea630311743bc8b661c57db0ffcb5be9 Mon Sep 17 00:00:00 2001
> From: Nils Gillmann <niasterisk@grrlz.net>
> Date: Fri, 4 Mar 2016 23:04:16 +0100
> Subject: [PATCH] gnu: Add un-fonts.
>
> * gnu/packages/fonts.scm (font-un-fonts): New variable.

[...]

> +    ;; origin server is serving us broken MIME

s/origin server/The upstream server at kldp.net/ plus period at the
end.  :-)  Also please add “See <http://bugs.gnu.org/22908>.” so we can
revisit this issue when the bug is fixed.

> +    (name "font-un-fonts")

Shouldn’t it be “font-un-fonts-core” since that’s what the tarball is
called?

> +    (version "1.0.2")

This should be “1.0.2-080608” IMO since this is what upstream calls it.

> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append
> +                    "http://krosos.sdf.org/static/unix/"
> +                    "un-fonts-core-" version "-080608" ".tar.gz"))

Might be best to write:

  (uri (list (string-append
              "http://krosos.sdf.org" …)

             ;; XXX: The upstream server at kldp.net bla bla…
             (string-append
              "http://kldp.net/"…)))

That way, we keep the upstream URL around.

> +    (home-page "https://kldp.net/projects/unfonts/")
> +    (synopsis
> +     "Un-fonts is a collection of Korean fonts")

Or “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

Use @enumerate and @item for the list.

> +    ;; GPL + embed exception for documents / images
> +    (license license:gpl2+)))

‘README’ does not mention an “embedding exception” so I think the
comment is erroneous, or am I missing something?

Could you send an updated patch?  We’re almost there!  :-)

Thanks for persevering!

Ludo’.

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

* Re: [PATCH] Add un-fonts (new patch, closes old thread)
  2016-03-06 13:49 ` Ludovic Courtès
@ 2016-03-06 15:20   ` Andreas Enge
  2016-03-06 16:17     ` Nils Gillmann
  2016-03-06 15:25   ` Nils Gillmann
  1 sibling, 1 reply; 11+ messages in thread
From: Andreas Enge @ 2016-03-06 15:20 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel, Nils Gillmann

On Sun, Mar 06, 2016 at 02:49:11PM +0100, Ludovic Courtès wrote:
> > +    (name "font-un-fonts")
> Shouldn’t it be “font-un-fonts-core” since that’s what the tarball is
> called?

I just read up on our font naming guidelines in the manual:
"The name of a package containing only one font family starts with font-; it is followed by the foundry name and a dash - if the foundry is known, and the font family name, in which spaces are replaced by dashes (and as usual, all upper case letters are transformed to lower case). For example, the Gentium font family by SIL is packaged under the name font-sil-gentium.

For a package containing several font families, the name of the collection is used in the place of the font family name. For instance, the Liberation fonts consist of three families, Liberation Sans, Liberation Serif and Liberation Mono. (...) we prefer to package them together as font-liberation"

Given that, I wonder if the name should not simply be "font-un". There is no
foundry, and "un" seems to be the collection name, given that all individual
fonts are named "UnSomething". A bit unusual as a name, but why not?

Andreas

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

* Re: [PATCH] Add un-fonts (new patch, closes old thread)
  2016-03-06 13:49 ` Ludovic Courtès
  2016-03-06 15:20   ` Andreas Enge
@ 2016-03-06 15:25   ` Nils Gillmann
  1 sibling, 0 replies; 11+ messages in thread
From: Nils Gillmann @ 2016-03-06 15:25 UTC (permalink / raw)
  To: guix-devel

ludo@gnu.org (Ludovic Courtès) writes:

> Nils Gillmann <niasterisk@grrlz.net> skribis:
>
>> I made the file being served from sdf.org available on
>> krosos.sdf.org/static/unix/ and as soon as I get the okay from
>> any other location (potentially in-berlin.de) I will change the
>> location. Sdf.org is really permanent, but I prefer to move it to
>> a place which could serve it via tls.
>>
>> From 2dcb24a8ea630311743bc8b661c57db0ffcb5be9 Mon Sep 17 00:00:00 2001
>> From: Nils Gillmann <niasterisk@grrlz.net>
>> Date: Fri, 4 Mar 2016 23:04:16 +0100
>> Subject: [PATCH] gnu: Add un-fonts.
>>
>> * gnu/packages/fonts.scm (font-un-fonts): New variable.
>
> [...]
>
>> +    ;; origin server is serving us broken MIME
>
> s/origin server/The upstream server at kldp.net/ plus period at the
> end.  :-)  Also please add “See <http://bugs.gnu.org/22908>.” so we can
> revisit this issue when the bug is fixed.
>
>> +    (name "font-un-fonts")
>
> Shouldn’t it be “font-un-fonts-core” since that’s what the tarball is
> called?

Possibly, yes. There's also un-fonts-extra in gentoo which is
puzzled together from gnu:// and one other mirror. un-fonts-extra
is not on kldp.net.
I will rename the package to font-un-fonts-core

> This should be “1.0.2-080608” IMO since this is what upstream calls it.
>

okay

> Might be best to write:
>
>   (uri (list (string-append
>               "http://krosos.sdf.org" …)
>
>              ;; XXX: The upstream server at kldp.net bla bla…
>              (string-append
>               "http://kldp.net/"…)))
>
> That way, we keep the upstream URL around.
>
>> +    (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
>
> Use @enumerate and @item for the list.

>> +    ;; GPL + embed exception for documents / images
>> +    (license license:gpl2+)))
>
> ‘README’ does not mention an “embedding exception” so I think the
> comment is erroneous, or am I missing something?

Indeed, and this is the issues I have too and would have
submitted it as GPL too, if it wasn't for the following.

I am not capable of reading the kldp.net website (at the time of
writing), but rekado seems to be. quote from earlier conversation:

"" Upstream[1] says this about the license:
""
""   2 저작권
""
""   은글꼴의 저작권은 GPL + (문서/이미지에 대한)embed 예외 조항이 포함되어
""   은글꼴을 사용한 출판 및 디자인에 대해 상업용,비상업용 목적으로
""   사용하는 데에 아무런 문제가 없습니다.
""
"" [1]: http://kldp.net/projects/unfonts
""
"" If I understand correctly, this means that the fonts are released under
"" GPL + embed exception (for documents / images).  README.Debian seems to
"" be outdated.  The upstream note is from 2012/12/29.
""
"" ~~ Ricardo
""
""
"
" Oh, that's good news, thanks.
" As (license:) for the package, is it still gpl2 or is this GPL +
" something I could find in fonts.scm ?

I did not see any restriction to a particular version of the GPL, but I
didn’t look very carefully.  If no particular version is mentioned you
can just use “gpl3+” (because “GPL” means “any version of the GPL”).
Add the embed exception in a comment above the license field.

I do suggest you check the sources once more, though.  Just grep for
“GPL” and see if they mention the GPL version.

~~ Ricardo

"" end quote.
Somebody in the older thread of the unfonts mentioned that it
should be gpl2+, so maybe someone could read into that again and
figure out if 2 or 3 applies?


Thanks for the input,
-- 
ng
irc://loupsycedyglgamf.onion:67/~NiAsterisk
https://psyced.org:34443/NiAsterisk/
EDN: https://wiki.c3d2.de/Echt_Dezentrales_Netz/en

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

* Re: [PATCH] Add un-fonts (new patch, closes old thread)
  2016-03-06 15:20   ` Andreas Enge
@ 2016-03-06 16:17     ` Nils Gillmann
  2016-03-06 16:43       ` Andreas Enge
  0 siblings, 1 reply; 11+ messages in thread
From: Nils Gillmann @ 2016-03-06 16:17 UTC (permalink / raw)
  To: guix-devel

Andreas Enge <andreas@enge.fr> writes:

> On Sun, Mar 06, 2016 at 02:49:11PM +0100, Ludovic Courtès wrote:
>> > +    (name "font-un-fonts")
>> Shouldn’t it be “font-un-fonts-core” since that’s what the tarball is
>> called?
>
> I just read up on our font naming guidelines in the manual:
> "The name of a package containing only one font family starts with
> font-; it is followed by the foundry name and a dash - if the foundry
> is known, and the font family name, in which spaces are replaced by
> dashes (and as usual, all upper case letters are transformed to lower
> case). For example, the Gentium font family by SIL is packaged under
> the name font-sil-gentium.
>
> For a package containing several font families, the name of the
> collection is used in the place of the font family name. For instance,
> the Liberation fonts consist of three families, Liberation Sans,
> Liberation Serif and Liberation Mono. (...) we prefer to package them
> together as font-liberation"
>
> Given that, I wonder if the name should not simply be "font-un". There is no
> foundry, and "un" seems to be the collection name, given that all individual
> fonts are named "UnSomething". A bit unusual as a name, but why not?

Okay, sounds odd but reasonable. But what about un-fonts-core and
un-fonts-extra, if I add -extra (see packages.gentoo.org for
example), with this naming scheme it should be then font-un
which gets separated into font-un:core and font-un:extra
or font-un-core and font-un-extra.

In Gentoo there is:
https://gitweb.gentoo.org/repo/gentoo.git/tree/media-fonts/unfonts/unfonts-1.0.2_pre080608-r1.ebuild
and
https://gitweb.gentoo.org/repo/gentoo.git/tree/media-fonts/unfonts-extra/unfonts-extra-1.0.2_pre080608-r1.ebuild
with it giving the following output of directories etc when
installing, see last output.

In general I wonder, can't we use a gentoo:// for mirror and pull
the font files from there? They have a reasonable distributed
architecure of servers and to my knowledge no file includes
patches, the patches are in the portage directories, not the
distdir directory.
If there's no gentoo mirror option, maybe we can add that later.

So Andreas is right, it's all UnSomething, where I would do
font-un and later do font-un:core font-un:extra (for example).


greendragon ~ # emerge -atv unfonts unfonts-extra
!!! Repository 'youbroketheinternet' has sync-uri attribute, but is missing sync-type attribute

 * IMPORTANT: 13 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  N     ] media-fonts/unfonts-extra-1.0.2_pre080608-r1::gentoo  USE="X" 11.109 KiB
[ebuild  N     ] media-fonts/unfonts-1.0.2_pre080608-r1::gentoo  USE="X" 19.646 KiB

Total: 2 packages (2 new), Size of downloads: 30.755 KiB

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Emerging (1 of 2) media-fonts/unfonts-1.0.2_pre080608-r1::gentoo
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
 * un-fonts-core-1.0.2-080608-r1.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                   [ ok ]
>>> Unpacking source...
>>> Unpacking un-fonts-core-1.0.2-080608-r1.tar.gz to /var/tmp/portage/media-fonts/unfonts-1.0.2_pre080608-r1/work
>>> Source unpacked in /var/tmp/portage/media-fonts/unfonts-1.0.2_pre080608-r1/work
>>> Compiling source in /var/tmp/portage/media-fonts/unfonts-1.0.2_pre080608-r1/work/un-fonts ...
>>> Source compiled.
>>> Test phase [not enabled]: media-fonts/unfonts-1.0.2_pre080608-r1

>>> Install unfonts-1.0.2_pre080608-r1 into /var/tmp/portage/media-fonts/unfonts-1.0.2_pre080608-r1/image/ category media-fonts
 * Creating fonts.scale & fonts.dir in unfonts ...                                                                                                                             [ ok ]
>>> Completed installing unfonts-1.0.2_pre080608-r1 into /var/tmp/portage/media-fonts/unfonts-1.0.2_pre080608-r1/image/


>>> Installing (1 of 2) media-fonts/unfonts-1.0.2_pre080608-r1::gentoo
 * checking 16 files for package collisions
>>> Merging media-fonts/unfonts-1.0.2_pre080608-r1 to /
--- /usr/
--- /usr/share/
--- /usr/share/fonts/
>>> /usr/share/fonts/unfonts/
>>> /usr/share/fonts/unfonts/UnBatang.ttf
>>> /usr/share/fonts/unfonts/UnPilgi.ttf
>>> /usr/share/fonts/unfonts/UnBatangBold.ttf
>>> /usr/share/fonts/unfonts/fonts.scale
>>> /usr/share/fonts/unfonts/UnDinaruBold.ttf
>>> /usr/share/fonts/unfonts/UnDotum.ttf
>>> /usr/share/fonts/unfonts/UnGraphic.ttf
>>> /usr/share/fonts/unfonts/UnDinaruLight.ttf
>>> /usr/share/fonts/unfonts/UnGungseo.ttf
>>> /usr/share/fonts/unfonts/encodings.dir
>>> /usr/share/fonts/unfonts/UnPilgiBold.ttf
>>> /usr/share/fonts/unfonts/UnGraphicBold.ttf
>>> /usr/share/fonts/unfonts/UnDotumBold.ttf
>>> /usr/share/fonts/unfonts/fonts.dir
>>> /usr/share/fonts/unfonts/UnDinaru.ttf
--- /usr/share/doc/
>>> /usr/share/doc/unfonts-1.0.2_pre080608-r1/
>>> /usr/share/doc/unfonts-1.0.2_pre080608-r1/README.bz2
 * Updating global fontcache ...                                                                                                                                               [ ok ]
>>> media-fonts/unfonts-1.0.2_pre080608-r1 merged.
>>> Regenerating /etc/ld.so.cache...

>>> Recording media-fonts/unfonts in "world" favorites file...

>>> Emerging (2 of 2) media-fonts/unfonts-extra-1.0.2_pre080608-r1::gentoo
 * un-fonts-extra-1.0.2-080608-r1.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                  [ ok ]
>>> Unpacking source...
>>> Unpacking un-fonts-extra-1.0.2-080608-r1.tar.gz to /var/tmp/portage/media-fonts/unfonts-extra-1.0.2_pre080608-r1/work
>>> Source unpacked in /var/tmp/portage/media-fonts/unfonts-extra-1.0.2_pre080608-r1/work
>>> Compiling source in /var/tmp/portage/media-fonts/unfonts-extra-1.0.2_pre080608-r1/work/un-fonts ...
>>> Source compiled.
>>> Test phase [not enabled]: media-fonts/unfonts-extra-1.0.2_pre080608-r1

>>> Install unfonts-extra-1.0.2_pre080608-r1 into /var/tmp/portage/media-fonts/unfonts-extra-1.0.2_pre080608-r1/image/ category media-fonts
 * Creating fonts.scale & fonts.dir in unfonts-extra ...                                                                                                                       [ ok ]
>>> Completed installing unfonts-extra-1.0.2_pre080608-r1 into /var/tmp/portage/media-fonts/unfonts-extra-1.0.2_pre080608-r1/image/


>>> Installing (2 of 2) media-fonts/unfonts-extra-1.0.2_pre080608-r1::gentoo
 * checking 16 files for package collisions
>>> Merging media-fonts/unfonts-extra-1.0.2_pre080608-r1 to /
--- /usr/
--- /usr/share/
--- /usr/share/fonts/
>>> /usr/share/fonts/unfonts-extra/
>>> /usr/share/fonts/unfonts-extra/UnBom.ttf
>>> /usr/share/fonts/unfonts-extra/UnPilgia.ttf
>>> /usr/share/fonts/unfonts-extra/fonts.scale
>>> /usr/share/fonts/unfonts-extra/UnVada.ttf
>>> /usr/share/fonts/unfonts-extra/UnJamoDotum.ttf
>>> /usr/share/fonts/unfonts-extra/UnJamoSora.ttf
>>> /usr/share/fonts/unfonts-extra/UnShinmun.ttf
>>> /usr/share/fonts/unfonts-extra/UnJamoBatang.ttf
>>> /usr/share/fonts/unfonts-extra/UnJamoNovel.ttf
>>> /usr/share/fonts/unfonts-extra/encodings.dir
>>> /usr/share/fonts/unfonts-extra/UnPen.ttf
>>> /usr/share/fonts/unfonts-extra/UnYetgul.ttf
>>> /usr/share/fonts/unfonts-extra/UnTaza.ttf
>>> /usr/share/fonts/unfonts-extra/fonts.dir
>>> /usr/share/fonts/unfonts-extra/UnPenheulim.ttf
--- /usr/share/doc/
>>> /usr/share/doc/unfonts-extra-1.0.2_pre080608-r1/
>>> /usr/share/doc/unfonts-extra-1.0.2_pre080608-r1/README.bz2
 * Updating global fontcache ...                                                                                                                                               [ ok ]
>>> media-fonts/unfonts-extra-1.0.2_pre080608-r1 merged.
>>> Regenerating /etc/ld.so.cache...

>>> Recording media-fonts/unfonts-extra in "world" favorites file...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

 * IMPORTANT: 13 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


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

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

* Re: [PATCH] Add un-fonts (new patch, closes old thread)
  2016-03-04 22:11 [PATCH] Add un-fonts (new patch, closes old thread) Nils Gillmann
  2016-03-06 13:49 ` Ludovic Courtès
@ 2016-03-06 16:43 ` Nils Gillmann
  2016-03-06 16:50   ` Nils Gillmann
  1 sibling, 1 reply; 11+ messages in thread
From: Nils Gillmann @ 2016-03-06 16:43 UTC (permalink / raw)
  To: guix-devel

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

added correction and renamed package according to what I
described and submitted in the messages in this thread.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-font-un.patch --]
[-- Type: text/x-patch, Size: 3720 bytes --]

From a473a240fbea1ef6bd4bd2aeab1f5244c64ae385 Mon Sep 17 00:00:00 2001
From: Nils Gillmann <niasterisk@grrlz.net>
Date: Sun, 6 Mar 2016 17:26:21 +0100
Subject: [PATCH] gnu: Add font-un.

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

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 69e195d..c09d558 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -628,3 +628,75 @@ Unicode's Basic Multilingual Plane.  The package also includes
 utilities to ease adding new glyphs to the font.")
     (home-page "http://unifoundry.com/unifont.html")
     (license license:gpl2+)))
+
+(define-public font-un
+  (package
+    (name "font-un")
+    (version "1.0.2-080608")
+    ;; The upstream server at kldp.net is serving us broken MIME.
+    ;; See <http://bugs.gnu.org/22908>.
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "http://krosos.sdf.org/static/unix/"
+                    "un-fonts-core-" version "-080608" ".tar.gz"))
+              (uri (list
+                    (string-append
+                     "http://krosos.sdf.org/static/unix/"
+                     "un-fonts-core-" version ".tar.gz")
+                    ;; XXX: The upstream server at kldp.net
+                    (string-append
+                     "https://kldp.net/projects/unfonts/download/4695?filename="
+                     "un-fonts-core-" version ".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"))
+           (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
+     "Collection of Korean fonts.")
+    (description
+     "Un-fonts is a family of mainly Korean fonts.
+It contains the following fonts and styles:
+@enumerate
+@item UnBatang, UnBatangBold: serif;
+@item UnDotum, UnDotumBold: sans-serif;
+@item UnGraphic, UnGraphicBold: sans-serif style;
+@item UnDinaru, UnDinaruBold, UnDinaruLight;
+@item UnPilgi, UnPilgiBold: script;
+@item UnGungseo: cursive, brush-stroke.
+")
+    ;; GPL + embed exception for documents / images
+    (license license:gpl2+)))
-- 
2.6.3


[-- Attachment #3: Type: text/plain, Size: 287 bytes --]


this succeds, although I should possibly rename the font
directory. I will do this when I update the package to be
font-un:core and font-un:extra.
-- 
ng
irc://loupsycedyglgamf.onion:67/~NiAsterisk
https://psyced.org:34443/NiAsterisk/
EDN: https://wiki.c3d2.de/Echt_Dezentrales_Netz/en

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

* Re: [PATCH] Add un-fonts (new patch, closes old thread)
  2016-03-06 16:17     ` Nils Gillmann
@ 2016-03-06 16:43       ` Andreas Enge
  2016-03-06 16:55         ` Nils Gillmann
  0 siblings, 1 reply; 11+ messages in thread
From: Andreas Enge @ 2016-03-06 16:43 UTC (permalink / raw)
  To: Nils Gillmann; +Cc: guix-devel

On Sun, Mar 06, 2016 at 05:17:59PM +0100, Nils Gillmann wrote:
> Okay, sounds odd but reasonable. But what about un-fonts-core and
> un-fonts-extra, if I add -extra (see packages.gentoo.org for
> example), with this naming scheme it should be then font-un
> which gets separated into font-un:core and font-un:extra
> or font-un-core and font-un-extra.

A bit odd indeed, but okay, I think. I would either go with "font-un" and put
everything into it (or keep just the core part and drop the extra part, as you
wish), or "font-un-core" and "font-un-extra" (in two packages, for instance).

> In general I wonder, can't we use a gentoo:// for mirror and pull
> the font files from there? They have a reasonable distributed
> architecure of servers and to my knowledge no file includes
> patches, the patches are in the portage directories, not the
> distdir directory.
> If there's no gentoo mirror option, maybe we can add that later.

I do not know how their files are organised. Are they just tarballs? Do the
tarballs have absolute path names (to "/usr" or such)? I think the hosting
options of the tarball you proposed are fine. Maybe also give the location
of the mime-faulty original in a comment (I think Ludovic suggested that),
so if the mirror disappears, we can still find the source somewhere.

Andreas

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

* Re: [PATCH] Add un-fonts (new patch, closes old thread)
  2016-03-06 16:43 ` Nils Gillmann
@ 2016-03-06 16:50   ` Nils Gillmann
  2016-03-06 17:23     ` Nils Gillmann
  0 siblings, 1 reply; 11+ messages in thread
From: Nils Gillmann @ 2016-03-06 16:50 UTC (permalink / raw)
  To: guix-devel

Nils Gillmann <niasterisk@grrlz.net> writes:

Appendum: Should fix the errors lint found.

I know too little texinfo markup, why is that wrong? the period,
okay I can see that now.

~/projects/guix_project/guix $ ./pre-inst-env guix build font-un
substitute: updating list of substitutes from 'http://hydra.gnu.org'... 100.0%
substitute: updating list of substitutes from 'http://hydra.gnu.org'... 100.0%
@ build-started /gnu/store/0saxj6sm3vg8926g7gw65shj1mzn175n-font-un-1.0.2-080608.tar.gz.drv - x86_64-linux /var/log/guix/drvs/0s//axj6sm3vg8926g7gw65shj1mzn175n-font-un-1.0.2-080608.tar.gz.drv.bz2

Starting download of /gnu/store/8c9cqgm2d2yn03vqbkbgl0dz3g3v6ydd-font-un-1.0.2-080608.tar.gz
From http://krosos.sdf.org/static/unix/un-fonts-core-1.0.2-080608.tar.gz...
 un-fonts-core-1.0.2-080608.tar.gz  19.2MiB 876KiB/s 00:22 [####################] 100.0%
@ build-succeeded /gnu/store/0saxj6sm3vg8926g7gw65shj1mzn175n-font-un-1.0.2-080608.tar.gz.drv -
@ build-started /gnu/store/323nmaif76r4dx3zvbgmr3ibjrjw1gn5-font-un-1.0.2-080608.drv - x86_64-linux /var/log/guix/drvs/32//3nmaif76r4dx3zvbgmr3ibjrjw1gn5-font-un-1.0.2-080608.drv.bz2
un-fonts/UnBatang.ttf
un-fonts/UnBatangBold.ttf
un-fonts/UnDotum.ttf
un-fonts/UnDotumBold.ttf
un-fonts/UnGungseo.ttf
un-fonts/UnGraphic.ttf
un-fonts/UnGraphicBold.ttf
un-fonts/UnDinaru.ttf
un-fonts/UnDinaruBold.ttf
un-fonts/UnDinaruLight.ttf
un-fonts/UnPilgi.ttf
un-fonts/UnPilgiBold.ttf
un-fonts/COPYING
un-fonts/README
@ build-succeeded /gnu/store/323nmaif76r4dx3zvbgmr3ibjrjw1gn5-font-un-1.0.2-080608.drv -
/gnu/store/6ai74r7dn5sfz743vi2wcw41va4014hq-font-un-1.0.2-080608
~/projects/guix_project/guix $ ./pre-inst-env guix -s font-un
guix: unrecognized option '-s'
Try `guix --help' for more information.
~/projects/guix_project/guix $ ./pre-inst-env guix search font-un
guix: search: command not found
Try `guix --help' for more information.
~/projects/guix_project/guix $ ./pre-inst-env guix --search font-un
guix: unrecognized option '--search'
Try `guix --help' for more information.
~/projects/guix_project/guix $ ./pre-inst-env guix show font-un
guix: show: command not found
Try `guix --help' for more information.
~/projects/guix_project/guix $ ./pre-inst-env guix lint font-un
gnu/packages/fonts.scm:691:5: font-un-1.0.2-080608: Texinfo markup in description is invalid
gnu/packages/fonts.scm:689:5: font-un-1.0.2-080608: no period allowed at the end of the synopsis



> added correction and renamed package according to what I
> described and submitted in the messages in this thread.
>
> From a473a240fbea1ef6bd4bd2aeab1f5244c64ae385 Mon Sep 17 00:00:00 2001
> From: Nils Gillmann <niasterisk@grrlz.net>
> Date: Sun, 6 Mar 2016 17:26:21 +0100
> Subject: [PATCH] gnu: Add font-un.
>
> * gnu/packages/fonts.scm (font-un): New variable.
> ---
>  gnu/packages/fonts.scm | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 72 insertions(+)
>
> diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
> index 69e195d..c09d558 100644
> --- a/gnu/packages/fonts.scm
> +++ b/gnu/packages/fonts.scm
> @@ -628,3 +628,75 @@ Unicode's Basic Multilingual Plane.  The package also includes
>  utilities to ease adding new glyphs to the font.")
>      (home-page "http://unifoundry.com/unifont.html")
>      (license license:gpl2+)))
> +
> +(define-public font-un
> +  (package
> +    (name "font-un")
> +    (version "1.0.2-080608")
> +    ;; The upstream server at kldp.net is serving us broken MIME.
> +    ;; See <http://bugs.gnu.org/22908>.
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append
> +                    "http://krosos.sdf.org/static/unix/"
> +                    "un-fonts-core-" version "-080608" ".tar.gz"))
> +              (uri (list
> +                    (string-append
> +                     "http://krosos.sdf.org/static/unix/"
> +                     "un-fonts-core-" version ".tar.gz")
> +                    ;; XXX: The upstream server at kldp.net
> +                    (string-append
> +                     "https://kldp.net/projects/unfonts/download/4695?filename="
> +                     "un-fonts-core-" version ".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"))
> +           (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
> +     "Collection of Korean fonts.")
> +    (description
> +     "Un-fonts is a family of mainly Korean fonts.
> +It contains the following fonts and styles:
> +@enumerate
> +@item UnBatang, UnBatangBold: serif;
> +@item UnDotum, UnDotumBold: sans-serif;
> +@item UnGraphic, UnGraphicBold: sans-serif style;
> +@item UnDinaru, UnDinaruBold, UnDinaruLight;
> +@item UnPilgi, UnPilgiBold: script;
> +@item UnGungseo: cursive, brush-stroke.
> +")
> +    ;; GPL + embed exception for documents / images
> +    (license license:gpl2+)))
> -- 
> 2.6.3
>
>
> this succeds, although I should possibly rename the font
> directory. I will do this when I update the package to be
> font-un:core and font-un:extra.

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

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

* Re: [PATCH] Add un-fonts (new patch, closes old thread)
  2016-03-06 16:43       ` Andreas Enge
@ 2016-03-06 16:55         ` Nils Gillmann
  0 siblings, 0 replies; 11+ messages in thread
From: Nils Gillmann @ 2016-03-06 16:55 UTC (permalink / raw)
  To: guix-devel

Andreas Enge <andreas@enge.fr> writes:

> A bit odd indeed, but okay, I think. I would either go with "font-un" and put
> everything into it (or keep just the core part and drop the extra part, as you
> wish), or "font-un-core" and "font-un-extra" (in two packages,
> for instance).

for now I go with font-un and later add the (not part of the
package at all, but lying around somewhere else) -extra fonts.

>> In general I wonder, can't we use a gentoo:// for mirror and pull
>> the font files from there? They have a reasonable distributed
>> architecure of servers and to my knowledge no file includes
>> patches, the patches are in the portage directories, not the
>> distdir directory.
>> If there's no gentoo mirror option, maybe we can add that later.
>
> I do not know how their files are organised. Are they just tarballs? Do the
> tarballs have absolute path names (to "/usr" or such)?

I will look into that when I have enough time. generally, most
are tarballs if I remember correctly.

> I think the hosting
> options of the tarball you proposed are fine. Maybe also give the location
> of the mime-faulty original in a comment (I think Ludovic suggested that),
> so if the mirror disappears, we can still find the source somewhere.

Yes, see new patch which only has a faulty texinfo markup I need
help with.

thanks,
-- 
ng
irc://loupsycedyglgamf.onion:67/~NiAsterisk
https://psyced.org:34443/NiAsterisk/
EDN: https://wiki.c3d2.de/Echt_Dezentrales_Netz/en

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

* Re: [PATCH] Add un-fonts (new patch, closes old thread)
  2016-03-06 16:50   ` Nils Gillmann
@ 2016-03-06 17:23     ` Nils Gillmann
  2016-03-13 22:39       ` Ludovic Courtès
  0 siblings, 1 reply; 11+ messages in thread
From: Nils Gillmann @ 2016-03-06 17:23 UTC (permalink / raw)
  To: guix-devel

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

okay, fixed it.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-font-un.patch --]
[-- Type: text/x-patch, Size: 3735 bytes --]

From 8cc2f10b46840096039d75b4edc910ad2cbbb274 Mon Sep 17 00:00:00 2001
From: Nils Gillmann <niasterisk@grrlz.net>
Date: Sun, 6 Mar 2016 17:26:21 +0100
Subject: [PATCH] gnu: Add font-un.

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

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 69e195d..799d609 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -628,3 +628,75 @@ Unicode's Basic Multilingual Plane.  The package also includes
 utilities to ease adding new glyphs to the font.")
     (home-page "http://unifoundry.com/unifont.html")
     (license license:gpl2+)))
+
+(define-public font-un
+  (package
+    (name "font-un")
+    (version "1.0.2-080608")
+    ;; The upstream server at kldp.net is serving us broken MIME.
+    ;; See <http://bugs.gnu.org/22908>.
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "http://krosos.sdf.org/static/unix/"
+                    "un-fonts-core-" version "-080608" ".tar.gz"))
+              (uri (list
+                    (string-append
+                     "http://krosos.sdf.org/static/unix/"
+                     "un-fonts-core-" version ".tar.gz")
+                    ;; XXX: The upstream server at kldp.net
+                    (string-append
+                     "https://kldp.net/projects/unfonts/download/4695?filename="
+                     "un-fonts-core-" version ".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"))
+           (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
+     "Collection of Korean fonts")
+    (description
+     "Un-fonts is a family of mainly Korean fonts.
+It contains the following fonts and styles:
+@enumerate
+@item UnBatang, UnBatangBold: serif;
+@item UnDotum, UnDotumBold: sans-serif;
+@item UnGraphic, UnGraphicBold: sans-serif style;
+@item UnDinaru, UnDinaruBold, UnDinaruLight;
+@item UnPilgi, UnPilgiBold: script;
+@item UnGungseo: cursive, brush-stroke.
+@end enumerate\n")
+    ;; GPL + embed exception for documents / images
+    (license license:gpl2+)))
-- 
2.6.3


[-- Attachment #3: Type: text/plain, Size: 283 bytes --]


btw: can I change the default path where Gnus starts to search
for Attachments to add? 99% of my attachments come from where
guix is located.

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

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

* Re: [PATCH] Add un-fonts (new patch, closes old thread)
  2016-03-06 17:23     ` Nils Gillmann
@ 2016-03-13 22:39       ` Ludovic Courtès
  0 siblings, 0 replies; 11+ messages in thread
From: Ludovic Courtès @ 2016-03-13 22:39 UTC (permalink / raw)
  To: Nils Gillmann; +Cc: guix-devel

Nils Gillmann <niasterisk@grrlz.net> skribis:

> From 8cc2f10b46840096039d75b4edc910ad2cbbb274 Mon Sep 17 00:00:00 2001
> From: Nils Gillmann <niasterisk@grrlz.net>
> Date: Sun, 6 Mar 2016 17:26:21 +0100
> Subject: [PATCH] gnu: Add font-un.
>
> * gnu/packages/fonts.scm (font-un): New variable.

Applied, thanks!

Ludo’.

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

end of thread, other threads:[~2016-03-13 22:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-04 22:11 [PATCH] Add un-fonts (new patch, closes old thread) Nils Gillmann
2016-03-06 13:49 ` Ludovic Courtès
2016-03-06 15:20   ` Andreas Enge
2016-03-06 16:17     ` Nils Gillmann
2016-03-06 16:43       ` Andreas Enge
2016-03-06 16:55         ` Nils Gillmann
2016-03-06 15:25   ` Nils Gillmann
2016-03-06 16:43 ` Nils Gillmann
2016-03-06 16:50   ` Nils Gillmann
2016-03-06 17:23     ` Nils Gillmann
2016-03-13 22:39       ` Ludovic Courtès

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.