gnu: emacs-sly: Update to 20200228.
[jackhill/guix/guix.git] / gnu / packages / mpd.scm
CommitLineData
892d8a81 1;;; GNU Guix --- Functional package management for GNU
927ff2c3 2;;; Copyright © 2014, 2015 David Thompson <dthompson2@worcester.edu>
b0193286 3;;; Copyright © 2014 Andreas Enge <andreas@enge.fr>
009c5b5c 4;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
29a7c98a 5;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
e42dc624 6;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
3f6ed3b2 7;;; Copyright © 2016, 2018, 2019, 2020 Leo Famulari <leo@famulari.name>
facc4cff 8;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
5ce0aab3 9;;; Copyright © 2019 Evan Straw <evan.straw99@gmail.com>
892d8a81
DT
10;;;
11;;; This file is part of GNU Guix.
12;;;
13;;; GNU Guix is free software; you can redistribute it and/or modify it
14;;; under the terms of the GNU General Public License as published by
15;;; the Free Software Foundation; either version 3 of the License, or (at
16;;; your option) any later version.
17;;;
18;;; GNU Guix is distributed in the hope that it will be useful, but
19;;; WITHOUT ANY WARRANTY; without even the implied warranty of
20;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21;;; GNU General Public License for more details.
22;;;
23;;; You should have received a copy of the GNU General Public License
24;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
25
26(define-module (gnu packages mpd)
27 #:use-module (gnu packages)
7dc68701 28 #:use-module ((guix licenses) #:prefix license:)
892d8a81
DT
29 #:use-module (guix packages)
30 #:use-module (guix download)
5ce0aab3 31 #:use-module (guix git-download)
29a7c98a 32 #:use-module (guix utils)
892d8a81 33 #:use-module (guix build-system gnu)
7da9e792 34 #:use-module (guix build-system meson)
efe0b143 35 #:use-module (guix build-system python)
7dc68701 36 #:use-module (gnu packages avahi)
e42dc624 37 #:use-module (gnu packages boost)
6c86cef5
CB
38 #:use-module (gnu packages gettext)
39 #:use-module (gnu packages gnome)
40 #:use-module (gnu packages gtk)
58acabc3 41 #:use-module (gnu packages icu4c)
e42dc624 42 #:use-module (gnu packages readline)
ac257f12 43 #:use-module (gnu packages check)
7dc68701
DT
44 #:use-module (gnu packages compression)
45 #:use-module (gnu packages curl)
99828fa7 46 #:use-module (gnu packages documentation)
7dc68701
DT
47 #:use-module (gnu packages glib)
48 #:use-module (gnu packages linux)
49 #:use-module (gnu packages mp3)
4d01bd3c 50 #:use-module (gnu packages ncurses)
cd220e60 51 #:use-module (gnu packages pcre)
7dc68701 52 #:use-module (gnu packages pkg-config)
efe0b143 53 #:use-module (gnu packages python)
7dc68701 54 #:use-module (gnu packages pulseaudio)
9d0c291e 55 #:use-module (gnu packages sphinx)
cd0322a3 56 #:use-module (gnu packages sqlite)
7dc68701 57 #:use-module (gnu packages video)
654b27e5 58 #:use-module (gnu packages xiph))
892d8a81 59
654b27e5 60(define-public libmpdclient
892d8a81
DT
61 (package
62 (name "libmpdclient")
b81789df 63 (version "2.18")
892d8a81
DT
64 (source (origin
65 (method url-fetch)
66 (uri
c59ea46f 67 (string-append "https://musicpd.org/download/libmpdclient/"
892d8a81 68 (car (string-split version #\.))
a53a925f 69 "/libmpdclient-" version ".tar.xz"))
892d8a81
DT
70 (sha256
71 (base32
b81789df 72 "1yl123xr25gcd3vlsfmn6p7gbrq029pgnxa8m6n6j0byaqgixc2c"))))
7da9e792
TGR
73 (build-system meson-build-system)
74 (native-inputs
75 `(("pkg-config" ,pkg-config)
76
77 ;; For building HTML documentation.
78 ("doxygen" ,doxygen)
79
80 ;; For tests.
81 ("check" ,check)))
82 (arguments
83 `(#:configure-flags
84 (list "-Ddocumentation=true"
85 "-Dtest=true")))
892d8a81
DT
86 (synopsis "Music Player Daemon client library")
87 (description "A stable, documented, asynchronous API library for
88interfacing MPD in the C, C++ & Objective C languages.")
e9aa6b5e 89 (home-page "https://www.musicpd.org/libs/libmpdclient/")
7dc68701
DT
90 (license license:bsd-3)))
91
654b27e5 92(define-public mpd
7dc68701
DT
93 (package
94 (name "mpd")
fb31d11b 95 (version "0.21.20")
7dc68701
DT
96 (source (origin
97 (method url-fetch)
98 (uri
943100f6 99 (string-append "https://musicpd.org/download/mpd/"
29a7c98a 100 (version-major+minor version)
58acabc3 101 "/mpd-" version ".tar.xz"))
7dc68701
DT
102 (sha256
103 (base32
fb31d11b 104 "1q8hwl3i0a4qzdwfh44r0nh5zd2mm3rraqw5qvmz6qfrjslz0bj2"))))
f52bd828 105 (build-system meson-build-system)
87b52095 106 (arguments
63d4ef52 107 `(#:configure-flags '("-Ddocumentation=true"))) ;the default is 'false'...
7dc68701
DT
108 (inputs `(("ao" ,ao)
109 ("alsa-lib" ,alsa-lib)
110 ("avahi" ,avahi)
58acabc3 111 ("boost" ,boost)
7dc68701
DT
112 ("curl" ,curl)
113 ("ffmpeg" ,ffmpeg)
114 ("flac" ,flac)
115 ("glib" ,glib)
58acabc3 116 ("icu4c" ,icu4c)
241caa62
LF
117 ;; The LAME decoder comes from FFmpeg, but is added here so that
118 ;; configure picks up the LAME encoder.
7dc68701
DT
119 ("lame" ,lame)
120 ("libid3tag" ,libid3tag)
7dc68701
DT
121 ("libmpdclient" ,libmpdclient)
122 ("libsamplerate" ,libsamplerate)
123 ("libsndfile" ,libsndfile)
124 ("libvorbis" ,libvorbis)
125 ("opus" ,opus)
7dc68701
DT
126 ("pulseaudio" ,pulseaudio)
127 ("sqlite" ,sqlite)
128 ("zlib" ,zlib)))
63d4ef52 129 (native-inputs `(("pkg-config" ,pkg-config)
f52bd828 130 ("python-sphinx" ,python-sphinx)))
7dc68701
DT
131 ;; Missing optional inputs:
132 ;; libyajl
133 ;; libcdio_paranoia
134 ;; libmms
135 ;; libadplug
136 ;; libaudiofile
137 ;; faad2
138 ;; fluidsynth
139 ;; libgme
140 ;; libshout
141 ;; libmpg123
142 ;; libmodplug
143 ;; libmpcdec
144 ;; libsidplay2
145 ;; libwavpack
146 ;; libwildmidi
147 ;; libtwolame
148 ;; libroar
149 ;; libjack
150 ;; OpenAL
151 (synopsis "Music Player Daemon")
152 (description "Music Player Daemon (MPD) is a flexible, powerful,
153server-side application for playing music. Through plugins and libraries it
154can play a variety of sound files while being controlled by its network
155protocol.")
e9aa6b5e 156 (home-page "https://www.musicpd.org/")
7dc68701 157 (license license:gpl2)))
4d01bd3c 158
654b27e5 159(define-public mpd-mpc
773b2792
PW
160 (package
161 (name "mpd-mpc")
8f9c957d 162 (version "0.33")
773b2792
PW
163 (source (origin
164 (method url-fetch)
165 (uri
62d14d24 166 (string-append "https://www.musicpd.org/download/mpc/"
773b2792
PW
167 (car (string-split version #\.))
168 "/mpc-" version ".tar.xz"))
169 (sha256
170 (base32
8f9c957d 171 "15hjpzqs83v1zx49x8nkpwy9hpl1jxd55z1w50vm82gm32zcqh2g"))))
62d14d24 172 (build-system meson-build-system)
773b2792 173 (inputs `(("libmpdclient" ,libmpdclient)))
33279c2a
LF
174 (native-inputs
175 `(("pkg-config" ,pkg-config)
176 ("python-sphinx" ,python-sphinx)))
773b2792
PW
177 (synopsis "Music Player Daemon client")
178 (description "MPC is a minimalist command line interface to MPD, the music
179player daemon.")
e9aa6b5e 180 (home-page "https://www.musicpd.org/clients/mpc/")
773b2792
PW
181 (license license:gpl2)))
182
654b27e5 183(define-public ncmpc
4d01bd3c
DT
184 (package
185 (name "ncmpc")
e9759457 186 (version "0.37")
4d01bd3c
DT
187 (source (origin
188 (method url-fetch)
189 (uri
190 (string-append "http://musicpd.org/download/ncmpc/"
947babea 191 (version-major version)
3efee6a4 192 "/ncmpc-" version ".tar.xz"))
4d01bd3c
DT
193 (sha256
194 (base32
e9759457 195 "0p31jpv1vj01bqf1589mnfpv9618cfsv259rlnbqybg1yqkvg3kw"))))
fbde7b08
TGR
196 (build-system meson-build-system)
197 (arguments
198 `(#:configure-flags
cd220e60
LF
199 ;; Otherwise, they are installed incorrectly, in
200 ;; '$out/share/man/man/man1'.
201 (list (string-append "-Dmandir=" (assoc-ref %outputs "out")
9880bba2
MB
202 "/share"))))
203 (inputs `(("boost" ,boost)
cd220e60 204 ("pcre" ,pcre)
4d01bd3c
DT
205 ("libmpdclient" ,libmpdclient)
206 ("ncurses" ,ncurses)))
fbde7b08 207 (native-inputs `(("gettext" ,gettext-minimal) ; for xgettext
cd220e60
LF
208 ("pkg-config" ,pkg-config)
209 ("python-sphinx" ,python-sphinx)))
9e771e3b 210 (synopsis "Curses Music Player Daemon client")
4d01bd3c
DT
211 (description "ncmpc is a fully featured MPD client, which runs in a
212terminal using ncurses.")
e9aa6b5e 213 (home-page "https://www.musicpd.org/clients/ncmpc/")
4d01bd3c 214 (license license:gpl2)))
009c5b5c 215
654b27e5 216(define-public ncmpcpp
009c5b5c
CS
217 (package
218 (name "ncmpcpp")
93cbcc26 219 (version "0.8.2")
009c5b5c
CS
220 (source (origin
221 (method url-fetch)
222 (uri
a708fea4 223 (string-append "https://ncmpcpp.rybczak.net/stable/ncmpcpp-"
009c5b5c
CS
224 version ".tar.bz2"))
225 (sha256
226 (base32
93cbcc26 227 "0m0mjb049sl62vx13h9waavysa30mk0rphacksnvf94n13la62v5"))))
009c5b5c
CS
228 (build-system gnu-build-system)
229 (inputs `(("libmpdclient" ,libmpdclient)
4cb9b726 230 ("boost" ,boost)
e42dc624 231 ("readline" ,readline)
a22722c1 232 ("ncurses" ,ncurses)
a4c7c57c 233 ("taglib" ,taglib)
a708fea4
LF
234 ("icu4c" ,icu4c)
235 ("curl" ,curl)))
e42dc624 236 (native-inputs
c7794307 237 `(("pkg-config" ,pkg-config)))
e42dc624
PW
238 (arguments
239 '(#:configure-flags
9edae6c0 240 '("BOOST_LIB_SUFFIX=" "--with-taglib" "--enable-clock")))
009c5b5c
CS
241 (synopsis "Featureful ncurses based MPD client inspired by ncmpc")
242 (description "Ncmpcpp is an mpd client with a UI very similar to ncmpc,
243but it provides new useful features such as support for regular expressions
244for library searches, extended song format, items filtering, the ability to
8f65585b 245sort playlists, and a local file system browser.")
a708fea4 246 (home-page "https://ncmpcpp.rybczak.net/")
009c5b5c 247 (license license:gpl2+)))
927ff2c3
DT
248
249(define-public mpdscribble
250 (package
251 (name "mpdscribble")
252 (version "0.22")
253 (source (origin
254 (method url-fetch)
255 (uri (string-append "http://www.musicpd.org/download/mpdscribble/"
256 version "/mpdscribble-" version ".tar.gz"))
257 (sha256
258 (base32
259 "0f0ybx380x2z2g1qvdndpvcrhkrgsfqckhz3ryydq2w3pl12v27z"))))
260 (build-system gnu-build-system)
261 (inputs `(("libmpdclient" ,libmpdclient)
262 ("curl" ,curl)
263 ("glib" ,glib)))
264 (native-inputs `(("pkg-config" ,pkg-config)))
265 (synopsis "MPD client for track scrobbling")
266 (description "mpdscribble is a Music Player Daemon client which submits
267information about tracks being played to a scrobbler, such as Libre.FM.")
fc2847b1 268 (home-page "https://www.musicpd.org/clients/mpdscribble/")
927ff2c3 269 (license license:gpl2+)))
efe0b143
LF
270
271(define-public python-mpd2
272 (package
273 (name "python-mpd2")
274 (version "0.5.5")
275 (source (origin
276 (method url-fetch)
277 (uri (pypi-uri "python-mpd2" version))
278 (sha256
279 (base32
280 "0laypd7h1j14b4vrmiayqlzdsh2j5hc3zv4l0fqvbrbw9y6763ii"))))
281 (build-system python-build-system)
282 (arguments
283 '(#:phases
284 (modify-phases %standard-phases
285 (replace 'check
e8e3c357 286 (lambda _ (invoke "python" "mpd_test.py"))))))
efe0b143
LF
287 (native-inputs `(("python-mock" ,python-mock)))
288 (home-page "https://github.com/Mic92/python-mpd2")
289 (synopsis "Python MPD client library")
290 (description "Python-mpd2 is a Python library which provides a client
291interface for the Music Player Daemon.")
5c31f4aa 292 (license license:lgpl3+)))
efe0b143
LF
293
294(define-public python2-mpd2
5c31f4aa 295 (package-with-python2 python-mpd2))
6c86cef5
CB
296
297(define-public sonata
298 (package
299 (name "sonata")
300 (version "1.7b1")
301 (source (origin
302 (method url-fetch)
303 (uri
304 (string-append "https://github.com/multani/sonata/archive/v"
305 version ".tar.gz"))
306 (file-name (string-append name "-" version ".tar.gz"))
307 (sha256
308 (base32
309 "07gq2nxqwxs0qyxjbay7k5j25zd386bn7wdr2dl1gk53diwnn7s0"))))
310 (build-system python-build-system)
311 (arguments
312 `(#:modules ((guix build gnu-build-system)
313 (guix build python-build-system)
314 ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
315 (guix build utils))
316 #:imported-modules (,@%gnu-build-system-modules
317 (guix build python-build-system)
318 (guix build glib-or-gtk-build-system))
319 #:phases
320 (modify-phases %standard-phases
321 (add-after 'install 'glib-or-gtk-wrap
322 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
323 (add-after 'install 'wrap-sonata
324 (lambda* (#:key outputs #:allow-other-keys)
325 (let ((out (assoc-ref outputs "out"))
326 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
327 (wrap-program (string-append out "/bin/sonata")
328 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
329 #t)))))
330 (native-inputs
7c90d0f4 331 `(("gettext" ,gettext-minimal)))
6c86cef5
CB
332 (inputs
333 `(("python-mpd2" ,python-mpd2)
334 ("gtk+" ,gtk+)
335 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
336 ("gobject-introspection" ,gobject-introspection)
337 ("adwaita-icon-theme" ,adwaita-icon-theme)
338 ("python-pygobject" ,python-pygobject)))
339 (synopsis "Elegant client for the Music Player Daemon")
340 (description "Sonata is an elegant graphical client for the Music Player
341Daemon (MPD). It supports playlists, multiple profiles (connecting to different
342MPD servers, search and multimedia key support.")
340978d7 343 (home-page "https://www.nongnu.org/sonata/")
6c86cef5 344 (license license:gpl3+)))
5ce0aab3
ES
345
346(define-public ashuffle
347 (package
348 (name "ashuffle")
349 (version "2.0.2")
350 (source (origin
351 (method git-fetch)
352 (uri (git-reference
353 (url "https://github.com/joshkunz/ashuffle.git")
354 (commit (string-append "v" version))))
355 (file-name (git-file-name name version))
356 (sha256
357 (base32
358 "11aa95cg0yca2m2d00sar6wr14g3lc7cfm9bin1h7lk7asdm8azp"))))
359 (native-inputs `(("pkg-config" ,pkg-config)))
360 (inputs `(("libmpdclient" ,libmpdclient)))
361 (build-system meson-build-system)
362 (home-page "https://github.com/joshkunz/ashuffle")
363 (synopsis "Automatic library-wide shuffle for mpd")
364 (description "ashuffle is an application for automatically shuffling your
a3e5361b 365MPD library in a similar way to many other music players' 'shuffle library'
5ce0aab3
ES
366feature. ashuffle works like any other MPD client, and can be used alongside
367other MPD frontends.")
368 (license license:expat)))