From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLDcw-0004KI-JG for guix-patches@gnu.org; Sat, 02 Dec 2017 14:39:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLDcs-0004AL-I1 for guix-patches@gnu.org; Sat, 02 Dec 2017 14:39:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:33528) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eLDcs-0004A2-E4 for guix-patches@gnu.org; Sat, 02 Dec 2017 14:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eLDcs-0006OD-7r for guix-patches@gnu.org; Sat, 02 Dec 2017 14:39:02 -0500 Subject: [bug#29536] [PATCH] gnu: Add cava. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLDc2-0004II-9O for guix-patches@gnu.org; Sat, 02 Dec 2017 14:38:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLDbx-00036l-Lm for guix-patches@gnu.org; Sat, 02 Dec 2017 14:38:09 -0500 Received: from mail-lf0-x232.google.com ([2a00:1450:4010:c07::232]:44844) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eLDbx-00031h-Bp for guix-patches@gnu.org; Sat, 02 Dec 2017 14:38:05 -0500 Received: by mail-lf0-x232.google.com with SMTP id x204so15077809lfa.11 for ; Sat, 02 Dec 2017 11:38:02 -0800 (PST) Received: from magnolia (ppp78-37-138-34.pppoe.avangarddsl.ru. [78.37.138.34]) by smtp.gmail.com with ESMTPSA id p25sm1658164lfg.49.2017.12.02.11.38.00 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 02 Dec 2017 11:38:00 -0800 (PST) From: Oleg Pykhalov Date: Sat, 02 Dec 2017 22:37:53 +0300 Message-ID: <87efocor8u.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-cava.patch Content-Description: [PATCH] gnu: Add cava. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 29536@debbugs.gnu.org >From 972835bcf71b67d2bc12c3d7a6bb80f51f0d0efa Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sat, 2 Dec 2017 22:36:36 +0300 Subject: [PATCH] gnu: Add cava. * gnu/packages/audio.scm (cava): New variable. --- gnu/packages/audio.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index da9314392..347f379e3 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -3087,3 +3087,46 @@ 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 cava + (package + (name "cava") + (version "0.6.0") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/karlstav/cava/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1p24lz3h4d0h82ffylqr7mq8a8x1c66flm2r2bsv1liw51n1rma2")))) + (build-system gnu-build-system) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool))) + (inputs + `(("fftw" ,fftw) + ("ncurses" ,ncurses) + ("pulseaudio" ,pulseaudio))) + (arguments + `(#:configure-flags + (list (string-append "PREFIX=" %output) + (string-append "FONT_DIR=" %output "/usr/share/consolefonts")) + #:make-flags ; Add $libdir to the RUNPATH of all the executables. + (let ((lib (string-append %output "/lib"))) + (list (string-append "cava_LDFLAGS = -L" lib " -Wl,-rpath " lib))) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'bootstrap + (lambda _ + (setenv "HOME" (getcwd)) + (zero? (system* "sh" "autogen.sh")))) + (add-before 'build 'make-cava-ldflags + (lambda _ (mkdir-p (string-append (assoc-ref %outputs "out") "/lib"))))))) + (home-page "https://karlstav.github.io/cava/") + (synopsis "CLI audio visualizer for Alsa, MPD and Pulseaudio") + (description "@code{cava} provides a command line audio visualizer for +MPD, Alsa and Pulseaudio.") + (license license:expat))) -- 2.15.0