gnu: cli-visualizer: Update to 1.8.
* gnu/packages/audio.scm (cli-visualizer): Update to 1.8. [build-system]: Switch to cmake-build-system. [inputs]: Remove googletest. [arguments]: Disable tests. Remove #:make-flags and all phases apart from ‘install-examples’, previously ‘data’.
This commit is contained in:
parent
2e5438e0f4
commit
e121cb8706
1 changed files with 20 additions and 31 deletions
|
@ -3577,52 +3577,41 @@ the following features:
|
||||||
(define-public cli-visualizer
|
(define-public cli-visualizer
|
||||||
(package
|
(package
|
||||||
(name "cli-visualizer")
|
(name "cli-visualizer")
|
||||||
(version "1.6")
|
(version "1.8")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/dpayne/cli-visualizer.git")
|
(url "https://github.com/dpayne/cli-visualizer.git")
|
||||||
(commit version)))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "003mbbwsz43mg3d7llphpypqa9g7rs1p1cdbqi1mbc2bfrc1gcq2"))))
|
||||||
"0mirp8bk398di5xyq95iprmdyvplfghxqmrfj7jdnpy554vx7ppc"))))
|
(build-system cmake-build-system)
|
||||||
(build-system gnu-build-system)
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("which" ,which)))
|
;; TODO: Try using the latest googletest for versions > 1.8.
|
||||||
|
`( ;; ("googletest" ,googletest-1.8)
|
||||||
|
("which" ,which)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("fftw" ,fftw)
|
`(("fftw" ,fftw)
|
||||||
;; TODO: Try using the latest googletest for versions > 1.6.
|
|
||||||
("googletest" ,googletest-1.8)
|
|
||||||
("ncurses" ,ncurses)
|
("ncurses" ,ncurses)
|
||||||
("pulseaudio" ,pulseaudio)))
|
("pulseaudio" ,pulseaudio)))
|
||||||
(arguments
|
(arguments
|
||||||
'(#:test-target "test"
|
'(#:tests? #f
|
||||||
#:make-flags
|
;; XXX Enable tests after patching them to use the system googletest.
|
||||||
(list (string-append "PREFIX=" %output "/bin/") "ENABLE_PULSE=1")
|
;; #:configure-flags (list "-DVIS_WITH_TESTS=true")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'remove-sudo
|
(add-after 'install 'install-examples
|
||||||
(lambda _
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(substitute* "install.sh" (("sudo") ""))
|
(with-directory-excursion "../source/examples"
|
||||||
#t))
|
(delete-file "mac_osx_config")
|
||||||
(add-before 'check 'set-check-environment
|
(for-each (lambda (file)
|
||||||
(lambda _
|
(install-file file
|
||||||
(setenv "CXX" "g++")
|
(string-append
|
||||||
(setenv "CC" "gcc")
|
(assoc-ref outputs "out")
|
||||||
#t))
|
"/share/doc")))
|
||||||
(add-before 'install 'make-prefix
|
(find-files ".")))
|
||||||
(lambda _
|
|
||||||
(mkdir-p (string-append (assoc-ref %outputs "out") "/bin"))
|
|
||||||
#t))
|
|
||||||
(add-after 'install 'data
|
|
||||||
(lambda _
|
|
||||||
(for-each (lambda (file)
|
|
||||||
(install-file file
|
|
||||||
(string-append (assoc-ref %outputs "out")
|
|
||||||
"/share/doc")))
|
|
||||||
(find-files "examples"))
|
|
||||||
#t)))))
|
#t)))))
|
||||||
(home-page "https://github.com/dpayne/cli-visualizer/")
|
(home-page "https://github.com/dpayne/cli-visualizer/")
|
||||||
(synopsis "Command-line audio visualizer")
|
(synopsis "Command-line audio visualizer")
|
||||||
|
|
Reference in a new issue