1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
4 ;;; This file is part of GNU Guix.
6 ;;; GNU Guix is free software; you can redistribute it and/or modify it
7 ;;; under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 3 of the License, or (at
9 ;;; your option) any later version.
11 ;;; GNU Guix is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;; GNU General Public License for more details.
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19 (define-module (gnu packages orpheus)
20 #:use-module (guix licenses)
21 #:use-module (guix packages)
22 #:use-module (guix download)
23 #:use-module (guix build-system gnu)
24 #:use-module (gnu packages)
25 #:use-module (gnu packages ncurses)
26 #:use-module (gnu packages mp3)
27 #:use-module (gnu packages which)
28 #:use-module (gnu packages xiph)
29 #:use-module (gnu packages xml))
31 (define-public orpheus
38 (uri (string-append "http://thekonst.net/download/orpheus-"
42 "1xbgxq8fybwhm51nw9hvvrgi873qzkc2qvmy15d2m2hw2yqa99hq"))
43 (patches (list (search-patch "orpheus-cast-errors-and-includes.patch")))))
44 (build-system gnu-build-system)
46 `(("ncurses" ,ncurses)
47 ("libvorbis" ,libvorbis)
48 ("vorbis-tools" ,vorbis-tools)
57 (lambda* (#:key outputs #:allow-other-keys)
58 ;; This old `configure' script does not support variables passed as
60 (let ((out (assoc-ref outputs "out")))
61 (setenv "CONFIG_SHELL" (which "bash"))
62 (setenv "SHELL" (which "bash"))
63 (setenv "LIBS" "-logg") ;doesn't declare its use of libogg
65 (system* "./configure" (string-append "--prefix=" out)))))
67 'configure 'configure-players
68 (lambda* (#:key inputs #:allow-other-keys)
69 ;; To avoid propagating the mpg321 and vorbis-tools inputs, we can
70 ;; make the orpheus application execute the needed players from the
72 (let ((ogg123 (string-append (assoc-ref inputs "vorbis-tools")
74 (mpg321 (string-append (assoc-ref inputs "mpg321")
76 (which (string-append (assoc-ref inputs "which")
78 (substitute* "src/orpheusconf.cc"
81 (("mpg321") mpg321))))
85 (substitute* '("src/mp3track.cc"
88 (("/bin/sh") (which "bash"))))
90 (home-page "http://thekonst.net/en/orpheus")
91 (synopsis "Text-mode audio player")
93 "Orpheus is a light-weight text mode menu- and window-driven audio player
94 application for CDs, internet stream broadcasts, and files in MP3 and Vorbis