From patchwork Sun Feb 20 19:43:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: kitzman X-Patchwork-Id: 444 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 F260727BBEB; Sun, 20 Feb 2022 21:10:38 +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,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 5A02227BBEA for ; Sun, 20 Feb 2022 21:10:37 +0000 (GMT) Received: from localhost ([::1]:47760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLtTY-0006XX-HH for patchwork@mira.cbaines.net; Sun, 20 Feb 2022 16:10:36 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLs6o-0005kW-8B for guix-patches@gnu.org; Sun, 20 Feb 2022 14:43:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39990) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLs6n-0000Yr-SZ for guix-patches@gnu.org; Sun, 20 Feb 2022 14:43:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nLs6n-0008It-Mp for guix-patches@gnu.org; Sun, 20 Feb 2022 14:43:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54076] [PATCH] gnu: added font-termsyn Resent-From: kitzman Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 20 Feb 2022 19:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54076 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54076@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164538614431873 (code B ref -1); Sun, 20 Feb 2022 19:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Feb 2022 19:42:24 +0000 Received: from localhost ([127.0.0.1]:33887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLs6B-0008I1-Ca for submit@debbugs.gnu.org; Sun, 20 Feb 2022 14:42:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:50422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLs61-0008HX-GJ for submit@debbugs.gnu.org; Sun, 20 Feb 2022 14:42:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLs61-0005hf-9p for guix-patches@gnu.org; Sun, 20 Feb 2022 14:42:13 -0500 Received: from knopi.disroot.org ([178.21.23.139]:46450) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLs5y-0000V3-CT for guix-patches@gnu.org; Sun, 20 Feb 2022 14:42:12 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8C54C8DC3A for ; Sun, 20 Feb 2022 20:42:06 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wF5KnCaFE42g for ; Sun, 20 Feb 2022 20:42:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1645386125; bh=G4K78vD6DEhOntUxKPhMmlrG5yvC5ZW5NI6c4K/tPaA=; h=From:To:Subject:Date; b=gi/pFw7pXsAdCmRlafljd/EZ107ZDEGBPOb013XmmaVr7AyyrFdtg4ZtmqkPmxbJe HoNJsmuytJADL/H2r4+AePdxITlOZmvaw/xK1WU7tYbkW1/1kuArukL9y5OfYBk1YT vpXr9ixRDIFlI6xdUTyKgFUxwJo4vR3rlIRrNm1PH1jFm20wgkgNnjlqf6OdLbfrGw 9VHmGFmRK4ac+muFA0hH9VdsZwrXFoS97viMIRwTbuYmsqMn7xKDz/54oVga9THIIi P6/KFx8RuKwjY6/57Ys2VkoCPDIG+UhzVKOCKp18YYMKARnwNrm8attNkMcprOFrai kWvW1F2AWhs4A== Date: Sun, 20 Feb 2022 21:43:08 +0200 Message-ID: <87r17xb9yr.fsf@disroot.org> Mime-Version: 1.0 Received-SPF: pass client-ip=178.21.23.139; envelope-from=kitzman@disroot.org; helo=knopi.disroot.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: Sun, 20 Feb 2022 16:10:28 -0500 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" Reply-to: kitzman X-ACL-Warn: , kitzman via Guix-patches X-Patchwork-Original-From: kitzman via Guix-patches via From: kitzman X-getmail-retrieved-from-mailbox: Patches I have attached inline a patch adding, to gnu/packages/fonts.scm, the font-termsyn package. From ca77fce8c54f25c0a634347d74bdcf5e0557d45b Mon Sep 17 00:00:00 2001 From: kitzman Date: Sun, 20 Feb 2022 21:39:35 +0200 Subject: [PATCH] gnu: added font-termsyn --- gnu/packages/fonts.scm | 75 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 74 insertions(+), 1 deletion(-) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index 536892ee0d..195f5cd4b9 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -44,6 +44,7 @@ ;;; Copyright © 2021 Paul A. Patience ;;; Copyright © 2021 Taiju HIGASHI ;;; Copyright © 2022 Philip McGrath +;;; Copyright © 2022 Kitzman ;;; ;;; This file is part of GNU Guix. ;;; @@ -2463,4 +2464,76 @@ (define-public font-charter "Bitstream contributed the Charter family " "to the X Consortium in 1992. " "The license is also embedded in the font metadata.")))))) -/ + +(define-public font-termsyn + (package + (name "font-termsyn") + (version "1.8.7") + (source + (origin + (method url-fetch) + (uri + (string-append + "mirror://sourceforge/termsyn/termsyn-" + version ".tar.gz")) + (sha256 + (base32 "15vsmc3nmzl0pkgdpr2993da7p38fiw2rvcg01pwldzmpqrmkpn6")))) + (build-system font-build-system) + (outputs '("out" + "psf" + "otf")) + (native-inputs `(("fontforge" ,fontforge))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'install 'build + (lambda _ + (use-modules (ice-9 regex) + (ice-9 match)) + (define (pcf2 name ext) + (invoke + "fontforge" "-lang=ff" + "-c" + (string-append + "Open('" name "');" + "Generate('" + (basename name "pcf") ext + "','ttf')"))) + (for-each (lambda (pcf) + (pcf2 pcf "otf")) + (find-files "." "\\.pcf$")) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((pcf (assoc-ref outputs "out")) + (psf (assoc-ref outputs "psf")) + (otf (assoc-ref outputs "otf")) + (pcf-font-dir (string-append pcf "/share/fonts/termsyn")) + (otf-font-dir (string-append otf "/share/fonts/termsyn-otf")) + (psf-font-dir (string-append psf "/share/kbd/consolefonts"))) + (mkdir-p pcf-font-dir) + (mkdir-p otf-font-dir) + (mkdir-p psf-font-dir) + (for-each (lambda (pcf) + (install-file pcf pcf-font-dir)) + (find-files "." "\\.pcf$")) + (for-each (lambda (psfu) + (install-file psfu psf-font-dir)) + (find-files "." "\\.psfu$")) + (for-each (lambda (otf) + (install-file otf otf-font-dir)) + (find-files "." "\\.otf$"))) + #t))))) + (home-page "https://sourceforge.net/projects/termsyn/") + (synopsis "Monospaced font based on terminus and tamsyn") + (description + "Monospaced font based on terminus and tamsyn. + +This package contains the following outputs: +@enumerate +@item out: pcf font +@item otf: otf font +@item psf: psfu font +@end enumerate\n +") + (license license:gpl2))) -- 2.32.0