gnu: xterm: Update to 335.
[jackhill/guix/guix.git] / gnu / packages / cdrom.scm
CommitLineData
6064c4cd 1;;; GNU Guix --- Functional package management for GNU
949457c1 2;;; Copyright © 2013, 2014, 2015, 2018 Ludovic Courtès <ludo@gnu.org>
74216042 3;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
db361234 4;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
fab74288 5;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
89252782 6;;; Copyright © 2015, 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
41447b31 7;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
b4edcd28 8;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
a9406b24 9;;; Copyright © 2017 John Darrington <jmd@gnu.org>
76e98457 10;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
24a300b1 11;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
4a78fd46 12;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
c54511fd 13;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
6064c4cd
LC
14;;;
15;;; This file is part of GNU Guix.
16;;;
17;;; GNU Guix is free software; you can redistribute it and/or modify it
18;;; under the terms of the GNU General Public License as published by
19;;; the Free Software Foundation; either version 3 of the License, or (at
20;;; your option) any later version.
21;;;
22;;; GNU Guix is distributed in the hope that it will be useful, but
23;;; WITHOUT ANY WARRANTY; without even the implied warranty of
24;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25;;; GNU General Public License for more details.
26;;;
27;;; You should have received a copy of the GNU General Public License
28;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
29
30(define-module (gnu packages cdrom)
31 #:use-module (guix download)
32 #:use-module (guix packages)
ded59665 33 #:use-module ((guix licenses) #:select (lgpl2.1+ gpl2 gpl2+ gpl3+ cddl1.0))
41447b31 34 #:use-module (guix build-system cmake)
6064c4cd 35 #:use-module (guix build-system gnu)
426e6083
CM
36 #:use-module (guix build-system glib-or-gtk)
37 #:use-module (guix gexp)
6064c4cd
LC
38 #:use-module (gnu packages)
39 #:use-module (gnu packages acl)
426e6083 40 #:use-module (gnu packages audio)
41447b31 41 #:use-module (gnu packages bison)
6064c4cd 42 #:use-module (gnu packages compression)
41447b31 43 #:use-module (gnu packages flex)
52cb22cd 44 #:use-module (gnu packages fontutils)
1dba6407 45 #:use-module (gnu packages gettext)
52cb22cd
TD
46 #:use-module (gnu packages docbook)
47 #:use-module (gnu packages xml)
c1cab15a 48 #:use-module (gnu packages gtk)
426e6083 49 #:use-module (gnu packages glib)
76e98457 50 #:use-module (gnu packages m4)
949457c1 51 #:use-module (gnu packages man)
426e6083 52 #:use-module (gnu packages mp3)
949457c1 53 #:use-module (gnu packages music)
43824910 54 #:use-module (gnu packages ncurses)
3e778ad3 55 #:use-module (gnu packages elf)
52cb22cd
TD
56 #:use-module (gnu packages wxwidgets)
57 #:use-module (gnu packages linux)
c1cab15a 58 #:use-module (gnu packages pkg-config)
43824910 59 #:use-module (gnu packages readline)
ce0614dd 60 #:use-module (gnu packages base)
7dfc937e 61 #:use-module (gnu packages perl)
949457c1 62 #:use-module (gnu packages perl-web)
7dfc937e 63 #:use-module (gnu packages python)
52cb22cd
TD
64 #:use-module (gnu packages image)
65 #:use-module (gnu packages photo)
66 #:use-module (gnu packages video)
7dfc937e
LC
67 #:use-module (gnu packages wget)
68 #:use-module (gnu packages xiph))
6064c4cd
LC
69
70(define-public libcddb
71 (package
72 (name "libcddb")
03aef4a7 73 (version "1.3.2")
6064c4cd
LC
74 (source (origin
75 (method url-fetch)
de67e922
LF
76 (uri (string-append "mirror://sourceforge/libcddb/libcddb/" version
77 "/libcddb-" version ".tar.bz2"))
6064c4cd
LC
78 (sha256
79 (base32
03aef4a7 80 "0fr21a7vprdyy1bq6s99m0x420c9jm5fipsd63pqv8qyfkhhxkim"))))
6064c4cd
LC
81 (build-system gnu-build-system)
82 (arguments '(#:tests? #f)) ; tests rely on access to external servers
83 (home-page "http://libcddb.sourceforge.net/")
84 (synopsis "C library to access data on a CDDB server")
85 (description
35b9e423 86 "Libcddb is a C library to access data on a CDDB server (freedb.org). It
6064c4cd
LC
87allows you to:
88
89 1. search the database for possible CD matches;
90
91 2. retrieve detailed information about a specific CD;
92
93 3. submit new CD entries to the database.
94
95Libcddb supports both the custom CDDB protocol and tunnelling the query and
35b9e423
EB
96read operations over plain HTTP. It is also possible to use an HTTP proxy
97server. If you want to speed things up, you can make use of the built-in
6064c4cd
LC
98caching facility provided by the library.")
99 (license lgpl2.1+)))
100
101(define-public libcdio
102 (package
103 (name "libcdio")
49e23afa 104 (version "2.0.0")
6064c4cd
LC
105 (source (origin
106 (method url-fetch)
107 (uri (string-append "mirror://gnu/libcdio/libcdio-"
49e23afa 108 version ".tar.bz2"))
6064c4cd
LC
109 (sha256
110 (base32
49e23afa 111 "0jr8ppdm80c533nzmrpz3iffnpc6nhvsria1di9f4jg1l19a03fd"))))
6064c4cd
LC
112 (build-system gnu-build-system)
113 (inputs
6312043c
EF
114 `(("ncurses" ,ncurses)
115 ("libcddb" ,libcddb)))
c4c4cc05 116 (native-inputs
6064c4cd 117 `(("help2man" ,help2man)
c4c4cc05 118 ("pkg-config" ,pkg-config)))
6312043c 119 (home-page "https://www.gnu.org/software/libcdio/")
f50d2669 120 (synopsis "CD Input and Control library")
6064c4cd 121 (description
a22dc0c4
LC
122 "The GNU Compact Disc Input and Control Library (libcdio) is a library
123for CD-ROM and CD image file access. It allows the developer to add CD
124access to an application without having to worry about the OS- and
125device-dependent properties of CD-ROM or the specific details of CD image
fc8a431c
LC
126formats. It includes pycdio, a Python interface to libcdio, and
127libcdio-paranoia, a library providing jitter-free and error-free audio
128extraction from CDs.")
6064c4cd
LC
129 (license gpl3+)))
130
cc6c0170
TUBK
131(define-public libcdio-paranoia
132 (package
133 (name "libcdio-paranoia")
6342ebd5 134 (version "10.2+0.94+2")
cc6c0170
TUBK
135 (source (origin
136 (method url-fetch)
137 (uri (string-append "mirror://gnu/libcdio/libcdio-paranoia-"
6342ebd5 138 version ".tar.gz"))
cc6c0170
TUBK
139 (sha256
140 (base32
6342ebd5 141 "0h8rr1ir05r29rgawa1ccw335668k4s3zq4yg9095svyx7n843yn"))))
cc6c0170
TUBK
142 (build-system gnu-build-system)
143 (native-inputs `(("pkg-config" ,pkg-config)))
144 (propagated-inputs `(("libcdio" ,libcdio)))
6fd52309 145 (home-page "https://www.gnu.org/software/libcdio/")
cc6c0170
TUBK
146 (synopsis "Jitter- and error-tolerant CD audio extraction")
147 (description
148 "libcdio-paranoia is an implementation of CD paranoia libraries based on
149libcdio.")
150 (license gpl3+)))
151
6064c4cd
LC
152(define-public xorriso
153 (package
154 (name "xorriso")
ad057b79 155 (version "1.4.8")
6064c4cd
LC
156 (source (origin
157 (method url-fetch)
158 (uri (string-append "mirror://gnu/xorriso/xorriso-"
159 version ".tar.gz"))
160 (sha256
161 (base32
ad057b79 162 "10c44yr3dpmwxa7rf23mwfsy1bahny3jpcg9ig0xjv090jg0d0pc"))))
6064c4cd
LC
163 (build-system gnu-build-system)
164 (inputs
165 `(("acl" ,acl)
166 ("readline" ,readline)
a3a932c0 167 ("zlib" ,zlib)))
cb764dc8 168 (home-page "https://www.gnu.org/software/xorriso/")
8f65585b 169 (synopsis "Create, manipulate, burn ISO-9660 file systems")
6064c4cd 170 (description
79c311b8 171 "GNU Xorriso is a tool for copying files to and from ISO 9660 Rock
8f65585b 172Ridge, a.k.a. Compact Disc File System, file systems and it allows
79c311b8
LC
173session-wise manipulation of them. It features a formatter and burner for
174CD, DVD and BD. It can operate on existing ISO images or it can create new
175ones. xorriso can then be used to copy files directly into or out of ISO
176files.")
6064c4cd 177 (license gpl3+)))
6bfc16d9
AE
178
179(define-public cdparanoia
180 (package
181 (name "cdparanoia")
182 (version "10.2")
183 (source (origin
184 (method url-fetch)
a124bbd2
SB
185 (uri (string-append "http://downloads.xiph.org/releases/"
186 "cdparanoia/cdparanoia-III-"
6bfc16d9
AE
187 version ".src.tgz"))
188 (sha256
189 (base32
01eafd38 190 "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80"))
fc1adab1 191 (patches (search-patches "cdparanoia-fpic.patch"))
d1f9e45e
SB
192 (modules '((guix build utils)))
193 (snippet
6cbee49d
MW
194 '(begin
195 ;; Make libraries respect LDFLAGS.
196 (substitute* '("paranoia/Makefile.in" "interface/Makefile.in")
197 (("-Wl,-soname") "$(LDFLAGS) -Wl,-soname"))
198 #t))))
6bfc16d9 199 (build-system gnu-build-system)
6bfc16d9
AE
200 (arguments
201 `(#:tests? #f ; there is no check target
d1f9e45e
SB
202 #:configure-flags ; Add $libdir to the RUNPATH of all the executables.
203 (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))))
6bfc16d9 204 (home-page "http://www.xiph.org/paranoia/")
35b9e423 205 (synopsis "Audio CD reading utility")
6bfc16d9
AE
206 (description "Cdparanoia retrieves audio tracks from CDDA capable CDROM
207drives. The data can be saved to a file or directed to standard output
516e93f8 208in WAV, AIFF, AIFF-C or raw format. Most ATAPI, SCSI and several
6bfc16d9
AE
209proprietary CDROM drive makes are supported; cdparanoia can determine if the
210target drive is CDDA capable. In addition to simple reading, cdparanoia adds
211extra-robust data verification, synchronization, error handling and scratch
212reconstruction capability.")
213 (license gpl2))) ; libraries under lgpl2.1
c1cab15a 214
ded59665
TD
215(define-public cdrtools
216 (package
217 (name "cdrtools")
218 (version "3.01")
219 (source (origin
220 (method url-fetch)
221 (uri (string-append
222 "mirror://sourceforge/cdrtools/cdrtools-" version ".tar.bz2"))
223 (sha256
224 (base32
225 "03w6ypsmwwy4d7vh6zgwpc60v541vc5ywp8bdb758hbc4yv2wa7d"))
226 (patches (search-patches "cdrtools-3.01-mkisofs-isoinfo.patch"))))
227 (build-system gnu-build-system)
228 ;; XXX cdrtools bundles a modified, relicensed early version of cdparanoia.
229 (inputs
230 `(("linux-headers" ,linux-libre-headers)))
231 (arguments
232 `(#:phases
233 (modify-phases %standard-phases
234 (delete 'configure)
235 (add-before 'build 'set-linux-headers
236 (lambda _
237 (substitute* "autoconf/configure"
238 (("/usr/src/linux")
239 (assoc-ref %build-inputs "linux-headers")))
240 #t))
241 (add-before 'build 'substitute-dirs
242 (lambda _
243 (substitute* (append (find-files "DEFAULTS" "^Defaults\\.")
244 (find-files "DEFAULTS_ENG" "^Defaults\\.")
245 (find-files "TEMPLATES" "^Defaults\\."))
246 (("/opt/schily") (assoc-ref %outputs "out")))
247 #t))
248 (replace 'build
249 (lambda _
250 (zero?
251 (system* "make" "CONFIG_SHELL=sh" "CCOM=gcc" "RM=rm"))))
252 (replace 'install
253 (lambda _
254 (zero?
255 (system* "make"
256 "RM=rm" "LN=ln" "SYMLINK=ln -s"
257 (string-append "INS_BASE=" (assoc-ref %outputs "out"))
258 (string-append "INS_RBASE=" (assoc-ref %outputs "out"))
259 "install" )))))
260 #:tests? #f)) ; no tests
261 (synopsis "Command line utilities to manipulate and burn CD/DVD/BD images")
262 (description "cdrtools is a collection of command line utilities to create
263CD's, DVD's or Blue Ray discs. The most important components are
264@command{cdrecord}, a burning program, @command{cdda2wav}, a CD audio ripper
265which uses libparanoia, and @command{mkisofs}, which can create various disc
266images.")
267 (home-page "http://cdrtools.sourceforge.net/private/cdrecord.html")
268
269 ;; mkisofs is GPL, the other programs are CDDL.
270 (license (list cddl1.0 gpl2))))
271
76e98457
TD
272(define-public dvd+rw-tools
273 (package
274 (name "dvd+rw-tools")
275 (version "7.1")
276 (source (origin
277 (method url-fetch)
278 (uri (string-append
279 "http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd+rw-tools-"
280 version ".tar.gz"))
281 (sha256
282 (base32
283 "1jkjvvnjcyxpql97xjjx0kwvy70kxpiznr2zpjy2hhci5s10zmpq"))
284 (patches (search-patches "dvd+rw-tools-add-include.patch"))))
285 (build-system gnu-build-system)
286 (inputs
287 `(("cdrtools" ,cdrtools)))
288 (native-inputs
289 `(("m4" ,m4)))
290 (arguments
291 `(#:tests? #f ; No tests.
292 #:phases
293 (modify-phases %standard-phases
294 (replace 'configure
295 (lambda _ (setenv "prefix" (assoc-ref %outputs "out")) #t))
296 (add-before 'build 'embed-mkisofs
297 (lambda* (#:key inputs #:allow-other-keys)
298 ;; We use sed --in-place because substitute* cannot handle the
299 ;; character encoding used by growisofs.c.
300 (zero? (system* "sed" "-i" "-e"
301 (string-append
302 "s,\"mkisofs\","
303 "\"" (which "mkisofs") "\",")
304 "growisofs.c")))))))
305 (home-page "http://fy.chalmers.se/~appro/linux/DVD+RW/")
306 (synopsis "DVD and Blu-ray Disc burning tools")
307 (description "dvd+rw-tools, mostly known for its command
308@command{growisofs}, is a collection of DVD and Blu-ray Disc burning tools.
309It requires another program, such as @command{mkisofs}, @command{genisoimage},
310or @command{xorrisofs} to create ISO 9660 images.")
311 (license gpl2)))
312
c1cab15a
AE
313(define-public dvdisaster
314 (package
315 (name "dvdisaster")
036fd4f2 316 (version "0.79.5")
c1cab15a
AE
317 (source (origin
318 (method url-fetch)
319 (uri (string-append "http://dvdisaster.net/downloads/dvdisaster-"
320 version ".tar.bz2"))
321 (sha256
322 (base32
036fd4f2 323 "0f8gjnia2fxcbmhl8b3qkr5b7idl8m855dw7xw2fnmbqwvcm6k4w"))))
c1cab15a
AE
324 (build-system gnu-build-system)
325 (inputs
c4c4cc05
JD
326 `(("gtk+" ,gtk+-2)))
327 (native-inputs
b94a6ca0 328 `(("gettext" ,gettext-minimal)
c1cab15a
AE
329 ("pkg-config" ,pkg-config)
330 ("which" ,which)))
331 (arguments
c397e502
LC
332 `(;; Parallel builds appear to be unsafe, see
333 ;; <http://hydra.gnu.org/build/49331/nixlog/1/raw>.
334 #:parallel-build? #f
036fd4f2 335 #:tests? #f)) ; no check target
c1cab15a 336 (home-page "http://dvdisaster.net/en/index.html")
35b9e423 337 (synopsis "Error correcting codes for optical media images")
c1cab15a
AE
338 (description "Optical media (CD,DVD,BD) keep their data only for a
339finite time (typically for many years). After that time, data loss develops
340slowly with read errors growing from the outer media region towards the
341inside.
342
343Dvdisaster stores data on CD/DVD/BD (supported media) in a way that it is
344fully recoverable even after some read errors have developed. This enables
345you to rescue the complete data to a new medium.
346
347Data loss is prevented by using error correcting codes. Error correction
348data is either added to the medium or kept in separate error correction
349files. Dvdisaster works at the image level so that the recovery does not
350depend on the file system of the medium. The maximum error correction
351capacity is user-selectable.")
352 (license gpl2+)))
e2bb5fd6 353
52cb22cd
TD
354(define-public dvdstyler
355 (package
356 (name "dvdstyler")
7268563b 357 (version "3.0.4")
52cb22cd
TD
358 (source
359 (origin
360 (method url-fetch)
361 (uri (string-append "mirror://sourceforge/dvdstyler/dvdstyler/"
362 version "/DVDStyler-" version ".tar.bz2"))
363 (sha256
364 (base32
7268563b 365 "0lwc0hn94m9r8fi07sjqz3fr618l6lnw3zsakxw7nlgnxbjsk7pi"))))
52cb22cd
TD
366 (build-system gnu-build-system)
367 (arguments
24a300b1
TGR
368 `(#:configure-flags
369 (list (string-append "XMLTO="
370 (assoc-ref %build-inputs "xmlto")
371 "/bin/xmlto --searchpath "
372 (assoc-ref %build-inputs "docbook-xsl")
373 "/xml/xsl/docbook-xsl-" ,(package-version docbook-xsl)
374 "/htmlhelp:"
375 (assoc-ref %build-inputs "docbook-xml")
376 "/xml/dtd/docbook"))
52cb22cd
TD
377 #:phases
378 (modify-phases %standard-phases
379 (add-after 'install 'wrap-program
380 (lambda* (#:key inputs outputs #:allow-other-keys)
381 (wrap-program (string-append (assoc-ref outputs "out") "/bin/dvdstyler")
382 `("PATH" ":" prefix
383 (,(string-join
384 (map (lambda (in) (string-append (assoc-ref inputs in) "/bin"))
385 '("cdrtools" "dvdauthor" "dvd+rw-tools" "ffmpeg"))
386 ":"))))
387 #t)))
388 #:tests? #f)) ; No tests.
389 (inputs ; TODO package bundled wxvillalib
390 `(("wxwidgets" ,wxwidgets-3.1)
391 ("wssvg" ,wxsvg)
392 ("dbus" ,dbus)
393 ("cdrtools" ,cdrtools)
394 ("dvd+rw-tools" ,dvd+rw-tools)
395 ("dvdauthor" ,dvdauthor)
396 ("eudev" ,eudev)
397 ("fontconfig" ,fontconfig)
398 ("libexif" ,libexif)
399 ("libjpeg" ,libjpeg)
bb5c508c 400 ("ffmpeg" ,ffmpeg-3.4)))
52cb22cd
TD
401 (native-inputs
402 `(("pkg-config" ,pkg-config)
403 ("flex" ,flex)
404 ("python" ,python-2)
405 ("xmlto" ,xmlto)
406 ("gettext" ,gnu-gettext)
407 ("docbook-xml" ,docbook-xml)
408 ("docbook-xsl" ,docbook-xsl)
409 ("zip" ,zip)))
410 (synopsis "DVD authoring application")
411 (description "DVDStyler is a DVD authoring application which allows users
412to burn video files in many formats to DVD discs, complete with individually
413designed menus. It can be used to create professional-looking DVD's with
414custom buttons, backgrounds and animations, from within a user-friendly
415graphical interface.")
416 (home-page "https://www.dvdstyler.org")
417 (license gpl2)))
418
fab74288
PW
419(define-public libcue
420 (package
421 (name "libcue")
05fcb98d 422 (version "2.2.1")
fab74288
PW
423 (source (origin
424 (method url-fetch)
41447b31
AK
425 (uri (string-append
426 "https://github.com/lipnitsk/libcue/archive/v"
427 version ".tar.gz"))
428 (file-name (string-append name "-" version ".tar.gz"))
fab74288
PW
429 (sha256
430 (base32
05fcb98d 431 "000j5xqp7cc7njwlixr9byahz9kn8pcfdgm76afwv4p8nbmw6yzj"))))
41447b31 432 (build-system cmake-build-system)
05fcb98d
MB
433 (arguments
434 `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON")))
41447b31
AK
435 (native-inputs
436 `(("bison" ,bison)
437 ("flex" ,flex)))
8caf80fc 438 (home-page "https://github.com/lipnitsk/libcue")
fab74288
PW
439 (synopsis "C library to parse cue sheets")
440 (description "Libcue is a C library to parse so-called @dfn{cue sheets}
441which contain meta-data for CD/DVD tracks. It provides an API to manipulate
442the data.")
443 (license gpl2+)))
444
e2bb5fd6
LC
445(define-public cd-discid
446 (package
447 (name "cd-discid")
448 (version "1.4")
449 (home-page "http://linukz.org/cd-discid.shtml")
450 (source (origin
451 (method url-fetch)
d514bedb 452 (uri (string-append "http://linukz.org/download/cd-discid-"
e2bb5fd6
LC
453 version ".tar.gz"))
454 (sha256
455 (base32
456 "0qrcvn7227qaayjcd5rm7z0k5q89qfy5qkdgwr5pd7ih0va8rmpz"))
457 (modules '((guix build utils)))
458 (snippet
6cbee49d
MW
459 '(begin
460 (substitute* "Makefile"
461 (("/usr/bin/install")
462 "install"))
463 #t))))
e2bb5fd6
LC
464 (build-system gnu-build-system)
465 (arguments
466 '(#:tests? #f
dc1d3cde 467 #:phases (modify-phases %standard-phases (delete 'configure))
e2bb5fd6
LC
468 #:make-flags (list "CC=gcc"
469 (string-append "PREFIX="
470 (assoc-ref %outputs "out")))))
471 (synopsis "Get CDDB discid information from an audio CD")
472 (description
473 "cd-discid is a command-line tool to retrieve CDDB discid information
474from an audio CD.")
475 (license gpl2+)))
7dfc937e
LC
476
477(define-public abcde
478 (package
479 (name "abcde")
89252782 480 (version "2.9.1")
1bb4005f 481 (home-page "https://abcde.einval.com/")
7dfc937e
LC
482 (source (origin
483 (method url-fetch)
484 (uri (string-append home-page "/download/abcde-"
485 version ".tar.gz"))
486 (sha256
487 (base32
89252782 488 "1msm5snyckynbspz54p9krarn7v9izsi7qyyi2z5y4cinw36xv3h"))
7dfc937e
LC
489 (modules '((guix build utils)))
490 (snippet
6cbee49d
MW
491 '(begin
492 (substitute* "Makefile"
493 (("/usr/bin/install")
494 "install")
495 (("^etcdir = .*$")
496 (string-append "etcdir = $(prefix)/etc\n")))
497 #t))))
7dfc937e
LC
498 (build-system gnu-build-system)
499 (arguments
7df85799
EF
500 '(#:phases
501 (modify-phases %standard-phases
502 (replace 'configure
503 (lambda* (#:key outputs inputs #:allow-other-keys)
504 (substitute* "Makefile"
505 (("^prefix = .*$")
506 (string-append "prefix = "
507 (assoc-ref outputs "out")
c2a3b23f
EF
508 "\n"))
509 (("^sysconfdir = .*$")
510 (string-append "sysconfdir = "
511 (assoc-ref outputs "out")
512 "/etc/\n")))
513 #t))
7df85799
EF
514 (add-after 'install 'wrap
515 (lambda* (#:key inputs outputs #:allow-other-keys)
516 (let ((wget (assoc-ref inputs "wget"))
517 (vorbis (assoc-ref inputs "vorbis-tools"))
518 (parano (assoc-ref inputs "cdparanoia"))
519 (which (assoc-ref inputs "which"))
520 (discid (assoc-ref inputs "cd-discid"))
949457c1
LC
521 (perl-discid (assoc-ref inputs "perl-musicbrainz-discid"))
522 (perl-ws (assoc-ref inputs "perl-webservice-musicbrainz"))
523 (perl-mojo (assoc-ref inputs "perl-mojolicious"))
0d1baed2 524 (flac (assoc-ref inputs "flac"))
7df85799
EF
525 (out (assoc-ref outputs "out")))
526 (define (wrap file)
527 (wrap-program file
528 `("PATH" ":" prefix
529 (,(string-append out "/bin:"
530 wget "/bin:"
0d1baed2 531 flac "/bin:"
7df85799
EF
532 which "/bin:"
533 vorbis "/bin:"
534 discid "/bin:"
949457c1
LC
535 parano "/bin")))
536 `("PERL5LIB" ":" prefix
537 (,(string-append perl-discid
538 "/lib/perl5/site_perl:"
539 perl-ws
540 "/lib/perl5/site_perl:"
541 perl-mojo
542 "/lib/perl5/site_perl")))))
7dfc937e 543
7df85799
EF
544 (for-each wrap
545 (find-files (string-append out "/bin")
546 ".*"))))))
c2a3b23f 547 #:tests? #f)) ; no test target
7dfc937e
LC
548
549 (inputs `(("wget" ,wget)
550 ("which" ,which)
551 ("cdparanoia" ,cdparanoia)
552 ("cd-discid" ,cd-discid)
553 ("vorbis-tools" ,vorbis-tools)
0d1baed2 554 ("flac" ,flac)
7dfc937e 555
949457c1
LC
556 ("perl-musicbrainz-discid" ,perl-musicbrainz-discid)
557 ("perl-webservice-musicbrainz" ,perl-webservice-musicbrainz)
558 ("perl-mojolicious" ,perl-mojolicious) ;indirect dependency
559
7dfc937e
LC
560 ;; A couple of Python and Perl scripts are included.
561 ("python" ,python)
562 ("perl" ,perl)))
563
564 (synopsis "Command-line audio CD ripper")
565 (description
566 "abcde is a front-end command-line utility (actually, a shell script)
567that grabs tracks off a CD, encodes them to Ogg/Vorbis, MP3, FLAC, Ogg/Speex
568and/or MPP/MP+ (Musepack) format, and tags them, all in one go.")
569 (license gpl2+)))
b4edcd28
MB
570
571(define-public geteltorito
572 (package
573 (name "geteltorito")
574 (version "0.6")
575 (home-page
576 "https://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/")
577 (source (origin
578 (method url-fetch)
579 (uri (string-append home-page name "-" version ".tar.gz"))
580 (sha256
581 (base32
582 "1gkbm9ahj2mgqrkrfpibzclsriqgsbsvjh19fr815vpd9f6snkxv"))))
583 (build-system gnu-build-system)
584 (arguments
585 `(#:tests? #f ; No tests.
586 #:phases
587 (modify-phases %standard-phases
588 (delete 'configure)
589 (delete 'build)
590 (replace 'install
591 (lambda* (#:key outputs #:allow-other-keys)
592 (let ((out (assoc-ref outputs "out")))
593 (install-file "geteltorito"
594 (string-append out "/bin"))))))))
595 (inputs `(("perl" ,perl)))
596 (synopsis "Extract the boot image from a CD-ROM")
597 (description
598 "@command{geteltorito} can extract the initial/default boot
599image from CDs (and ISOs) that follow the El Torito specification
600for bootable CD-ROMs.
601
602Image data is written to standard output by default and all other
603information is written to standard error.")
604 (license gpl2+)))
426e6083
CM
605
606(define-public asunder
607 (package
608 (name "asunder")
609 (version "2.8")
610 (source (origin
611 (method url-fetch)
612 (uri
613 (string-append "http://www.littlesvr.ca/asunder/releases/asunder-"
614 version
615 ".tar.bz2"))
616 (sha256
617 (base32
618 "1nq9kd4rd4k2kibf57gdbm0zw2gxa234vvvdhxkm8g5bhx5h3iyq"))))
619 (build-system glib-or-gtk-build-system)
620 (arguments
621 '(#:out-of-source? #f
622 #:phases (modify-phases %standard-phases
623 (add-after 'install 'wrap
624 (lambda* (#:key inputs outputs #:allow-other-keys)
625 (let ((program (string-append (assoc-ref outputs "out")
626 "/bin/asunder")))
627 (define (bin-directory input-name)
628 (string-append (assoc-ref inputs input-name) "/bin"))
629 (wrap-program program
630 `("PATH" ":" prefix
631 ,(map bin-directory (list "cdparanoia"
632 "lame"
633 "vorbis-tools"
634 "flac"
635 "opus-tools"
636 "wavpack"))))))))))
637 (native-inputs `(("intltool" ,intltool)
638 ("pkg-config" ,pkg-config)))
639 ;; TODO: Add the necessary packages for Musepack encoding.
640 (inputs `(("gtk+-2" ,gtk+-2)
641 ("glib" ,glib)
642 ("libcddb" ,libcddb)
643 ("cdparanoia" ,cdparanoia)
644 ("lame" ,lame)
645 ("vorbis-tools" ,vorbis-tools)
646 ("flac" ,flac)
647 ("opus-tools" ,opus-tools)
648 ("wavpack" ,wavpack)))
649 (home-page "http://www.littlesvr.ca/asunder/")
650 (synopsis "Graphical audio CD ripper and encoder")
651 (description
652 "Asunder is a graphical audio CD ripper and encoder. It can save audio
653tracks as WAV, MP3, Ogg Vorbis, FLAC, Opus, Wavpack, and Musepack. It can use
654CDDB to name and tag each track automatically, and it allows for each track to
655be by a different artist. Asunder can encode to multiple formats in one
656session, and it can create M3U playlists.")
657 (license gpl2)))
328398e7
RJ
658
659(define-public ripit
660 (package
661 (name "ripit")
662 (version "3.9.0")
663 (source (origin
664 (method url-fetch)
665 (uri (string-append "http://www.suwald.com/ripit/ripit-"
666 version ".tar.gz"))
667 (sha256
668 (base32
669 "0ap71x477jy9c4jiqazb3y45hxdxm3jbq24x05g3vjyqzigi4x1b"))))
670 (build-system gnu-build-system)
671 (arguments
672 `(#:tests? #f ; No test suite.
673 #:phases
674 (modify-phases %standard-phases
675 (delete 'configure)
676 (add-after 'unpack 'patch-usr-bin-install
677 (lambda* (#:key inputs outputs #:allow-other-keys)
678 (substitute* "Makefile"
679 (("/usr/bin/install") (string-append
680 (assoc-ref inputs "coreutils")
681 "/bin/install"))
682 (("\\$\\(DESTDIR\\)/usr/local") (assoc-ref outputs "out"))
683 (("../../etc") "etc")))))))
684 (native-inputs
685 `(("coreutils" ,coreutils)))
686 (inputs
687 `(("perl" ,perl)))
688 (propagated-inputs
689 `(("cdparanoia" ,cdparanoia)
690 ("flac" ,flac)
691 ("vorbis-tools" ,vorbis-tools)
692 ("wavpack" ,wavpack)
693 ("perl-cddb-get" ,perl-cddb-get)))
694 (home-page "http://www.suwald.com/ripit/about.php")
695 (synopsis "Command-line program to extract audio CDs")
696 (description "RipIT is used to extract audio from CDs.")
697 (license gpl2)))
a9406b24
JD
698
699(define-public ccd2cue
700 (package
701 (name "ccd2cue")
702 (version "0.5")
703 (source
704 (origin
705 (method url-fetch)
706 (uri (string-append
707 "mirror://gnu/ccd2cue/ccd2cue-" version
708 ".tar.gz"))
709 (sha256
710 (base32
711 "1icrkg25hwx4gsn3dski2172ia4ywjh8m1sa17zmjclnrgdwy9c7"))))
712 (build-system gnu-build-system)
713 (synopsis "CCD to CUE sheet conversion")
714 (description
715 "GNU ccd2cue is a preprocessor for CD burning software that allows
716the conversion of the proprietary CCD format to the CUE format, which
717is well-supported by free software. These files are commonly
718distributed with CD images and are used to describe how tracks are
719laid out on the image.")
6fd52309 720 (home-page "https://www.gnu.org/software/ccd2cue/")
a9406b24 721 (license gpl3+)))
1d8e04e6 722
723(define-public libburn
724 (package
725 (name "libburn")
896bbb03 726 (version "1.4.8")
1d8e04e6 727 (source (origin
728 (method url-fetch)
729 (uri (string-append "http://files.libburnia-project.org/releases/"
730 "libburn-" version ".tar.gz"))
731 (sha256
732 (base32
896bbb03 733 "19lxnzn8bz70glrrrn2hs43gf5g7gfbcka9rcbckhv1pb7is509y"))))
1d8e04e6 734 (build-system gnu-build-system)
735 (native-inputs
736 `(("pkg-config" ,pkg-config)))
737 (home-page "https://dev.lovelyhq.com/libburnia/libburn")
738 (synopsis "Library for reading and writing optical discs")
739 (description
740 "Libburn is a library for reading and writing optical discs.
741Supported media are: CD-R, CD-RW, DVD-RAM, DVD+RW, DVD+R, DVD+R/DL,
742DVD-RW, DVD-R, DVD-R/DL, BD-R, and BD-RE.")
743 (license gpl2)))
dbfab26d 744
745(define-public libisofs
746 (package
747 (name "libisofs")
d87d3f96 748 (version "1.4.8")
dbfab26d 749 (source (origin
750 (method url-fetch)
751 (uri (string-append "http://files.libburnia-project.org/releases/"
752 "libisofs-" version ".tar.gz"))
753 (sha256
754 (base32
d87d3f96 755 "0scvqb72qq24wcg814p1iw1dknldl21hr1hxsc1wy9vc6vgyk7fw"))))
dbfab26d 756 (build-system gnu-build-system)
757 (inputs
758 `(("zlib" ,zlib)
759 ("acl" ,acl)))
760 (native-inputs
761 `(("pkg-config" ,pkg-config)))
762 (home-page "https://dev.lovelyhq.com/libburnia/libisofs")
763 (synopsis "Library to create ISO 9660 images")
764 (description
2773c244 765 "Libisofs creates ISO 9660 (also known as ECMA-119) file system images
dbfab26d 766which can either be written to POSIX file objects or handed over to
767libburn for being written directly to optical media.
768It can read metadata of ISO 9660 filesystems, manipulate them, and use them
2773c244
TGR
769to produce new complete file system images or add-on images to be appended
770to the read file system image.
dbfab26d 771Supported extensions to ISO 9660 are Rock Ridge, Joliet, AAIP, zisofs.")
772 (license gpl2+)))
c54511fd
OP
773
774(define-public cdrkit-libre
775 (package
776 (name "cdrkit-libre")
777 (version "1.1.11")
778 (source (origin
779 (method url-fetch)
780 ;; cdrkit.org is dead.
781 ;;
782 ;; ‘cdrkit-libre’ removes a couple of problematic files,
783 ;; see <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32165#14>.
784 (uri (string-append
785 "https://repo.parabola.nu/other/cdrkit-libre/cdrkit-libre-"
786 version ".tar.gz"))
787 (sha256
788 (base32
789 "0g2zyzb56czh429qy87lvaddzjnlcq8c616ddxsmsshz3clhyzrh"))))
790 (build-system cmake-build-system)
791 (inputs
792 `(("bzip2" ,bzip2)
793 ("libcap" ,libcap)
794 ("perl" ,perl)
795 ("zlib" ,zlib)))
796 (arguments
797 `(#:tests? #f ;no tests
798 #:phases
799 (modify-phases %standard-phases
800 (add-after 'install 'old-cdrecord
801 (lambda* (#:key outputs #:allow-other-keys)
802 (with-directory-excursion (string-append (assoc-ref outputs "out")
803 "/bin")
804 (symlink "genisoimage" "mkisofs")
805 (symlink "wodim" "cdrecord"))
806 #t)))))
807 (home-page "https://repo.parabola.nu/other/cdrkit-libre/")
808 (synopsis "Command-line CD/DVD recorder")
809 (description "Cdrkit is a suite of programs for recording CDs and DVDs,
810blanking CD-RW media, creating ISO-9660 file system images, extracting audio
811CD data, and more. It's mostly compatible with @code{cdrtools}.")
812 (license gpl2+)))