unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#35878] [PATCH] gnu: Add chafa.
@ 2019-05-24  9:33 guy fleury iteriteka
  2019-05-27 14:52 ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: guy fleury iteriteka @ 2019-05-24  9:33 UTC (permalink / raw)
  To: 35878

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 1787 bytes --]

* gnu/packages/image-viewers.scm(chaffa): New variable.
---
 gnu/packages/image-viewers.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm
index 82b44a4..fc94242 100644
--- a/gnu/packages/image-viewers.scm
+++ b/gnu/packages/image-viewers.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2017 nee <nee-git@hidamari.blue>
 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2019 Guy Fleury Iteriteka <hoonandon@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -429,3 +430,28 @@ imaging.  It supports several HDR and LDR image formats, and it can:
 a comic and manga reader.  It supports a variety of container formats
 including CBZ, CB7, CBT, LHA.")
     (license license:gpl2+)))
+
+(define-public chafa
+  (package
+    (name "chafa")
+    (version "1.0.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://hpjansson.org/chafa/releases/chafa-"
+                                  version ".tar.xz"))
+              (sha256
+               (base32
+                "00cf2z52az0z6bzc3hfm4l8infipy5ck410wqmbaybd2csjr3m29"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("glib"        ,glib)
+       ("imagemagick" ,imagemagick)))
+    (synopsis "Terminal Graphics for the 21st Century")
+    (description
+     "Chafa is a command-line utility that converts all kinds of images, 
+including animated GIFs, into ANSI/Unicode character output that can be 
+displayed in a terminal.")
+    (home-page "https://hpjansson.org/chafa/")
+    (license license:lgpl3+)))
-- 
2.21.0

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

* [bug#35878] [PATCH] gnu: Add chafa.
  2019-05-24  9:33 [bug#35878] [PATCH] gnu: Add chafa guy fleury iteriteka
@ 2019-05-27 14:52 ` Ludovic Courtès
  2019-05-29  7:44   ` guy fleury iteriteka
  0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2019-05-27 14:52 UTC (permalink / raw)
  To: guy fleury iteriteka; +Cc: 35878

[-- Attachment #1: Type: text/plain, Size: 434 bytes --]

Hi,

guy fleury iteriteka <hoonandon@gmail.com> skribis:

> * gnu/packages/image-viewers.scm(chaffa): New variable.

I’d suggest the changes below.

Additionally, this code detects SSE4.1 and related instruction set
extensions at configuration time.  As a result, I think the resulting
code may not run on all x86_64 machines.

Could you investigate this and see how we can get a generic binary?

Thanks,
Ludo’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 942 bytes --]

diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm
index fc94242ac6..d947f2d7eb 100644
--- a/gnu/packages/image-viewers.scm
+++ b/gnu/packages/image-viewers.scm
@@ -446,12 +446,12 @@ including CBZ, CB7, CBT, LHA.")
     (native-inputs
      `(("pkg-config" ,pkg-config)))
     (inputs
-     `(("glib"        ,glib)
+     `(("glib" ,glib)
        ("imagemagick" ,imagemagick)))
-    (synopsis "Terminal Graphics for the 21st Century")
+    (synopsis "Convert images to ANSI/Unicode characters")
     (description
-     "Chafa is a command-line utility that converts all kinds of images, 
-including animated GIFs, into ANSI/Unicode character output that can be 
+     "Chafa is a command-line utility that converts all kinds of images,
+including animated GIFs, into ANSI/Unicode character output that can be
 displayed in a terminal.")
     (home-page "https://hpjansson.org/chafa/")
     (license license:lgpl3+)))

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

* [bug#35878] [PATCH] gnu: Add chafa.
  2019-05-27 14:52 ` Ludovic Courtès
@ 2019-05-29  7:44   ` guy fleury iteriteka
  2019-06-29 15:23     ` guy fleury iteriteka
  0 siblings, 1 reply; 5+ messages in thread
From: guy fleury iteriteka @ 2019-05-29  7:44 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 35878

[-- Attachment #1: Type: text/plain, Size: 554 bytes --]

Hi,

I will try!
Le 27 mai 2019 16:52, "Ludovic Courtès" <ludo@gnu.org> a écrit :

> Hi,
>
> guy fleury iteriteka <hoonandon@gmail.com> skribis:
>
> > * gnu/packages/image-viewers.scm(chaffa): New variable.
>
> I’d suggest the changes below.
>
> Additionally, this code detects SSE4.1 and related instruction set
> extensions at configuration time.  As a result, I think the resulting
> code may not run on all x86_64 machines.
>
> Could you investigate this and see how we can get a generic binary?
>
> Thanks,
> Ludo’.
>
>

[-- Attachment #2: Type: text/html, Size: 898 bytes --]

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

* [bug#35878] [PATCH] gnu: Add chafa.
  2019-05-29  7:44   ` guy fleury iteriteka
@ 2019-06-29 15:23     ` guy fleury iteriteka
  2019-07-02 15:19       ` bug#35878: " Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: guy fleury iteriteka @ 2019-06-29 15:23 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 35878

[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]

Hello Ludovic,

Sorry for taking so long time.
I discus with the developper upstream. Here is what he tells me:
---------------------------------
Even if it builds SSE support, it will only be used at runtime if the
platform supports it. It uses CPUID internally to detect the CPU
capabilities when run.
-------------------------------

He will also add a note to clarify things in the next release!

Thanks.
Le 29 mai 2019 09:44, "guy fleury iteriteka" <hoonandon@gmail.com> a écrit :

> Hi,
>
> I will try!
> Le 27 mai 2019 16:52, "Ludovic Courtès" <ludo@gnu.org> a écrit :
>
>> Hi,
>>
>> guy fleury iteriteka <hoonandon@gmail.com> skribis:
>>
>> > * gnu/packages/image-viewers.scm(chaffa): New variable.
>>
>> I’d suggest the changes below.
>>
>> Additionally, this code detects SSE4.1 and related instruction set
>> extensions at configuration time.  As a result, I think the resulting
>> code may not run on all x86_64 machines.
>>
>> Could you investigate this and see how we can get a generic binary?
>>
>> Thanks,
>> Ludo’.
>>
>>

[-- Attachment #2: Type: text/html, Size: 1744 bytes --]

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

* bug#35878: [PATCH] gnu: Add chafa.
  2019-06-29 15:23     ` guy fleury iteriteka
@ 2019-07-02 15:19       ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2019-07-02 15:19 UTC (permalink / raw)
  To: guy fleury iteriteka; +Cc: 35878-done

Hi guy,

guy fleury iteriteka <hoonandon@gmail.com> skribis:

> Sorry for taking so long time.
> I discus with the developper upstream. Here is what he tells me:
> ---------------------------------
> Even if it builds SSE support, it will only be used at runtime if the
> platform supports it. It uses CPUID internally to detect the CPU
> capabilities when run.
> -------------------------------

Oh indeed, I see that ‘chafa-features.h’ does the right thing.

Applied, thanks for checking!

Ludo’.

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

end of thread, other threads:[~2019-07-02 15:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-24  9:33 [bug#35878] [PATCH] gnu: Add chafa guy fleury iteriteka
2019-05-27 14:52 ` Ludovic Courtès
2019-05-29  7:44   ` guy fleury iteriteka
2019-06-29 15:23     ` guy fleury iteriteka
2019-07-02 15:19       ` bug#35878: " Ludovic Courtès

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).