From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cFDaI1m4iWJiTAAAbAwnHQ (envelope-from ) for ; Sun, 22 May 2022 06:13:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id eAjKI1m4iWKPjwAA9RJhRA (envelope-from ) for ; Sun, 22 May 2022 06:13:13 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 07A4C62B6 for ; Sun, 22 May 2022 06:13:13 +0200 (CEST) Received: from localhost ([::1]:40202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nscxs-0007jD-7o for larch@yhetil.org; Sun, 22 May 2022 00:13:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nscxi-0007fx-Fb for guix-patches@gnu.org; Sun, 22 May 2022 00:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nscxi-00026f-6W for guix-patches@gnu.org; Sun, 22 May 2022 00:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nscxh-0003b9-VK for guix-patches@gnu.org; Sun, 22 May 2022 00:13:01 -0400 Subject: bug#48620: [PATCH] gnu: Add font-ipa-ex. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Sun, 22 May 2022 04:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 48620 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Prikler Cc: 48620-done@debbugs.gnu.org Mail-Followup-To: 48620@debbugs.gnu.org, maxim.cournoyer@gmail.com, leo.prikler@student.tugraz.at Received: via spool by 48620-done@debbugs.gnu.org id=D48620.165319275113788 (code D ref 48620); Sun, 22 May 2022 04:13:01 +0000 Received: (at 48620-done) by debbugs.gnu.org; 22 May 2022 04:12:31 +0000 Received: from localhost ([127.0.0.1]:43371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nscxD-0003aK-80 for submit@debbugs.gnu.org; Sun, 22 May 2022 00:12:31 -0400 Received: from mail-qv1-f52.google.com ([209.85.219.52]:41743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nscx8-0003a4-Nj for 48620-done@debbugs.gnu.org; Sun, 22 May 2022 00:12:29 -0400 Received: by mail-qv1-f52.google.com with SMTP id c9so9321483qvx.8 for <48620-done@debbugs.gnu.org>; Sat, 21 May 2022 21:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=j38cvYI2PwRran+UVh45qlx6ulQy9i4Vz6eTZ8eu1UU=; b=p8nqAcR0BQBpi2k/BkzD/pQXkxnRHQ8mcetYUMLnsnQPRqRE/3LR1TCyFZoM/LsyiX r2STqM+cOGgJWNZLrIlmSw3e4tQ9PM1x3M1PN+kHVJMNqdc2Ag+XbpJBOBZNY+4HLzNt CE/ModAGbh8D2Ty7F2zb+gUmfIoHZFqCSp2xrM6PFV0H+IGwsw1T/lJDV1ocE2i9uZpl z3SisYSMPm+ssu6iC+nnFrKhCjH22QRwlmV9+eSKLD8wp9eYinhRfhdKfMftCXFUsOAg Okn0HR//7w+rUESW5IvEzJUN46SJEmXjgvPst9CJxc9LWETCNbHPX73Q4oR4jhGSiOx6 m66g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=j38cvYI2PwRran+UVh45qlx6ulQy9i4Vz6eTZ8eu1UU=; b=y8I7xbx6wOv1ojIc6/rrLddOpNKDCE5rnFNF4Hb7laxmrPCKQNRlHEL73ep0Oyz3iO eLZ4vKWcWbwBylEbZ5cT39EwOyCNOaXN5bqugL7Zb0omMQtZwaUruznw2HTW1psum0AX cDWf5UN0LAcdz+7E8/Wlu/BXiGxK4aSFSabq/j/Suc1YxA0rYalKEaVpbSPF/A6fsC6U ZokdZRMZhX0bcEUJrgjrmzbov4sMeJfLM7E4uQPZpzIm0z1tTfhQhiM6kvY070hh7TcO cABmNjPu9DjwWr1py3GEKfqioPYH7qdb5Pk/pzy0FRDfAo8KUO3KSZLqMH79MJWOXrCW r7ww== X-Gm-Message-State: AOAM531jsT2whS+g+2t6Bxt/CsEdqVaj4FWmrcwfrZteyQA8UBLBkYP5 PmjgcEQvNtQu4XJHx2ujAr5zf8o/KdlaEtKv X-Google-Smtp-Source: ABdhPJwDqkrmFi9mElsBo4FX6BdyXbKVH4S8hfcrnwbjGvlyQwNsEIbOnDHZL7W370jU+1MrYCfzzA== X-Received: by 2002:a0c:f952:0:b0:461:e607:87dd with SMTP id i18-20020a0cf952000000b00461e60787ddmr12917128qvo.121.1653192740911; Sat, 21 May 2022 21:12:20 -0700 (PDT) Received: from hurd (dsl-152-80.b2b2c.ca. [66.158.152.80]) by smtp.gmail.com with ESMTPSA id b7-20020a376707000000b0069fc13ce237sm2321670qkc.104.2022.05.21.21.12.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 May 2022 21:12:20 -0700 (PDT) From: Maxim Cournoyer References: <20210524084644.31047-1-leo.prikler@student.tugraz.at> Date: Sun, 22 May 2022 00:12:19 -0400 In-Reply-To: <20210524084644.31047-1-leo.prikler@student.tugraz.at> (Leo Prikler's message of "Mon, 24 May 2021 10:46:45 +0200") Message-ID: <87wnee6w9o.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653192793; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=j38cvYI2PwRran+UVh45qlx6ulQy9i4Vz6eTZ8eu1UU=; b=XU07WHGmnUhZNmzzMQ08P854lYDI+lgkylOud802xPgWiOemtgbfdhOg7BGmAJtVtpLG5P y8Fxdj+cAtAyUo8WW3xxTWKeFkz572XVf9D4ydQE6pkrq5NVBZB+kyY4cpSVWnFlimTp91 rEG7xgqVjJtOH7KFGff+lXOeiGYgfi3miV5qEXnkgnEK1MfodEruopya16Em5CLqkb6J38 LQv9ALrG9Cb3I2Goytf5PsHntREVIox0tlcigKwmBRRfNg+IxQYKFbA1lhnX+WVU5UHEKp ZzsBubbPv56NTtSeg59go+8+KjlbA7FFJKyt+U7oyBhNCGcb/AUgUi9oFaLWhw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653192793; a=rsa-sha256; cv=none; b=aawuZR4/ceMKI62IaiPHwl+39q6Huz6+28MURKHW7Qpwh2L8UXCXBbYaAr52tVS612YTPd KLACG/4RUkx36L7uxvoRJv98u0lsO1LSgzv7DxzNd0NYn+hZeMyPEUQvlUckiE+AuSzn3P doC7Tp9HMUsLJvupDy8aCDANiy3xI6q8z2qli+qZv/+FOtY9SRK5UYEXYDirRuOJ+TwfZz ZlWBi/JZjNCx1afEFH0FebnAipLPe771D7GNZTlzdX4ZknV7KlBU3ztCoFbmL2UWdqBBYR fz2m1tEJBfUz6QbjlZ31MiK9NdKdFlT5isTgiTgIM5m4CE9TeuBJnWgkkNBAPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=p8nqAcR0; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.95 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=p8nqAcR0; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 07A4C62B6 X-Spam-Score: 5.95 X-Migadu-Scanner: scn1.migadu.com X-TUID: XvibvqHqqDQR Hello! Leo Prikler writes: > * gnu/packages/fonts.scm (font-ipa-ex): New variable. > --- > gnu/packages/fonts.scm | 43 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 43 insertions(+) > > diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm > index 726bef183c..711344191c 100644 > --- a/gnu/packages/fonts.scm > +++ b/gnu/packages/fonts.scm > @@ -2031,6 +2031,49 @@ orthography of Roman glyphs of Meera Inimai are al= so based on this > characteristic so that they sit smoothly with the Tamil glyphs.") > (license license:silofl1.1))) >=20=20 > +(define-public font-ipa-ex > + (package > + (name "font-ipa-ex") > + (version "004.01") > + (source (origin > + (method url-fetch/zipbomb) > + (uri (string-append "https://moji.or.jp/wp-content/ipafont= /IPAexfont/" > + "IPAexfont" (string-join (string-split= version #\.) "") > + ".zip")) > + (sha256 > + (base32 > + "0jwpszgisrls1lsgq1ngcm99zjaikb8hshr02512qrzrnd53gy5w"))= )) > + (build-system font-build-system) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + (add-after 'unpack 'make-read-only > + (lambda _ > + (for-each > + (lambda (file) > + (chmod file #o444)) > + (find-files "." #:directories? #f)) > + #t)) > + (add-after 'install 'install-doc > + (lambda* (#:key outputs #:allow-other-keys) > + (let ((font+version (string-append > + "IPAexfont" > + ,(string-join (string-split version #\= .) ""))) > + (doc-dir (string-append (assoc-ref outputs "out") > + "/share/doc/font-ipa-ex"))) > + (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"))) > + #t)))))) > + (home-page "https://moji.or.jp/ipafont/") > + (synopsis "Japanese font from the Information-technology Promotion A= gency") > + (description "IPAex is fixed-width font that aims to improve the > +convenience of Japanese document creation.") > + (license license:ipa))) > + > (define-public font-ipa-mj-mincho > (package > (name "font-ipa-mj-mincho") I made the following changes: --8<---------------cut here---------------start------------->8--- 1 file changed, 33 insertions(+), 28 deletions(-) gnu/packages/fonts.scm | 61 +++++++++++++++++++++++++++++++++--------------= -------------- modified gnu/packages/fonts.scm @@ -48,6 +48,7 @@ ;;; Copyright =C2=A9 2021 Wamm K. D. ;;; Copyright =C2=A9 2022 Jai Vetrivelan ;;; Copyright =C2=A9 2022 Maxim Cournoyer +;;; Copyright =C2=A9 2021 Liliana Marie Prikler ;;; ;;; This file is part of GNU Guix. ;;; @@ -2256,41 +2257,45 @@ (define-public font-ipa-ex (version "004.01") (source (origin (method url-fetch/zipbomb) - (uri (string-append "https://moji.or.jp/wp-content/ipafont/I= PAexfont/" - "IPAexfont" (string-join (string-split v= ersion #\.) "") - ".zip")) + (uri (string-append + "https://moji.or.jp/wp-content/ipafont/IPAexfont/" + "IPAexfont" (string-join (string-split version #\.) "") + ".zip")) (sha256 (base32 "0jwpszgisrls1lsgq1ngcm99zjaikb8hshr02512qrzrnd53gy5w")))) (build-system font-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'make-read-only - (lambda _ - (for-each - (lambda (file) - (chmod file #o444)) - (find-files "." #:directories? #f)) - #t)) - (add-after 'install 'install-doc - (lambda* (#:key outputs #:allow-other-keys) - (let ((font+version (string-append - "IPAexfont" - ,(string-join (string-split version #\.)= ""))) - (doc-dir (string-append (assoc-ref outputs "out") - "/share/doc/font-ipa-ex"))) - (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"))) - #t)))))) + (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 + "IPAexfont" + (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 Age= ncy") - (description "IPAex is fixed-width font that aims to improve the -convenience of Japanese document creation.") + (description "IPAex Fonts are suitable for both display and printing. +This is a modernized version of IPA Fonts that aims to provide a good bala= nce +for authoring Japanese documents mixed with Western characters, while +following Japanese printing tradition. Japanese characters (Kanji, Kana a= nd +punctuation marks) are full width mono-space pitch, and Western characters= are +proportional pitch.") (license license:ipa))) =20 (define-public font-ipa-mj-mincho --8<---------------cut here---------------end--------------->8--- mostly improving the description, and pushed as 6e0b2adf5f. Thanks! Maxim