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 v2 3/3] gnu: font-chiron-sung-hk: Split outputs.
Date: Wed, 28 Feb 2024 11:27:17 +0800	[thread overview]
Message-ID: <1089ac68d3b7b2e2c80d0e4bb64d5b4edef0647b.1709090139.git.hako@ultrarare.space> (raw)
In-Reply-To: <cover.1709090139.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 | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 73041ce79c..a21e76400e 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -3332,6 +3332,20 @@ (define-public font-chiron-sung-hk
                (base32
                 "1916bb834y4r4312g14zid7w3pbx1i70jcgkkfbf4z20grrj891m"))))
     (build-system font-build-system)
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (replace 'install
+                 (lambda _
+                   (let ((install (assoc-ref %standard-phases 'install)))
+                     (with-directory-excursion "VAR"
+                       (for-each delete-file (find-files "." "\\.ttf$"))
+                       (install #:outputs `(("out" . ,#$output))))
+                     (with-directory-excursion "OTF"
+                       (install #:outputs `(("out" . ,#$output:otf))))
+                     (with-directory-excursion "TTF"
+                       (install #:outputs `(("out" . ,#$output:ttf))))))))))
+    (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-28  3:32 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 ` [bug#69429] [PATCH 3/3] gnu: font-chiron-sung-hk: Split outputs Hilton Chain via Guix-patches via
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   ` Hilton Chain via Guix-patches via [this message]
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=1089ac68d3b7b2e2c80d0e4bb64d5b4edef0647b.1709090139.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).