From patchwork Thu Sep 5 14:48:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ahmad Draidi X-Patchwork-Id: 67634 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 F08D727BBEA; Thu, 5 Sep 2024 15:51:17 +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=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,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 F06FA27BBE2 for ; Thu, 5 Sep 2024 15:51:16 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smDp5-00087k-AX; Thu, 05 Sep 2024 10:50:59 -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 1smDp3-00087b-Ur for guix-patches@gnu.org; Thu, 05 Sep 2024 10:50:57 -0400 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 1smDp3-0006YV-LJ for guix-patches@gnu.org; Thu, 05 Sep 2024 10:50:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=8osleUurd5SH9NGfCg7TtK//VQ+4/MKTSzy/pSv7+6I=; b=nHp5DUTDdNTZjrR6k8ZQOuIT+ozv9/Lzlltiv79jv4PhWDE4mE9sJFXzfsVWLXuCL637uZY3pTbY05V9mIQ23CBVID1u/cf8BosO2K2ZLorCPzfW7i2DfH5METiHyKmBybq4qThrRUQ9IlQgQ7xycQEqOvhlLsQAAfVeikCi9Ra7gsRjFc2G8dlDt4T8t1ucOczL3JtfrGy6pEyQ1qn7bTF9ZXR5YPf+1xeEe7C5W0KyhhjxPxwyXU1xT9O5B0SvNuMa6er3VAxqJGTe+kYZGjQURYSF21I+dtgQn9ve+VD4qjpEj5SpS96BqpKzFBC/Wn9yQZ0eGILcUTGWQhYX4w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smDq6-0007kD-HZ for guix-patches@gnu.org; Thu, 05 Sep 2024 10:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73045] [PATCH] gnu: Add ansifilter. Resent-From: Ahmad Draidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 05 Sep 2024 14:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73045 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73045@debbugs.gnu.org Cc: Ahmad Draidi X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172554789229640 (code B ref -1); Thu, 05 Sep 2024 14:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Sep 2024 14:51:32 +0000 Received: from localhost ([127.0.0.1]:37815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smDpY-0007hf-Hj for submit@debbugs.gnu.org; Thu, 05 Sep 2024 10:51:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:44904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smDpX-0007hY-45 for submit@debbugs.gnu.org; Thu, 05 Sep 2024 10:51:28 -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 1smDoP-00084E-W8 for guix-patches@gnu.org; Thu, 05 Sep 2024 10:50:19 -0400 Received: from rainycloud.ext.redscript.org ([103.105.48.212]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1smDoM-0006IV-Rr for guix-patches@gnu.org; Thu, 05 Sep 2024 10:50:17 -0400 Received: from localhost.localdomain (bba-92-97-218-122.alshamil.net.ae [92.97.218.122]) (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 08A26614; Thu, 5 Sep 2024 14:50:00 +0000 (UTC) Date: Thu, 5 Sep 2024 18:48:51 +0400 Message-ID: X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Received-SPF: pass client-ip=103.105.48.212; envelope-from=a.r.draidi@redscript.org; helo=rainycloud.ext.redscript.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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-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/pretty-print.scm (ansifilter): New variable. Change-Id: I12e86080f5f39c52ea1def6084b9a5e6cc7af92c --- gnu/packages/pretty-print.scm | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) base-commit: 993d6d2e7be4dac738629c76a51058f4dc5bc449 diff --git a/gnu/packages/pretty-print.scm b/gnu/packages/pretty-print.scm index d8ff1664b4..baf1ec4f7d 100644 --- a/gnu/packages/pretty-print.scm +++ b/gnu/packages/pretty-print.scm @@ -124,6 +124,49 @@ (define-public a2ps special cases, such as pretty-printing @samp{-help} output.") (license gpl3+))) +(define-public ansifilter + (package + (name "ansifilter") + (version "2.21") + (outputs (list "out" "gui")) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/saalen/ansifilter") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0gnxf0mnb8pfgpx2324gbwyz7dh4xh5jvnigg768rs7dh329w48l")))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f ;no tests + #:phases #~(modify-phases %standard-phases + (delete 'configure) ;no configure script + (add-after 'build 'build-gui + (lambda* (#:key outputs #:allow-other-keys) + (invoke "make" "gui"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (invoke "make" "install" + (string-append "PREFIX=" out))))) + (add-after 'install 'install-gui + (lambda* (#:key outputs #:allow-other-keys) + (let ((gui (assoc-ref outputs "gui"))) + (mkdir-p (string-append gui "/bin")) + (invoke "make" "install-gui" + (string-append "PREFIX=" gui)))))))) + (inputs (list qtbase-5)) + (home-page "http://andre-simon.de/doku/ansifilter/en/ansifilter.html") + (synopsis "ANSI sequence filter") + (description + "Ansifilter handles text files containing ANSI terminal escape codes. +The command sequences may be stripped or be interpreted to generate formatted +output (HTML, RTF, TeX, LaTeX, BBCode, Pango).") + (license gpl3+))) + (define-public trueprint (package (name "trueprint")