* [bug#63707] [PATCH] gnu: Add font-ipa.
@ 2023-05-24 21:22 Wolf
2023-06-21 16:36 ` [bug#63707] Ping wolf
2023-07-01 10:23 ` bug#63707: [PATCH] gnu: Add font-ipa Nicolas Goaziou
0 siblings, 2 replies; 4+ messages in thread
From: Wolf @ 2023-05-24 21:22 UTC (permalink / raw)
To: 63707; +Cc: Wolf, Zhu Zihao, 宋文武
* gnu/packages/fonts.scm (font-ipa): New variable.
---
gnu/packages/fonts.scm | 46 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 12c6b04bd7..b159eb7ab0 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -2515,6 +2515,52 @@ (define-public font-meera-inimai
characteristic so that they sit smoothly with the Tamil glyphs.")
(license license:silofl1.1)))
+(define-public font-ipa
+ (package
+ (name "font-ipa")
+ (version "003.03")
+ (source (origin
+ (method url-fetch/zipbomb)
+ (uri (string-append
+ "https://moji.or.jp/wp-content/ipafont/IPAfont/" "IPAfont"
+ (string-join (string-split version #\.) "") ".zip"))
+ (sha256
+ (base32
+ "1rbgfq14ld0cwas6bx5h7pwyv2hkfa8ihnphsaz1brxqliwysmgp"))))
+ (build-system font-build-system)
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'make-read-only
+ (lambda _
+ ;; Otherwise the files have the executable bit set.
+ (for-each (lambda (file)
+ (chmod file #o444))
+ (find-files "."
+ #:directories? #f))))
+ (add-after 'install 'install-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((font+version #$(string-append "IPAfont"
+ (string-join (string-split
+ version
+ #\.)
+ "")))
+ (doc-dir (string-append #$output
+ "/share/doc/"
+ #$name)))
+ (with-directory-excursion font+version
+ (mkdir-p doc-dir)
+ (copy-file (string-append "Readme_"
+ font+version ".txt")
+ (string-append doc-dir "/README"))
+ (copy-file
+ "IPA_Font_License_Agreement_v1.0.txt"
+ (string-append doc-dir "/LICENSE")))))))))
+ (home-page "https://moji.or.jp/ipafont/")
+ (synopsis "Japanese font from the Information-technology Promotion Agency")
+ (description "Japanese outline fonts by Information-technology Promotion
+Agency, Japan (IPA)")
+ (license license:ipa)))
+
(define-public font-ipa-ex
(package
(name "font-ipa-ex")
base-commit: 6d0571215d661d21cac2150ca45906e77a79a5fb
--
2.40.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#63707] Ping
2023-05-24 21:22 [bug#63707] [PATCH] gnu: Add font-ipa Wolf
@ 2023-06-21 16:36 ` wolf
2023-07-01 10:23 ` bug#63707: [PATCH] gnu: Add font-ipa Nicolas Goaziou
1 sibling, 0 replies; 4+ messages in thread
From: wolf @ 2023-06-21 16:36 UTC (permalink / raw)
To: 63707
[-- Attachment #1: Type: text/plain, Size: 179 bytes --]
Hi,
anything I can do to help this getting merged?
W.
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#63707: [PATCH] gnu: Add font-ipa.
2023-05-24 21:22 [bug#63707] [PATCH] gnu: Add font-ipa Wolf
2023-06-21 16:36 ` [bug#63707] Ping wolf
@ 2023-07-01 10:23 ` Nicolas Goaziou
2023-07-02 18:10 ` [bug#63707] " wolf
1 sibling, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2023-07-01 10:23 UTC (permalink / raw)
To: Wolf; +Cc: 63707-done, Zhu Zihao, 宋文武
Hello,
Wolf <wolf@wolfsden.cz> writes:
> * gnu/packages/fonts.scm (font-ipa): New variable.
Applied with the changes below. Thank you.
> ---
> + (build-system font-build-system)
> + (arguments
> + (list #:phases #~(modify-phases %standard-phases
> + (add-after 'unpack 'make-read-only
I fixed indentation, which consumes way too much horizontal space here.
> + (add-after 'install 'install-doc
> + (lambda* (#:key outputs #:allow-other-keys)
outputs argument is not necessary when using G-expressions. You don't
use it either in your phases.
> + (description "Japanese outline fonts by Information-technology Promotion
> +Agency, Japan (IPA)")
The description should consist of full sentences:
"These package provides Japanese outline fonts..."
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#63707] [PATCH] gnu: Add font-ipa.
2023-07-01 10:23 ` bug#63707: [PATCH] gnu: Add font-ipa Nicolas Goaziou
@ 2023-07-02 18:10 ` wolf
0 siblings, 0 replies; 4+ messages in thread
From: wolf @ 2023-07-02 18:10 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: 63707-done, Zhu Zihao, 宋文武
[-- Attachment #1: Type: text/plain, Size: 1344 bytes --]
On 2023-07-01 12:23:34 +0200, Nicolas Goaziou wrote:
> Hello,
>
> Wolf <wolf@wolfsden.cz> writes:
>
> > * gnu/packages/fonts.scm (font-ipa): New variable.
>
> Applied with the changes below. Thank you.
Thank you for merging it.
> > ---
> > + (build-system font-build-system)
> > + (arguments
> > + (list #:phases #~(modify-phases %standard-phases
> > + (add-after 'unpack 'make-read-only
>
> I fixed indentation, which consumes way too much horizontal space here.
>
> > + (add-after 'install 'install-doc
> > + (lambda* (#:key outputs #:allow-other-keys)
>
> outputs argument is not necessary when using G-expressions. You don't
> use it either in your phases.
I admit I just copied over the package for font-ipa-ex and adjusted it, not
realizing that this part is not necessary.
>
> > + (description "Japanese outline fonts by Information-technology Promotion
> > +Agency, Japan (IPA)")
>
> The description should consist of full sentences:
>
> "These package provides Japanese outline fonts..."
Will keep that in mind.
>
> Regards,
> --
> Nicolas Goaziou
Have a nice day,
W.
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-07-02 18:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-24 21:22 [bug#63707] [PATCH] gnu: Add font-ipa Wolf
2023-06-21 16:36 ` [bug#63707] Ping wolf
2023-07-01 10:23 ` bug#63707: [PATCH] gnu: Add font-ipa Nicolas Goaziou
2023-07-02 18:10 ` [bug#63707] " wolf
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.