1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014, 2015, 2018 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
4 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
5 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
6 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
8 ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
9 ;;; Copyright © 2017 John Darrington <jmd@gnu.org>
10 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
11 ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2017 Nikita <nikita@n0.is>
13 ;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
14 ;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2019 Eric Bavier <bavier@member.fsf.org>
16 ;;; Copyright © 2020 Timotej Lazar <timotej.lazar@araneo.si>
18 ;;; This file is part of GNU Guix.
20 ;;; GNU Guix is free software; you can redistribute it and/or modify it
21 ;;; under the terms of the GNU General Public License as published by
22 ;;; the Free Software Foundation; either version 3 of the License, or (at
23 ;;; your option) any later version.
25 ;;; GNU Guix is distributed in the hope that it will be useful, but
26 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
27 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 ;;; GNU General Public License for more details.
30 ;;; You should have received a copy of the GNU General Public License
31 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
33 (define-module (gnu packages cdrom)
34 #:use-module (guix download)
35 #:use-module (guix git-download)
36 #:use-module (guix packages)
37 #:use-module ((guix licenses) #:select (lgpl2.1+ gpl2 gpl2+ gpl3+ cddl1.0))
38 #:use-module (guix build-system cmake)
39 #:use-module (guix build-system gnu)
40 #:use-module (guix build-system glib-or-gtk)
41 #:use-module (guix gexp)
42 #:use-module (guix utils)
43 #:use-module (gnu packages)
44 #:use-module (gnu packages acl)
45 #:use-module (gnu packages audio)
46 #:use-module (gnu packages autotools)
47 #:use-module (gnu packages bison)
48 #:use-module (gnu packages compression)
49 #:use-module (gnu packages flex)
50 #:use-module (gnu packages fontutils)
51 #:use-module (gnu packages gettext)
52 #:use-module (gnu packages docbook)
53 #:use-module (gnu packages xml)
54 #:use-module (gnu packages gtk)
55 #:use-module (gnu packages glib)
56 #:use-module (gnu packages m4)
57 #:use-module (gnu packages man)
58 #:use-module (gnu packages mp3)
59 #:use-module (gnu packages music)
60 #:use-module (gnu packages ncurses)
61 #:use-module (gnu packages elf)
62 #:use-module (gnu packages wxwidgets)
63 #:use-module (gnu packages linux)
64 #:use-module (gnu packages pkg-config)
65 #:use-module (gnu packages readline)
66 #:use-module (gnu packages base)
67 #:use-module (gnu packages perl)
68 #:use-module (gnu packages perl-web)
69 #:use-module (gnu packages python)
70 #:use-module (gnu packages image)
71 #:use-module (gnu packages photo)
72 #:use-module (gnu packages tcl)
73 #:use-module (gnu packages video)
74 #:use-module (gnu packages wget)
75 #:use-module (gnu packages xiph))
77 (define-public libcddb
83 (uri (string-append "mirror://sourceforge/libcddb/libcddb/" version
84 "/libcddb-" version ".tar.bz2"))
87 "0fr21a7vprdyy1bq6s99m0x420c9jm5fipsd63pqv8qyfkhhxkim"))))
88 (build-system gnu-build-system)
89 (arguments '(#:tests? #f)) ; tests rely on access to external servers
90 (home-page "http://libcddb.sourceforge.net/")
91 (synopsis "C library to access data on a CDDB server")
93 "Libcddb is a C library to access data on a CDDB server (freedb.org). It
96 1. search the database for possible CD matches;
98 2. retrieve detailed information about a specific CD;
100 3. submit new CD entries to the database.
102 Libcddb supports both the custom CDDB protocol and tunnelling the query and
103 read operations over plain HTTP. It is also possible to use an HTTP proxy
104 server. If you want to speed things up, you can make use of the built-in
105 caching facility provided by the library.")
108 (define-public libcdio
114 (uri (string-append "mirror://gnu/libcdio/libcdio-"
118 "0avi6apv5ydjy6b9c3z9a46rvp5i57qyr09vr7x4nndxkmcfjl45"))))
119 (build-system gnu-build-system)
121 `(("ncurses" ,ncurses)
122 ("libcddb" ,libcddb)))
124 `(("help2man" ,help2man)
125 ("pkg-config" ,pkg-config)))
126 (home-page "https://www.gnu.org/software/libcdio/")
127 (synopsis "CD Input and Control library")
129 "The GNU Compact Disc Input and Control Library (libcdio) is a library
130 for CD-ROM and CD image file access. It allows the developer to add CD
131 access to an application without having to worry about the OS- and
132 device-dependent properties of CD-ROM or the specific details of CD image
133 formats. It includes pycdio, a Python interface to libcdio, and
134 libcdio-paranoia, a library providing jitter-free and error-free audio
135 extraction from CDs.")
138 (define-public libcdio-paranoia
140 (name "libcdio-paranoia")
141 (version "10.2+2.0.1")
144 (uri (string-append "mirror://gnu/libcdio/libcdio-paranoia-"
148 "12hfnrq7amv9qjzc92cr265m7kh0a1hpasck8cxx1gygbhqczc9k"))))
149 (build-system gnu-build-system)
150 (native-inputs `(("pkg-config" ,pkg-config)))
151 (propagated-inputs `(("libcdio" ,libcdio)))
152 (home-page "https://www.gnu.org/software/libcdio/")
153 (synopsis "Jitter- and error-tolerant CD audio extraction")
155 "libcdio-paranoia is an implementation of CD paranoia libraries based on
159 ;; Xorriso is used by Guix for creating ISO images. If you change this package,
160 ;; please make sure the Guix functionality still works by running some related
162 ;; For example, try running `make check-system TESTS=iso-image-installer`.
163 (define-public xorriso
167 (outputs '("out" "gui"))
170 (uri (string-append "mirror://gnu/xorriso/xorriso-"
174 "1rqpzj95f70jfwpn4lamasfgqpizjsipz12aprdhri777b4zas9v"))))
175 (build-system gnu-build-system)
178 (modify-phases %standard-phases
179 (add-after 'install 'install-frontends
180 (lambda* (#:key outputs #:allow-other-keys)
181 (let* ((out (assoc-ref outputs "out"))
182 (out-bin (string-append out "/bin")))
183 (install-file "frontend/grub-mkrescue-sed.sh" out-bin)
185 (add-after 'install 'move-gui-to-separate-output
186 (lambda* (#:key outputs #:allow-other-keys)
187 (let ((out (assoc-ref outputs "out"))
188 (gui (assoc-ref outputs "gui")))
191 (mkdir-p (string-append gui (dirname file)))
192 (rename-file (string-append out file)
193 (string-append gui file)))
194 (list "/bin/xorriso-tcltk"
195 "/share/info/xorriso-tcltk.info"
196 "/share/man/man1/xorriso-tcltk.1"))
197 (wrap-program (string-append gui "/bin/xorriso-tcltk")
198 `("PATH" ":" prefix (,(string-append out "/bin"))))
202 ("readline" ,readline)
205 (home-page "https://www.gnu.org/software/xorriso/")
206 (synopsis "Create, manipulate, burn ISO-9660 file systems")
208 "GNU Xorriso is a tool for copying files to and from ISO 9660 Rock
209 Ridge, a.k.a. Compact Disc File System, file systems and it allows
210 session-wise manipulation of them. It features a formatter and burner for
211 CD, DVD and BD. It can operate on existing ISO images or it can create new
212 ones. xorriso can then be used to copy files directly into or out of ISO
216 (define-public cdparanoia
222 (uri (string-append "http://downloads.xiph.org/releases/"
223 "cdparanoia/cdparanoia-III-"
227 "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80"))
228 (patches (search-patches "cdparanoia-fpic.patch"))
229 (modules '((guix build utils)))
232 ;; Make libraries respect LDFLAGS.
233 (substitute* '("paranoia/Makefile.in" "interface/Makefile.in")
234 (("-Wl,-soname") "$(LDFLAGS) -Wl,-soname"))
236 (build-system gnu-build-system)
238 `(#:tests? #f ; there is no check target
239 #:configure-flags ; Add $libdir to the RUNPATH of all the executables.
240 (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))))
241 (home-page "https://www.xiph.org/paranoia/")
242 (synopsis "Audio CD reading utility")
243 (description "Cdparanoia retrieves audio tracks from CDDA capable CDROM
244 drives. The data can be saved to a file or directed to standard output
245 in WAV, AIFF, AIFF-C or raw format. Most ATAPI, SCSI and several
246 proprietary CDROM drive makes are supported; cdparanoia can determine if the
247 target drive is CDDA capable. In addition to simple reading, cdparanoia adds
248 extra-robust data verification, synchronization, error handling and scratch
249 reconstruction capability.")
250 (license gpl2))) ; libraries under lgpl2.1
252 (define-public cdrdao
260 (url "https://github.com/cdrdao/cdrdao")
262 (string-append "rel_" (string-replace-substring version "." "_")))))
263 (file-name (git-file-name name version))
265 (base32 "1gcl8ibyylamy2d1piq3749nw3xrlp12r0spzp2gmni57b8a6b7j"))))
266 (build-system gnu-build-system)
270 ;; GCDMaster depends on obsolete libgnomeuimm, see
271 ;; <https://github.com/cdrdao/cdrdao/issues/3>.
272 "--without-gcdmaster"
273 ;; Use the native SCSI interface.
276 (modify-phases %standard-phases
277 (add-before 'bootstrap 'fix-configure.ac
279 ;; Remove reference to missing macro.
280 (substitute* "configure.ac" (("^AM_GCONF_SOURCE_2.*") ""))
283 `(("autoconf" ,autoconf)
284 ("automake" ,automake)
285 ("pkg-config" ,pkg-config)))
290 ("libvorbis" ,libvorbis)))
291 (home-page "http://cdrdao.sourceforge.net")
292 (synopsis "Read and write CDs in disk-at-once mode")
293 (description "cdrdao records audio or data CDs in disk-at-once (DAO) mode,
294 based on a textual description of the contents. This mode writes the complete
295 disc – lead-in, one or more tracks, and lead-out – in a single step and is
296 commonly used with audio CDs. @code{cdrdao} can also handle the bin/cue
297 format, commonly used for VCDs or disks with subchannel data.")
300 (define-public cdrtools
307 "mirror://sourceforge/cdrtools/cdrtools-" version ".tar.bz2"))
310 "03w6ypsmwwy4d7vh6zgwpc60v541vc5ywp8bdb758hbc4yv2wa7d"))
311 (modules '((guix build utils)))
314 ;; By default 'cdda2wav --help' would print a string like
315 ;; "Version 3.01_linux_4.19.10-gnu_x86_64_x86_64". Change
316 ;; it to not capture the kernel version of the build
317 ;; machine, to allow for reproducible builds.
318 (substitute* "cdda2wav/local.cnf.in"
321 "actual_os := $(shell uname -o)\n"
322 "actual_arch := $(shell uname -m)\n"
323 "VERSION_OS = _$(actual_os)_$(actual_arch)\n")))
325 (patches (search-patches "cdrtools-3.01-mkisofs-isoinfo.patch"))))
326 (build-system gnu-build-system)
327 ;; XXX cdrtools bundles a modified, relicensed early version of cdparanoia.
329 `(("linux-headers" ,linux-libre-headers)))
332 (list "RM=rm" "LN=ln" "SYMLINK=ln -s"
333 "CONFIG_SHELL=sh" "CCOM=gcc"
334 (string-append "INS_BASE=" (assoc-ref %outputs "out"))
335 (string-append "INS_RBASE=" (assoc-ref %outputs "out")))
336 ;; Parallel builds appear to be unsafe, see
337 ;; https://hydra.gnu.org/build/3346840/log/raw
340 (modify-phases %standard-phases
342 (add-before 'build 'set-linux-headers
344 (substitute* "autoconf/configure"
346 (assoc-ref %build-inputs "linux-headers")))
348 (add-before 'build 'substitute-dirs
350 (substitute* (append (find-files "DEFAULTS" "^Defaults\\.")
351 (find-files "DEFAULTS_ENG" "^Defaults\\.")
352 (find-files "TEMPLATES" "^Defaults\\."))
353 (("/opt/schily") (assoc-ref %outputs "out")))
355 #:tests? #f)) ; no tests
356 (synopsis "Command line utilities to manipulate and burn CD/DVD/BD images")
357 (description "cdrtools is a collection of command line utilities to create
358 CD's, DVD's or Blue Ray discs. The most important components are
359 @command{cdrecord}, a burning program, @command{cdda2wav}, a CD audio ripper
360 which uses libparanoia, and @command{mkisofs}, which can create various disc
362 (home-page "http://cdrtools.sourceforge.net/private/cdrecord.html")
364 ;; mkisofs is GPL, the other programs are CDDL.
365 (license (list cddl1.0 gpl2))))
367 (define-public dvd+rw-tools
369 (name "dvd+rw-tools")
374 "http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd+rw-tools-"
378 "1jkjvvnjcyxpql97xjjx0kwvy70kxpiznr2zpjy2hhci5s10zmpq"))
379 (patches (search-patches "dvd+rw-tools-add-include.patch"))))
380 (build-system gnu-build-system)
382 `(("cdrtools" ,cdrtools)))
386 `(#:tests? #f ; No tests.
388 (modify-phases %standard-phases
389 (add-after 'unpack 'fix-glibc-compatability
390 (lambda* (#:key inputs #:allow-other-keys)
391 ;; We use sed --in-place because substitute* cannot handle the
392 ;; character encoding used by growisofs.c.
393 (invoke "sed" "-i" "-e"
396 "<sys/stat.h>\\\n#include <sys/sysmacros.h>,")
399 (lambda _ (setenv "prefix" (assoc-ref %outputs "out")) #t))
400 (add-before 'build 'embed-mkisofs
401 (lambda* (#:key inputs #:allow-other-keys)
402 ;; We use sed --in-place because substitute* cannot handle the
403 ;; character encoding used by growisofs.c.
404 (invoke "sed" "-i" "-e"
407 "\"" (which "mkisofs") "\",")
409 (home-page "http://fy.chalmers.se/~appro/linux/DVD+RW/")
410 (synopsis "DVD and Blu-ray Disc burning tools")
411 (description "dvd+rw-tools, mostly known for its command
412 @command{growisofs}, is a collection of DVD and Blu-ray Disc burning tools.
413 It requires another program, such as @command{mkisofs}, @command{genisoimage},
414 or @command{xorrisofs} to create ISO 9660 images.")
417 (define-public dvdisaster
424 ;; Update this (and update HOME-PAGE) when/if one reappears.
425 (uri (string-append "https://web.archive.org/web/20180428070843/"
426 "http://dvdisaster.net/downloads/dvdisaster-"
429 (base32 "0f8gjnia2fxcbmhl8b3qkr5b7idl8m855dw7xw2fnmbqwvcm6k4w"))))
430 (build-system gnu-build-system)
434 `(("gettext" ,gettext-minimal)
435 ("pkg-config" ,pkg-config)
438 `(;; Parallel builds appear to be unsafe, see
439 ;; <http://hydra.gnu.org/build/49331/nixlog/1/raw>.
442 (modify-phases %standard-phases
445 (with-directory-excursion "regtest"
446 (substitute* "common.bash"
447 (("ISODIR=/var/tmp/regtest") "ISODIR=/tmp"))
448 (for-each invoke (find-files "." "rs.*\\.bash")))
450 (add-after 'install 'install-desktop
451 (lambda* (#:key outputs #:allow-other-keys)
452 (let* ((datadir (string-append (assoc-ref outputs "out") "/share")))
453 (substitute* "contrib/dvdisaster.desktop"
454 (("dvdisaster48.png") "dvdisaster.png"))
455 (install-file "contrib/dvdisaster.desktop"
456 (string-append datadir "/applications"))
459 (let* ((size (substring png
460 (string-index png char-set:digit)
461 (string-rindex png #\.)))
462 (icondir (string-append datadir "/icons/"
463 size "x" size "/apps")))
465 (copy-file png (string-append icondir "/dvdisaster.png"))))
466 (find-files "contrib" "dvdisaster[0-9]*\\.png"))
467 (mkdir-p (string-append datadir "/pixmaps"))
468 (copy-file "contrib/dvdisaster48.xpm"
469 (string-append datadir "/pixmaps/dvdisaster.xpm"))
471 (home-page (string-append "https://web.archive.org/web/20180428070843/"
472 "http://dvdisaster.net/en/index.html"))
473 (synopsis "Error correcting codes for optical media images")
474 (description "Optical media (CD,DVD,BD) keep their data only for a
475 finite time (typically for many years). After that time, data loss develops
476 slowly with read errors growing from the outer media region towards the
479 Dvdisaster stores data on CD/DVD/BD (supported media) in a way that it is
480 fully recoverable even after some read errors have developed. This enables
481 you to rescue the complete data to a new medium.
483 Data loss is prevented by using error correcting codes. Error correction
484 data is either added to the medium or kept in separate error correction
485 files. Dvdisaster works at the image level so that the recovery does not
486 depend on the file system of the medium. The maximum error correction
487 capacity is user-selectable.")
490 (define-public dvdstyler
497 (uri (string-append "mirror://sourceforge/dvdstyler/dvdstyler/"
498 version "/DVDStyler-" version ".tar.bz2"))
501 "0lwc0hn94m9r8fi07sjqz3fr618l6lnw3zsakxw7nlgnxbjsk7pi"))))
502 (build-system gnu-build-system)
505 (list (string-append "XMLTO="
506 (assoc-ref %build-inputs "xmlto")
507 "/bin/xmlto --searchpath "
508 (assoc-ref %build-inputs "docbook-xsl")
509 "/xml/xsl/docbook-xsl-" ,(package-version docbook-xsl)
511 (assoc-ref %build-inputs "docbook-xml")
514 (modify-phases %standard-phases
515 (add-after 'install 'wrap-program
516 (lambda* (#:key inputs outputs #:allow-other-keys)
517 (wrap-program (string-append (assoc-ref outputs "out") "/bin/dvdstyler")
520 (map (lambda (in) (string-append (assoc-ref inputs in) "/bin"))
521 '("cdrtools" "dvdauthor" "dvd+rw-tools" "ffmpeg"))
524 #:tests? #f)) ; No tests.
525 (inputs ; TODO package bundled wxvillalib
526 `(("wxwidgets" ,wxwidgets-3.1)
529 ("cdrtools" ,cdrtools)
530 ("dvd+rw-tools" ,dvd+rw-tools)
531 ("dvdauthor" ,dvdauthor)
533 ("fontconfig" ,fontconfig)
535 ("libjpeg" ,libjpeg-turbo)
536 ("ffmpeg" ,ffmpeg-3.4)))
538 `(("pkg-config" ,pkg-config)
542 ("gettext" ,gettext-minimal)
543 ("docbook-xml" ,docbook-xml)
544 ("docbook-xsl" ,docbook-xsl)
546 (synopsis "DVD authoring application")
547 (description "DVDStyler is a DVD authoring application which allows users
548 to burn video files in many formats to DVD discs, complete with individually
549 designed menus. It can be used to create professional-looking DVD's with
550 custom buttons, backgrounds and animations, from within a user-friendly
551 graphical interface.")
552 (home-page "https://www.dvdstyler.org")
555 (define-public libcue
562 (url "https://github.com/lipnitsk/libcue")
563 (commit (string-append "v" version))))
564 (file-name (git-file-name name version))
567 "1iqw4n01rv2jyk9lksagyxj8ml0kcfwk67n79zy1r6zv1xfp5ywm"))))
568 (build-system cmake-build-system)
570 `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON")))
574 (home-page "https://github.com/lipnitsk/libcue")
575 (synopsis "C library to parse cue sheets")
576 (description "Libcue is a C library to parse so-called @dfn{cue sheets}
577 which contain meta-data for CD/DVD tracks. It provides an API to manipulate
581 (define-public cd-discid
585 (home-page "http://linukz.org/cd-discid.shtml")
588 (uri (string-append "http://linukz.org/download/cd-discid-"
592 "0qrcvn7227qaayjcd5rm7z0k5q89qfy5qkdgwr5pd7ih0va8rmpz"))
593 (modules '((guix build utils)))
596 (substitute* "Makefile"
597 (("/usr/bin/install")
600 (build-system gnu-build-system)
603 #:phases (modify-phases %standard-phases (delete 'configure))
604 #:make-flags (list "CC=gcc"
605 (string-append "PREFIX="
606 (assoc-ref %outputs "out")))))
607 (synopsis "Get CDDB discid information from an audio CD")
609 "cd-discid is a command-line tool to retrieve CDDB discid information
617 (home-page "https://abcde.einval.com/")
620 (uri (string-append home-page "/download/abcde-"
624 "091ip2iwb6b67bhjsj05l0sxyq2whqjycbzqpkfbpm4dlyxx0v04"))
625 (modules '((guix build utils)))
628 (substitute* "Makefile"
629 (("/usr/bin/install")
632 (build-system gnu-build-system)
635 (modify-phases %standard-phases
637 (lambda* (#:key outputs inputs #:allow-other-keys)
638 (substitute* "Makefile"
640 (string-append "prefix = "
641 (assoc-ref outputs "out")
643 (("^sysconfdir = .*$")
644 (string-append "sysconfdir = "
645 (assoc-ref outputs "out")
648 (add-after 'install 'wrap
649 (lambda* (#:key inputs outputs #:allow-other-keys)
650 (let ((wget (assoc-ref inputs "wget"))
651 (vorbis (assoc-ref inputs "vorbis-tools"))
652 (parano (assoc-ref inputs "cdparanoia"))
653 (which (assoc-ref inputs "which"))
654 (discid (assoc-ref inputs "cd-discid"))
655 (perl-discid (assoc-ref inputs "perl-musicbrainz-discid"))
656 (perl-ws (assoc-ref inputs "perl-webservice-musicbrainz"))
657 (perl-mojo (assoc-ref inputs "perl-mojolicious"))
658 (flac (assoc-ref inputs "flac"))
659 (out (assoc-ref outputs "out")))
663 (,(string-append out "/bin:"
670 `("PERL5LIB" ":" prefix
671 (,(string-append perl-discid
672 "/lib/perl5/site_perl:"
674 "/lib/perl5/site_perl:"
676 "/lib/perl5/site_perl")))))
679 (find-files (string-append out "/bin")
682 #:tests? #f)) ; no test target
684 (inputs `(("wget" ,wget)
686 ("cdparanoia" ,cdparanoia)
687 ("cd-discid" ,cd-discid)
688 ("vorbis-tools" ,vorbis-tools)
691 ("perl-musicbrainz-discid" ,perl-musicbrainz-discid)
692 ("perl-webservice-musicbrainz" ,perl-webservice-musicbrainz)
693 ("perl-mojolicious" ,perl-mojolicious) ;indirect dependency
695 ;; A couple of Python and Perl scripts are included.
699 (synopsis "Command-line audio CD ripper")
701 "abcde is a front-end command-line utility (actually, a shell script)
702 that grabs tracks off a CD, encodes them to Ogg/Vorbis, MP3, FLAC, Ogg/Speex
703 and/or MPP/MP+ (Musepack) format, and tags them, all in one go.")
706 (define-public geteltorito
711 "https://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/")
714 (uri (string-append home-page name "-" version ".tar.gz"))
717 "1gkbm9ahj2mgqrkrfpibzclsriqgsbsvjh19fr815vpd9f6snkxv"))))
718 (build-system gnu-build-system)
720 `(#:tests? #f ; No tests.
722 (modify-phases %standard-phases
726 (lambda* (#:key outputs #:allow-other-keys)
727 (let ((out (assoc-ref outputs "out")))
728 (install-file "geteltorito"
729 (string-append out "/bin"))))))))
730 (inputs `(("perl" ,perl)))
731 (synopsis "Extract the boot image from a CD-ROM")
733 "@command{geteltorito} can extract the initial/default boot
734 image from CDs (and ISOs) that follow the El Torito specification
735 for bootable CD-ROMs.
737 Image data is written to standard output by default and all other
738 information is written to standard error.")
741 (define-public asunder
749 (string-append "http://www.littlesvr.ca/asunder/releases/asunder-"
752 (base32 "1x3l308ss0iqhz90qyjb94gyd8b4piyrm2nzjmg5kf049k9prjf1"))))
753 (build-system glib-or-gtk-build-system)
755 '(#:out-of-source? #f
756 #:phases (modify-phases %standard-phases
757 (add-after 'install 'wrap
758 (lambda* (#:key inputs outputs #:allow-other-keys)
759 (let ((program (string-append (assoc-ref outputs "out")
761 (define (bin-directory input-name)
762 (string-append (assoc-ref inputs input-name) "/bin"))
763 (wrap-program program
765 ,(map bin-directory (list "cdparanoia"
771 (native-inputs `(("intltool" ,intltool)
772 ("pkg-config" ,pkg-config)))
773 ;; TODO: Add the necessary packages for Musepack encoding.
774 (inputs `(("gtk+-2" ,gtk+-2)
777 ("cdparanoia" ,cdparanoia)
779 ("vorbis-tools" ,vorbis-tools)
781 ("opus-tools" ,opus-tools)
782 ("wavpack" ,wavpack)))
783 (home-page "http://www.littlesvr.ca/asunder/")
784 (synopsis "Graphical audio CD ripper and encoder")
786 "Asunder is a graphical audio CD ripper and encoder. It can save audio
787 tracks as WAV, MP3, Ogg Vorbis, FLAC, Opus, Wavpack, and Musepack. It can use
788 CDDB to name and tag each track automatically, and it allows for each track to
789 be by a different artist. Asunder can encode to multiple formats in one
790 session, and it can create M3U playlists.")
800 ;; The original suwald.com domain has expired.
802 (string-append "https://web.archive.org/web/20160327050927/"
803 "http://suwald.com/ripit/ripit-" version ".tar.gz")
804 (string-append "https://ponce.cc/slackware/sources/repo/ripit-"
807 (base32 "0ap71x477jy9c4jiqazb3y45hxdxm3jbq24x05g3vjyqzigi4x1b"))))
808 (build-system gnu-build-system)
810 `(#:tests? #f ; no test suite
812 (modify-phases %standard-phases
814 (add-after 'unpack 'patch-usr-bin-install
815 (lambda* (#:key inputs outputs #:allow-other-keys)
816 (substitute* "Makefile"
817 (("/usr/bin/install") (string-append
818 (assoc-ref inputs "coreutils")
820 (("\\$\\(DESTDIR\\)/usr/local") (assoc-ref outputs "out"))
821 (("../../etc") "etc")))))))
823 `(("coreutils" ,coreutils)))
827 `(("cdparanoia" ,cdparanoia)
829 ("vorbis-tools" ,vorbis-tools)
831 ("perl-cddb-get" ,perl-cddb-get)))
832 (home-page (string-append "https://web.archive.org/web/20170119092156/"
833 "http://www.suwald.com/ripit/about.php"))
834 (synopsis "Command-line program to extract audio CDs")
835 (description "RipIT is used to extract audio from CDs.")
838 (define-public ccd2cue
846 "mirror://gnu/ccd2cue/ccd2cue-" version
850 "1icrkg25hwx4gsn3dski2172ia4ywjh8m1sa17zmjclnrgdwy9c7"))))
851 (build-system gnu-build-system)
852 (synopsis "CCD to CUE sheet conversion")
854 "GNU ccd2cue is a preprocessor for CD burning software that allows
855 the conversion of the proprietary CCD format to the CUE format, which
856 is well-supported by free software. These files are commonly
857 distributed with CD images and are used to describe how tracks are
858 laid out on the image.")
859 (home-page "https://www.gnu.org/software/ccd2cue/")
862 (define-public libburn
868 (uri (string-append "http://files.libburnia-project.org/releases/"
869 "libburn-" version ".tar.gz"))
872 "0m1vyry6pi115nysfgb0cg313qqhnlxqdg7f920wpiar0z8mjl2j"))))
873 (build-system gnu-build-system)
875 `(("pkg-config" ,pkg-config)))
876 (home-page "https://dev.lovelyhq.com/libburnia/libburn")
877 (synopsis "Library for reading and writing optical discs")
879 "Libburn is a library for reading and writing optical discs.
880 Supported media are: CD-R, CD-RW, DVD-RAM, DVD+RW, DVD+R, DVD+R/DL,
881 DVD-RW, DVD-R, DVD-R/DL, BD-R, and BD-RE.")
884 (define-public libisofs
890 (uri (string-append "http://files.libburnia-project.org/releases/"
891 "libisofs-" version ".tar.gz"))
894 "13m82l13cb5d7ca53dv3akma1jr9gw0hnnshdwqpj6ahly0fv85a"))))
895 (build-system gnu-build-system)
900 `(("pkg-config" ,pkg-config)))
901 (home-page "https://dev.lovelyhq.com/libburnia/libisofs")
902 (synopsis "Library to create ISO 9660 images")
904 "Libisofs creates ISO 9660 (also known as ECMA-119) file system images
905 which can either be written to POSIX file objects or handed over to
906 libburn for being written directly to optical media.
907 It can read metadata of ISO 9660 filesystems, manipulate them, and use them
908 to produce new complete file system images or add-on images to be appended
909 to the read file system image.
910 Supported extensions to ISO 9660 are Rock Ridge, Joliet, AAIP, zisofs.")
913 (define-public cdrkit-libre
915 (name "cdrkit-libre")
919 ;; cdrkit.org is dead.
921 ;; ‘cdrkit-libre’ removes a couple of problematic files,
922 ;; see <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32165#14>.
924 "https://repo.parabola.nu/other/cdrkit-libre/cdrkit-libre-"
928 "0g2zyzb56czh429qy87lvaddzjnlcq8c616ddxsmsshz3clhyzrh"))))
929 (build-system cmake-build-system)
936 `(#:tests? #f ;no tests
938 (modify-phases %standard-phases
939 (add-after 'install 'old-cdrecord
940 (lambda* (#:key outputs #:allow-other-keys)
941 (with-directory-excursion (string-append (assoc-ref outputs "out")
943 (symlink "genisoimage" "mkisofs")
944 (symlink "wodim" "cdrecord"))
946 (home-page "https://repo.parabola.nu/other/cdrkit-libre/")
947 (synopsis "Command-line CD/DVD recorder")
948 (description "Cdrkit is a suite of programs for recording CDs and DVDs,
949 blanking CD-RW media, creating ISO-9660 file system images, extracting audio
950 CD data, and more. It's mostly compatible with @code{cdrtools}.")
953 (define-public libmirage
960 "mirror://sourceforge/cdemu/libmirage/libmirage-"
964 "0f8i2ha44rykkk3ac2q8zsw3y1zckw6qnf6zvkyrj3qqbzhrf3fm"))))
965 (build-system cmake-build-system)
967 `(("pkg-config" ,pkg-config)
968 ("intltool" ,intltool)))
974 (home-page "https://cdemu.sourceforge.io/")
975 (synopsis "CD-ROM image access library")
976 (description "libMirage is a CD-ROM image access library. It supports the
977 following formats: B6T, C2D, CCD, CDI, CIF, CUE, ISO, MDS, MDX, NRG, TOC. It
978 is written in C and based on GLib. Its aim is to provide uniform access to
979 the data stored in various image formats.")
982 (define-public cdemu-daemon
984 (name "cdemu-daemon")
989 "mirror://sourceforge/cdemu/cdemu-daemon/"
990 "cdemu-daemon-" version ".tar.xz"))
993 "16g6fv1lxkdmbsy6zh5sj54dvgwvm900fd18aq609yg8jnqm644d"))))
994 (build-system cmake-build-system)
996 `(("pkg-config" ,pkg-config)
997 ("intltool" ,intltool)))
999 `(("libmirage" ,libmirage)
1005 (home-page "https://cdemu.sourceforge.io/")
1006 (synopsis "CD/DVD-ROM device emulator")
1007 (description "CDemu is a software suite designed to emulate an optical
1008 drive and disc (including CD-ROMs and DVD-ROMs).")
1011 (define-public cdemu-client
1013 (name "cdemu-client")
1018 "mirror://sourceforge/cdemu/cdemu-client/cdemu-client-"
1022 "1prrdhv0ia0axc6b73crszqzh802wlkihz6d100yvg7wbgmqabd7"))))
1023 (build-system cmake-build-system)
1025 `(("pkg-config" ,pkg-config)
1026 ("intltool" ,intltool)))
1028 `(("python" ,python)
1029 ("python-pygobject" ,python-pygobject)
1030 ("cdemu-daemon" ,cdemu-daemon)))
1035 (modify-phases %standard-phases
1036 (add-after 'install 'patch-shebang
1037 (lambda* (#:key outputs #:allow-other-keys)
1038 (patch-shebang (string-append (assoc-ref outputs "out")
1041 (add-after 'patch-shebang 'wrap-program
1042 (lambda* (#:key outputs #:allow-other-keys)
1043 (let ((prog (string-append (assoc-ref outputs "out")
1046 `("PYTHONPATH" = (,(getenv "PYTHONPATH"))))
1048 (home-page "https://cdemu.sourceforge.io/")
1049 (synopsis "Command-line client for controlling cdemu-daemon")
1050 (description "CDEmu client is a simple command-line client for controlling
1053 It provides a way to perform the key tasks related to controlling the CDEmu
1054 daemon, such as loading and unloading devices, displaying devices' status and
1055 retrieving/setting devices' debug masks.")