From patchwork Mon May 24 08:46:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Prikler X-Patchwork-Id: 29530 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9AF2A27BC81; Mon, 24 May 2021 09:48:39 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED,URI_WP_DIRINDEX autolearn=no autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 662FD27BC78 for ; Mon, 24 May 2021 09:48:39 +0100 (BST) Received: from localhost ([::1]:59418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ll6GM-0004O9-Ha for patchwork@mira.cbaines.net; Mon, 24 May 2021 04:48:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ll6Fm-0003UI-Qb for guix-patches@gnu.org; Mon, 24 May 2021 04:48:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59068) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ll6Fl-0006vb-RP for guix-patches@gnu.org; Mon, 24 May 2021 04:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ll6Fl-0001ul-PO for guix-patches@gnu.org; Mon, 24 May 2021 04:48:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48620] [PATCH] gnu: Add font-ipa-ex. Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 24 May 2021 08:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48620 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48620@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16218460427300 (code B ref -1); Mon, 24 May 2021 08:48:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 May 2021 08:47:22 +0000 Received: from localhost ([127.0.0.1]:42381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ll6F8-0001te-Ck for submit@debbugs.gnu.org; Mon, 24 May 2021 04:47:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:44626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ll6F6-0001tX-Hm for submit@debbugs.gnu.org; Mon, 24 May 2021 04:47:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ll6F6-0002nS-0N for guix-patches@gnu.org; Mon, 24 May 2021 04:47:20 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:8871) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ll6F2-0006Rp-EC for guix-patches@gnu.org; Mon, 24 May 2021 04:47:19 -0400 Received: from localhost.localdomain (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FpW6g4Q09z1LLyW for ; Mon, 24 May 2021 10:47:07 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4FpW6g4Q09z1LLyW DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1621846027; bh=enjisE1zjJnmm4b6Oj6hHYy0kuQEIF47xhGUbIZYpss=; h=From:To:Subject:Date:From; b=VE+YOnY5GCCx+qQQZC7XkGsqINRPNDRpWouaE8X4BqqjhSv60YzMnb5pRhz9gQlQs nc6M3y+b1VXRZn74JpoA03bQQf53zOa+SAUoSvltKMujq/KD3q7tIE2LXjbtkORo1a UL7UdUYKZkgYrJfF2TcxF6rAiWLIkbNlwz9Vyf5s= From: Leo Prikler Date: Mon, 24 May 2021 10:46:45 +0200 Message-Id: <20210524084644.31047-1-leo.prikler@student.tugraz.at> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 Received-SPF: pass client-ip=129.27.2.202; envelope-from=leo.prikler@student.tugraz.at; helo=mailrelay.tugraz.at X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URI_WP_DIRINDEX=3.499 autolearn=no autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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 also based on this characteristic so that they sit smoothly with the Tamil glyphs.") (license license:silofl1.1))) +(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 Agency") + (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")