From patchwork Sat May 13 19:53:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ahmad Draidi X-Patchwork-Id: 49997 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 3E7F027BBE9; Sat, 13 May 2023 21:26:40 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 B334227BBE2 for ; Sat, 13 May 2023 21:26:37 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxvow-0001eX-45; Sat, 13 May 2023 16:26:27 -0400 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 1pxvKa-0005Ml-4X for guix-patches@gnu.org; Sat, 13 May 2023 15:55:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxvKZ-0002oy-SI for guix-patches@gnu.org; Sat, 13 May 2023 15:55:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pxvKX-00011R-O7; Sat, 13 May 2023 15:55:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63490] [PATCH] gnu: Add font-spleen. Resent-From: Ahmad Draidi Original-Sender: "Debbugs-submit" Resent-CC: iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Sat, 13 May 2023 19:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63490 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63490@debbugs.gnu.org Cc: Ahmad Draidi , =?utf-8?b?5a6L5paH5q2m?= X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: =?utf-8?b?5a6L5paH5q2m?= Received: via spool by submit@debbugs.gnu.org id=B.16840076953881 (code B ref -1); Sat, 13 May 2023 19:55:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 May 2023 19:54:55 +0000 Received: from localhost ([127.0.0.1]:39721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxvKQ-00010W-Qs for submit@debbugs.gnu.org; Sat, 13 May 2023 15:54:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:42824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxvKO-00010I-Ah for submit@debbugs.gnu.org; Sat, 13 May 2023 15:54:53 -0400 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 1pxvKN-0005MC-4v for guix-patches@gnu.org; Sat, 13 May 2023 15:54:51 -0400 Received: from rainycloud.ext.redscript.org ([2402:28c0:4:1081::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxvKL-0002eA-20 for guix-patches@gnu.org; Sat, 13 May 2023 15:54:50 -0400 Received: from Zelda.l01.int.redscript.org (bba-2-49-3-82.alshamil.net.ae [2.49.3.82]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by rainycloud.ext.redscript.org (Postfix) with ESMTPSA id 271278D3; Sat, 13 May 2023 19:54:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-rsa; t=1684007681; h=from:from: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; bh=/66o9FhxD+cDvdwkmGaQ7F3JZ0MXXO+REaDhK8t9sz4=; b=oCmw26tqAG6Dw2WZydmvMUg2Xd1FIcHo4dDWuyB/Q1VomUe/ND5wnk0G++IrzYfK/YF62g S6djAH1fL4UUNqBQ1C93JVL6HFV1T+/h3Ha02e+f1yQFeiCT7KNwPgajHBUmden7Xc7QZP GZYYHSfpwBnoE2OyDw8JgFQ8SMdU8R34JHEUpvCpUK/4KWP5NRg1QEV6o47rZ1yeQJgUNF QzjTLidro99sAjgSYOquOMFbtmstZ5TtIkwdpe54Vk+AuQniisoPBmGlaZFZDRMYbvZgS2 2GujV81dPV//yiLPZ9FhuEtl821SLsh+PuqWdT7W8a/OypW+7jOVwgDJW0QWmWN+u3r9+D fgQlcXk2zk1ZvI1B7Pr3t8KFGKZS7987aErfzXcu/o7tUSfUM36/fO3cufdfrku8rM5f3g zI7l+ZeRueZIEWF1DnBHabvZZfMY7kOl5gTF1dI7k7TEldTlIWgc2UvgP5iCkAq7t/+4GH XFWNX4Qj10aFkFn85X6XznkurV/RtjYbK1g9NnyYxXyqILFgC7dQ6kFmkyJP9qSEKNaFGg /yL2xo1RL6Nfs6P6vuSAOIvIkCwjsxNHgYGqlsbKq9VR1YEZEj9TlxRwb8f8lNMsw98sev 3KDYKbWYHIXeUB5ashMtbQP1oBcZ1OnCNIot1SA3pt6RWHK1OMM5k= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-ed25519; t=1684007681; h=from:from: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; bh=/66o9FhxD+cDvdwkmGaQ7F3JZ0MXXO+REaDhK8t9sz4=; b=XYomg0oA4Jq+8nWMI0rhUv5nzph339E4qWGDVR/zUHIQZ26qDoeht1+YrNJs8CnRh0EtQd ioKhrsDSZvu9m6BQ== Date: Sat, 13 May 2023 23:53:42 +0400 Message-Id: X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2402:28c0:4:1081::1; envelope-from=a.r.draidi@redscript.org; helo=rainycloud.ext.redscript.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sat, 13 May 2023 16:26:21 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Ahmad Draidi X-ACL-Warn: , Ahmad Draidi via Guix-patches X-Patchwork-Original-From: Ahmad Draidi via Guix-patches via From: Ahmad Draidi 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 * gnu/packages/fonts.scm (font-spleen): New variable. --- gnu/packages/fonts.scm | 81 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) base-commit: 3f00f46adad467f3008b2e645f76baf70adaad66 diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index 3aad42493d..03fdf0caa2 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -53,6 +53,7 @@ ;;; Copyright © 2022 Hilton Chain ;;; Copyright © 2022 Nguyễn Gia Phong ;;; Copyright © 2023 Nicolas Graves +;;; Copyright © 2023 Ahmad Draidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -3049,3 +3050,83 @@ (define-public font-chiron-hei-hk Kong variant of Adobe’s Source Han Sans. The font aims at providing a modern, region-agnostic glyph set adopting the “modern” glyph style that is similar to prevalent typefaces in Traditional Chinese regions."))) + +(define-public font-spleen + (package + (name "font-spleen") + (version "1.9.3") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/fcambus/spleen/releases/download/" + version "/spleen-" version ".tar.gz")) + (sha256 + (base32 + "09bbwza14pl70cxbr09f9m8522s5p1p04kx9gh8svpd50bdixbdp")))) + (build-system font-build-system) + (outputs '("out" ;OTB + "bdf" "otf" "pcf" "psf")) + (arguments + `(#:phases (modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((otb (assoc-ref outputs "out")) + (bdf (assoc-ref outputs "bdf")) + (otf (assoc-ref outputs "otf")) + (pcf (assoc-ref outputs "pcf")) + (psf (assoc-ref outputs "psf")) + (otb-font-dir (string-append (assoc-ref outputs + "out") + "/share/fonts/misc")) + (bdf-font-dir (string-append (assoc-ref outputs + "bdf") + "/share/fonts/misc")) + (otf-font-dir (string-append (assoc-ref outputs + "otf") + "/share/fonts/opentype")) + (pcf-font-dir (string-append (assoc-ref outputs + "pcf") + "/share/fonts/misc")) + (psf-font-dir (string-append (assoc-ref outputs + "psf") + "/share/consolefonts"))) + (mkdir-p otb-font-dir) + (mkdir-p bdf-font-dir) + (mkdir-p otf-font-dir) + (mkdir-p pcf-font-dir) + (mkdir-p psf-font-dir) + (for-each (lambda (otb) + (install-file otb otb-font-dir)) + (find-files "." "\\.otb$")) + (for-each (lambda (bdf) + (install-file bdf bdf-font-dir)) + (find-files "." "\\.bdf$")) + (for-each (lambda (otf) + (install-file otf otf-font-dir)) + (find-files "." "\\.otf$")) + (for-each (lambda (pcf) + (install-file pcf pcf-font-dir)) + (find-files "." "\\.pcf$")) + (for-each (lambda (psf) + (install-file psf psf-font-dir)) + (find-files "." "\\.psfu$"))) #t))))) + (home-page "https://www.cambus.net/spleen-monospaced-bitmap-fonts/") + (synopsis "Monospaced bitmap font for consoles and terminals") + (description + "Spleen is a monospaced bitmap font available in 6 sizes: + 5x8, 6x12, 8x16, 12x24, 16x32, 32x64. + +All sizes are provided in the Glyph Bitmap Distribution Format (BDF), + PCF, PSF (for the Linux console), and OTB formats. All sizes, except + 5x8, are provided in OTF format also. + +All font sizes, except 5x8 and 6x12, contain all ISO/IEC 8859-1 + characters (Basic Latin and Latin-1 Supplement Unicode block), Latin + Extended-A characters, as well as Box Drawing, Block Elements, and + Braille Patterns Unicode blocks. + +The 5x8 and 6x12 versions only contain printable ASCII characters, + the Braille Patterns Unicode block, and light Box Drawing characters. + +Spleen also has support for Powerline symbols out of the box.") + (license license:bsd-2)))