GNU bug report logs -
#29535
[PATCH] gnu: Add cli-visualizer.
Previous Next
Reported by: Oleg Pykhalov <go.wigust <at> gmail.com>
Date: Sat, 2 Dec 2017 19:11:02 UTC
Severity: normal
Tags: patch
Done: Oleg Pykhalov <go.wigust <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 29535 in the body.
You can then email your comments to 29535 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#29535
; Package
guix-patches
.
(Sat, 02 Dec 2017 19:11:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Oleg Pykhalov <go.wigust <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sat, 02 Dec 2017 19:11:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[0001-gnu-Add-cli-visualizer.patch (text/x-patch, inline)]
From 54a00afb4e628019dbfe3f9b7f09a553dab3cfb9 Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <go.wigust <at> gmail.com>
Date: Sat, 2 Dec 2017 22:03:13 +0300
Subject: [PATCH] gnu: Add cli-visualizer.
* gnu/packages/audio.scm (cli-visualizer): New variable.
---
gnu/packages/audio.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index da9314392..6ca250f0c 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -3087,3 +3087,43 @@ mixers.")
customized and extended using either the s7 Scheme implementation (included in
the Snd sources), Ruby, or Forth.")
(license (license:non-copyleft "file://COPYING"))))
+
+(define-public cli-visualizer
+ (package
+ (name "cli-visualizer")
+ (version "1.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/dpayne/cli-visualizer/archive/"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "07zkm87f2fr8kc6531zrkya7q81sdanm6813y2f54mg13g41y6hi"))))
+ (build-system gnu-build-system)
+ (inputs
+ `(("fftw" ,fftw)
+ ("ncurses" ,ncurses)
+ ("pulseaudio" ,pulseaudio)
+ ("which" ,which)))
+ (arguments
+ '(#:tests? #f ; no tests
+ #:make-flags
+ (list (string-append "PREFIX=" %output "/bin/") "ENABLE_PULSE=1")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'remove-sudo
+ (lambda _ (substitute* "install.sh" (("sudo") ""))))
+ (add-before 'install 'make-prefix
+ (lambda _ (mkdir-p (string-append (assoc-ref %outputs "out") "/bin"))))
+ (add-after 'install 'data
+ (lambda _ (for-each (lambda (file)
+ (install-file file "/share/doc"))
+ (list "asound_alsa.conf" "asound_alsa_with_dmix.conf"
+ "basic_colors" "blue" "config" "rainbow")))))))
+ (home-page "https://github.com/dpayne/cli-visualizer/")
+ (synopsis "CLI audio visualizer")
+ (description "@code{cli-visualizer} provides a command line audio
+visualizer for MPD, Alsa and Pulseaudio.")
+ (license license:expat)))
--
2.15.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#29535
; Package
guix-patches
.
(Sun, 03 Dec 2017 07:37:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 29535 <at> debbugs.gnu.org (full text, mbox):
[0001-gnu-Add-cli-visualizer.patch (text/x-patch, inline)]
From 83d6e5b19813bc53a638f6fbbc007621a9a58648 Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <go.wigust <at> gmail.com>
Date: Sat, 2 Dec 2017 22:03:13 +0300
Subject: [PATCH] gnu: Add cli-visualizer.
* gnu/packages/audio.scm (cli-visualizer): New variable.
---
gnu/packages/audio.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index da9314392..3816cf98f 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -3087,3 +3087,45 @@ mixers.")
customized and extended using either the s7 Scheme implementation (included in
the Snd sources), Ruby, or Forth.")
(license (license:non-copyleft "file://COPYING"))))
+
+(define-public cli-visualizer
+ (package
+ (name "cli-visualizer")
+ (version "1.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/dpayne/cli-visualizer/archive/"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "07zkm87f2fr8kc6531zrkya7q81sdanm6813y2f54mg13g41y6hi"))))
+ (build-system gnu-build-system)
+ (inputs
+ `(("fftw" ,fftw)
+ ("ncurses" ,ncurses)
+ ("pulseaudio" ,pulseaudio)
+ ("which" ,which)))
+ (arguments
+ '(#:tests? #f ; no tests
+ #:make-flags
+ (list (string-append "PREFIX=" %output "/bin/") "ENABLE_PULSE=1")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'remove-sudo
+ (lambda _ (substitute* "install.sh" (("sudo") ""))))
+ (add-before 'install 'make-prefix
+ (lambda _ (mkdir-p (string-append (assoc-ref %outputs "out") "/bin"))))
+ (add-after 'install 'data
+ (lambda _
+ (for-each (lambda (file)
+ (install-file file
+ (string-append (assoc-ref %outputs "out")
+ "/share/doc")))
+ (find-files "examples")))))))
+ (home-page "https://github.com/dpayne/cli-visualizer/")
+ (synopsis "CLI audio visualizer")
+ (description "@code{cli-visualizer} provides a command line audio
+visualizer for MPD, Alsa and Pulseaudio.")
+ (license license:expat)))
--
2.15.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#29535
; Package
guix-patches
.
(Tue, 05 Dec 2017 12:47:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 29535 <at> debbugs.gnu.org (full text, mbox):
Oleg Pykhalov <go.wigust <at> gmail.com> skribis:
>>From 54a00afb4e628019dbfe3f9b7f09a553dab3cfb9 Mon Sep 17 00:00:00 2001
> From: Oleg Pykhalov <go.wigust <at> gmail.com>
> Date: Sat, 2 Dec 2017 22:03:13 +0300
> Subject: [PATCH] gnu: Add cli-visualizer.
>
> * gnu/packages/audio.scm (cli-visualizer): New variable.
[...]
> + (inputs
> + `(("fftw" ,fftw)
> + ("ncurses" ,ncurses)
> + ("pulseaudio" ,pulseaudio)
> + ("which" ,which)))
Most likely ‘which’ should be in ‘native-inputs’ (it’s not referred to
at run time, is it?).
Besides, I’d encourage you to not align inputs like this, for
consistency with the rest of the code, though that’s not that big a
deal. :-)
> + (add-after 'unpack 'remove-sudo
> + (lambda _ (substitute* "install.sh" (("sudo") ""))))
> + (add-before 'install 'make-prefix
> + (lambda _ (mkdir-p (string-append (assoc-ref %outputs "out") "/bin"))))
> + (add-after 'install 'data
> + (lambda _ (for-each (lambda (file)
> + (install-file file "/share/doc"))
> + (list "asound_alsa.conf" "asound_alsa_with_dmix.conf"
> + "basic_colors" "blue" "config" "rainbow")))))))
Nitpick: please write the lambda’s body on a separate line, and make
sure each phase returns a Boolean:
(lambda _
(substitute* …)
#t)
> + (synopsis "CLI audio visualizer")
s/CLI/Command-line/
> + (description "@code{cli-visualizer} provides a command line audio
> +visualizer for MPD, Alsa and Pulseaudio.")
s/Alsa/ALSA/
It would be nice if you could clarify in the description what “audio
visualizer” means. Perhaps something like:
It can display fast-Fourier transforms (FFTs) of the sound being
played, as well as other graphical representations.
OK with these changes, thank you!
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#29535
; Package
guix-patches
.
(Mon, 11 Dec 2017 21:10:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 29535 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello Ludovic,
Thank you for review!
ludo <at> gnu.org (Ludovic Courtès) writes:
> [...]
>
> OK with these changes, thank you!
I applied all your notes and also found included tests in cli-visualizer
Pushed as adedbe95d4896c86c26b2b3ad8408e49f52e9796
Oleg.
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Oleg Pykhalov <go.wigust <at> gmail.com>
:
You have taken responsibility.
(Mon, 11 Dec 2017 21:10:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Oleg Pykhalov <go.wigust <at> gmail.com>
:
bug acknowledged by developer.
(Mon, 11 Dec 2017 21:10:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 09 Jan 2018 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 224 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.