all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#73045] [PATCH] gnu: Add ansifilter.
@ 2024-09-05 14:48 Ahmad Draidi via Guix-patches via
  2024-10-04 19:40 ` Ludovic Courtès
  2024-10-19  6:15 ` [bug#73045] [PATCH v2] " Ahmad Draidi via Guix-patches via
  0 siblings, 2 replies; 5+ messages in thread
From: Ahmad Draidi via Guix-patches via @ 2024-09-05 14:48 UTC (permalink / raw)
  To: 73045; +Cc: Ahmad Draidi

* 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





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#73045] [PATCH] gnu: Add ansifilter.
  2024-09-05 14:48 [bug#73045] [PATCH] gnu: Add ansifilter Ahmad Draidi via Guix-patches via
@ 2024-10-04 19:40 ` Ludovic Courtès
  2024-10-05  4:35   ` Ahmad Draidi via Guix-patches via
  2024-10-19  6:15 ` [bug#73045] [PATCH v2] " Ahmad Draidi via Guix-patches via
  1 sibling, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2024-10-04 19:40 UTC (permalink / raw)
  To: Ahmad Draidi; +Cc: 73045

Hi,

Ahmad Draidi <a.r.draidi@redscript.org> skribis:

> * gnu/packages/pretty-print.scm (ansifilter): New variable.
>
> Change-Id: I12e86080f5f39c52ea1def6084b9a5e6cc7af92c

I get:

  r:sha256 hash mismatch for /gnu/store/dshvl4cylvc4cjaxy3s7bqrq06s87nh7-ansifilter-2.21-checkout:
    expected hash: 0gnxf0mnb8pfgpx2324gbwyz7dh4xh5jvnigg768rs7dh329w48l
    actual hash:   1pvx4l0k8dw642yisf1wahdqcfw36ny6v3v1lcshvxiqxmwrna3d

Could you check?

Apart from that it LGTM.

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#73045] [PATCH] gnu: Add ansifilter.
  2024-10-04 19:40 ` Ludovic Courtès
@ 2024-10-05  4:35   ` Ahmad Draidi via Guix-patches via
  2024-10-14 11:34     ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Ahmad Draidi via Guix-patches via @ 2024-10-05  4:35 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 73045

Hello Ludovic,

Ludovic Courtès <ludo@gnu.org> writes:

> Hi,
>
> Ahmad Draidi <a.r.draidi@redscript.org> skribis:
>
>> * gnu/packages/pretty-print.scm (ansifilter): New variable.
>>
>> Change-Id: I12e86080f5f39c52ea1def6084b9a5e6cc7af92c
>
> I get:
>
>   r:sha256 hash mismatch for 
>   /gnu/store/dshvl4cylvc4cjaxy3s7bqrq06s87nh7-ansifilter-2.21-checkout:
>     expected hash: 
>     0gnxf0mnb8pfgpx2324gbwyz7dh4xh5jvnigg768rs7dh329w48l
>     actual hash: 
>     1pvx4l0k8dw642yisf1wahdqcfw36ny6v3v1lcshvxiqxmwrna3d
>
> Could you check?

This is really weird. Just now I downloaded the mbox from this 
issue and did:

  git pull
  git reset --hard origin/master
  git am ~/Downloads/73045-0.mbox

And then inside a guix shell:

  ./bootstrap && ./configure && ./pre-inst-env make
  ./pre-inst-env guix build ansifilter --check

And can see it builds successfully.

  successfully built 
  /gnu/store/fjzyi5v42i5z6cdq89g2vhv0d8ipj9ns-ansifilter-2.21.drv

>
> Apart from that it LGTM.
>
> Thanks,
> Ludo’.

Thanks,
Ahmad




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#73045] [PATCH] gnu: Add ansifilter.
  2024-10-05  4:35   ` Ahmad Draidi via Guix-patches via
@ 2024-10-14 11:34     ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2024-10-14 11:34 UTC (permalink / raw)
  To: Ahmad Draidi; +Cc: 73045

Hi,

Ahmad Draidi <a.r.draidi@redscript.org> skribis:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> Hi,
>>
>> Ahmad Draidi <a.r.draidi@redscript.org> skribis:
>>
>>> * gnu/packages/pretty-print.scm (ansifilter): New variable.
>>>
>>> Change-Id: I12e86080f5f39c52ea1def6084b9a5e6cc7af92c
>>
>> I get:
>>
>>   r:sha256 hash mismatch for
>> /gnu/store/dshvl4cylvc4cjaxy3s7bqrq06s87nh7-ansifilter-2.21-checkout:
>>     expected hash:
>> 0gnxf0mnb8pfgpx2324gbwyz7dh4xh5jvnigg768rs7dh329w48l
>>     actual hash:
>> 1pvx4l0k8dw642yisf1wahdqcfw36ny6v3v1lcshvxiqxmwrna3d
>>
>> Could you check?
>
> This is really weird. Just now I downloaded the mbox from this issue
> and did:
>
>  git pull
>  git reset --hard origin/master
>  git am ~/Downloads/73045-0.mbox

Perhaps the source was still in your store though.

What if you run: ./pre-inst-env guix build -S ansifilter --check -K
?

Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#73045] [PATCH v2] gnu: Add ansifilter.
  2024-09-05 14:48 [bug#73045] [PATCH] gnu: Add ansifilter Ahmad Draidi via Guix-patches via
  2024-10-04 19:40 ` Ludovic Courtès
@ 2024-10-19  6:15 ` Ahmad Draidi via Guix-patches via
  1 sibling, 0 replies; 5+ messages in thread
From: Ahmad Draidi via Guix-patches via @ 2024-10-19  6:15 UTC (permalink / raw)
  To: 73045; +Cc: Ahmad Draidi, Ahmad Draidi, Ludovic Courtès

* gnu/packages/pretty-print.scm (ansifilter): New variable.

Change-Id: I12e86080f5f39c52ea1def6084b9a5e6cc7af92c
---

Hello Ludo,

You were right. The source must have been cached in my store.

I updated the hash and built the package successfully.

Thanks!
Ahmad

 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 621dc8bf9c..02ab137e59 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 "1pvx4l0k8dw642yisf1wahdqcfw36ny6v3v1lcshvxiqxmwrna3d"))))
+    (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: 6757bfdfc0b22a1e23a3d33566155550182244fc
-- 
2.46.0





^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-10-19 12:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-05 14:48 [bug#73045] [PATCH] gnu: Add ansifilter Ahmad Draidi via Guix-patches via
2024-10-04 19:40 ` 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.