From patchwork Wed Feb 14 02:53:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "ashish.is--- via Guix-patches\" via" X-Patchwork-Id: 60299 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 9A38B27BBE9; Wed, 14 Feb 2024 02:54:11 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id AEE0227BBE2 for ; Wed, 14 Feb 2024 02:54:09 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ra5PE-0008Ve-EP; Tue, 13 Feb 2024 21:53:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ra5PB-0008VM-Uo for guix-patches@gnu.org; Tue, 13 Feb 2024 21:53:49 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ra5PB-0006q7-MK for guix-patches@gnu.org; Tue, 13 Feb 2024 21:53:49 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ra5PO-0005zf-CE; Tue, 13 Feb 2024 21:54:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69115] [PATCH 2/2] gnu: font-intel-one-mono: Split outputs for "out", "ttf" and "woff". Resent-From: iyzsong@envs.net Original-Sender: "Debbugs-submit" Resent-CC: all_but_last@163.com, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Wed, 14 Feb 2024 02:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69115 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69115@debbugs.gnu.org Cc: =?utf-8?b?5a6L5paH5q2m?= , Zhu Zihao , =?utf-8?b?5a6L5paH5q2m?= X-Debbugs-Original-Xcc: Zhu Zihao , =?utf-8?b?5a6L5paH?= =?utf-8?b?5q2m?= Received: via spool by 69115-submit@debbugs.gnu.org id=B69115.170787923623026 (code B ref 69115); Wed, 14 Feb 2024 02:54:02 +0000 Received: (at 69115) by debbugs.gnu.org; 14 Feb 2024 02:53:56 +0000 Received: from localhost ([127.0.0.1]:49151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ra5PI-0005zJ-CY for submit@debbugs.gnu.org; Tue, 13 Feb 2024 21:53:56 -0500 Received: from mail.envs.net ([5.199.136.28]:35762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ra5PH-0005zB-3I for 69115@debbugs.gnu.org; Tue, 13 Feb 2024 21:53:55 -0500 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id A3F0B38A0680; Wed, 14 Feb 2024 02:53:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1707879216; bh=fVVojeNtFRX0qaRJCjlVm91YbdGm2Efj956Z/tWlv1c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jiLXRlc4/psMexrkXTe0l3UYVaAIWkhIhl4nY0aNvO7jPBv94b5NxuZzv3MktllYM ygOIhNPTlNCvnjcD+G4r4mLyi0G/ZibINKZu8gLHyzzuGpf/kRz82mPsr1cFT42vf0 FE8XrRjOBbIem+99zTwOv8FULUxdna026AEt+bw8tsyntE/KwqZKO/r60lI5DWzomy DYEowpSTlKVN8k3ChxDHGNIJJDExQR0nsgXnfXC7xDxzi+xZD3rFT0IUZp8lHDVvWl j5mf6KTJUejd7R9OcRLZySj/RE15GGmcLpS/SImDuwuWydIvMDe4VA0g6saOp93wHE 7LmTgrN5/0DK6rsp/zgtyil7oa1g/OJVLcmGvdQZi8ZCbOg4UwVK+dZrarToV89Jiy s3ldfkuUcJ9ebut9gI0YJE0lZMK0ReQ4cNJc5GpyvjAMTNenPuJGWV8rt04S8PksD9 MHa8u2mk3AnKnaSOJwgn5BAWxDTOUrNb4hYQkZoGYeUozusIaCYiM8a0kE6O/z1sGg APJxLQ7JoxwsWTLaFTRoTt78SYYYackzvxSBkSZ0ziJO/88zi11uSB8iEuiRWmYdVA UcCXnXP4lcP6bGpe0IVss4bEUpUxUe6g+c1UmJLHquWoa6vKUfsyzlDUZeRCc28M7t ovERXKeMEQiR+tB0rC6UoNME= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id NyverSbnyzeZ; Wed, 14 Feb 2024 02:53:33 +0000 (UTC) Received: from localhost (unknown [36.170.59.60]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Wed, 14 Feb 2024 02:53:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id fb2d34c0; Wed, 14 Feb 2024 02:53:29 +0000 (UTC) Date: Wed, 14 Feb 2024 10:53:24 +0800 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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: , Reply-to: iyzsong@envs.net X-ACL-Warn: , iyzsong--- via Guix-patches X-Patchwork-Original-From: iyzsong--- via Guix-patches via From: "ashish.is--- via Guix-patches\" via" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: 宋文武 * gnu/packages/fonts.scm (font-intel-one-mono)[outputs]: New field. [arguments]: Add 'split-outputs phase. Change-Id: I0323fb55b9609c93c916b32fef4821533d580b48 --- gnu/packages/fonts.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index 2c532a6b5d..dc82040e84 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -226,7 +226,25 @@ (define-public font-intel-one-mono (sha256 (base32 "0w9isn8az1k3a3q4m2llwnryy79i5v30dx1hfaf90x0zkj98ky5h")))) + (outputs '("out" "ttf" "woff")) (build-system font-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'install 'split-outputs + (lambda* (#:key outputs #:allow-other-keys) + (let ((out-fonts (string-append (assoc-ref outputs "out") + "/share/fonts")) + (ttf-fonts (string-append (assoc-ref outputs "ttf") + "/share/fonts")) + (woff-fonts (string-append (assoc-ref outputs "woff") + "/share/fonts"))) + (mkdir-p ttf-fonts) + (mkdir-p woff-fonts) + (rename-file (string-append out-fonts "/truetype") + (string-append ttf-fonts "/truetype")) + (rename-file (string-append out-fonts "/web") + (string-append woff-fonts "/web")))))))) (home-page "https://github.com/intel/intel-one-mono") (synopsis "Expressive monospaced font family") (description