From: Ahmad Draidi via Guix-patches via <guix-patches@gnu.org>
To: 73045@debbugs.gnu.org
Cc: Ahmad Draidi <a.r.draidi@redscript.org>
Subject: [bug#73045] [PATCH] gnu: Add ansifilter.
Date: Thu, 5 Sep 2024 18:48:51 +0400 [thread overview]
Message-ID: <cea3e6a3d50a1d53518a83c32b2b057303b49045.1725547731.git.a.r.draidi@redscript.org> (raw)
* gnu/packages/pretty-print.scm (ansifilter): New variable.
Change-Id: I12e86080f5f39c52ea1def6084b9a5e6cc7af92c
---
gnu/packages/pretty-print.scm | 43 +++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
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")
base-commit: 993d6d2e7be4dac738629c76a51058f4dc5bc449
--
2.45.2
next reply other threads:[~2024-09-05 14:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-05 14:48 Ahmad Draidi via Guix-patches via [this message]
2024-10-04 19:40 ` [bug#73045] [PATCH] gnu: Add ansifilter Ludovic Courtès
2024-10-05 4:35 ` Ahmad Draidi via Guix-patches via
2024-10-14 11:34 ` Ludovic Courtès
2024-10-19 6:15 ` [bug#73045] [PATCH v2] " Ahmad Draidi 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=cea3e6a3d50a1d53518a83c32b2b057303b49045.1725547731.git.a.r.draidi@redscript.org \
--to=guix-patches@gnu.org \
--cc=73045@debbugs.gnu.org \
--cc=a.r.draidi@redscript.org \
/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).