unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Hilton Chain via Guix-patches via <guix-patches@gnu.org>
To: 69429@debbugs.gnu.org
Cc: "Hilton Chain" <hako@ultrarare.space>,
	"Zhu Zihao" <all_but_last@163.com>, 宋文武 <iyzsong@envs.net>
Subject: [bug#69429] [PATCH 3/3] gnu: font-chiron-sung-hk: Split outputs.
Date: Tue, 27 Feb 2024 23:58:23 +0800	[thread overview]
Message-ID: <300bc46ba7044331916e7b89ec49267fcbda718d.1709046857.git.hako@ultrarare.space> (raw)
In-Reply-To: <cover.1709046857.git.hako@ultrarare.space>

* gnu/packages/fonts.scm (font-chiron-sung-hk)[arguments]: Split outputs.
[outputs]: Add "otf" and "ttf".

Change-Id: Id96bba47e8f9ae9404a528bcceab3e110a05db4e
---
 gnu/packages/fonts.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 73041ce79c..7b2cd7a396 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -3332,6 +3332,28 @@ (define-public font-chiron-sung-hk
                (base32
                 "1916bb834y4r4312g14zid7w3pbx1i70jcgkkfbf4z20grrj891m"))))
     (build-system font-build-system)
+    (arguments
+     (list #:modules
+           '((guix build font-build-system)
+             (guix build utils)
+             (srfi srfi-26))
+           #:phases
+           #~(modify-phases %standard-phases
+               (replace 'install
+                 (lambda _
+                   (let ((var-dir (string-append
+                                   #$output "/share/fonts/opentype"))
+                         (otf-dir (string-append
+                                   #$output:otf "/share/fonts/opentype"))
+                         (ttf-dir (string-append
+                                   #$output:ttf "/share/fonts/truetype")))
+                     (for-each (cut install-file <> var-dir)
+                               (find-files "VAR" "\\.otf$"))
+                     (mkdir-p (dirname otf-dir))
+                     (copy-recursively "OTF" otf-dir)
+                     (mkdir-p (dirname ttf-dir))
+                     (copy-recursively "TTF" ttf-dir)))))))
+    (outputs '("out" "otf" "ttf"))
     (home-page "https://chiron-fonts.github.io/")
     (synopsis "Traditional Chinese Song typeface")
     (description
-- 
2.41.0





  parent reply	other threads:[~2024-02-27 16:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-27 15:25 [bug#69429] [PATCH 0/3] Update Chiron fonts and split outputs Hilton Chain via Guix-patches via
2024-02-27 15:58 ` [bug#69429] [PATCH 1/3] gnu: font-chiron-sung-hk: Update to 1.011 Hilton Chain via Guix-patches via
2024-02-27 15:58 ` [bug#69429] [PATCH 2/3] gnu: font-chiron-hei-hk: Update to 2.509 Hilton Chain via Guix-patches via
2024-02-27 15:58 ` Hilton Chain via Guix-patches via [this message]
2024-02-28  3:20 ` [bug#69429] [PATCH v2 0/3] Update Chiron fonts and split outputs Hilton Chain via Guix-patches via
2024-02-28  3:27   ` [bug#69429] [PATCH v2 1/3] gnu: font-chiron-sung-hk: Update to 1.011 Hilton Chain via Guix-patches via
2024-02-28  3:27   ` [bug#69429] [PATCH v2 2/3] gnu: font-chiron-hei-hk: Update to 2.509 Hilton Chain via Guix-patches via
2024-02-28  3:27   ` [bug#69429] [PATCH v2 3/3] gnu: font-chiron-sung-hk: Split outputs Hilton Chain via Guix-patches via
2024-03-07 10:30   ` [bug#69429] [PATCH v2 0/3] Update Chiron fonts and split outputs 宋文武 via Guix-patches via
2024-03-09  3:18     ` bug#69429: " Hilton Chain via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=300bc46ba7044331916e7b89ec49267fcbda718d.1709046857.git.hako@ultrarare.space \
    --to=guix-patches@gnu.org \
    --cc=69429@debbugs.gnu.org \
    --cc=all_but_last@163.com \
    --cc=hako@ultrarare.space \
    --cc=iyzsong@envs.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).