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 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, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2017 ng0 <ng0@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>
17 ;;; This file is part of GNU Guix.
19 ;;; GNU Guix is free software; you can redistribute it and/or modify it
20 ;;; under the terms of the GNU General Public License as published by
21 ;;; the Free Software Foundation; either version 3 of the License, or (at
22 ;;; your option) any later version.
24 ;;; GNU Guix is distributed in the hope that it will be useful, but
25 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
26 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 ;;; GNU General Public License for more details.
29 ;;; You should have received a copy of the GNU General Public License
30 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
32 (define-module (gnu packages cdrom)
33 #:use-module (guix download)
34 #:use-module (guix git-download)
35 #:use-module (guix packages)
36 #:use-module ((guix licenses) #:select (lgpl2.1+ gpl2 gpl2+ gpl3+ cddl1.0))
37 #:use-module (guix build-system cmake)
38 #:use-module (guix build-system gnu)
39 #:use-module (guix build-system glib-or-gtk)
40 #:use-module (guix gexp)
41 #:use-module (gnu packages)
42 #:use-module (gnu packages acl)
43 #:use-module (gnu packages audio)
44 #:use-module (gnu packages bison)
45 #:use-module (gnu packages compression)
46 #:use-module (gnu packages flex)
47 #:use-module (gnu packages fontutils)
48 #:use-module (gnu packages gettext)
49 #:use-module (gnu packages docbook)
50 #:use-module (gnu packages xml)
51 #:use-module (gnu packages gtk)
52 #:use-module (gnu packages glib)
53 #:use-module (gnu packages m4)
54 #:use-module (gnu packages man)
55 #:use-module (gnu packages mp3)
56 #:use-module (gnu packages music)
57 #:use-module (gnu packages ncurses)
58 #:use-module (gnu packages elf)
59 #:use-module (gnu packages wxwidgets)
60 #:use-module (gnu packages linux)
61 #:use-module (gnu packages pkg-config)
62 #:use-module (gnu packages readline)
63 #:use-module (gnu packages base)
64 #:use-module (gnu packages perl)
65 #:use-module (gnu packages perl-web)
66 #:use-module (gnu packages python)
67 #:use-module (gnu packages image)
68 #:use-module (gnu packages photo)
69 #:use-module (gnu packages video)
70 #:use-module (gnu packages wget)
71 #:use-module (gnu packages xiph))
73 (define-public libcddb
79 (uri (string-append "mirror://sourceforge/libcddb/libcddb/" version
80 "/libcddb-" version ".tar.bz2"))
83 "0fr21a7vprdyy1bq6s99m0x420c9jm5fipsd63pqv8qyfkhhxkim"))))
84 (build-system gnu-build-system)
85 (arguments '(#:tests? #f)) ; tests rely on access to external servers
86 (home-page "http://libcddb.sourceforge.net/")
87 (synopsis "C library to access data on a CDDB server")
89 "Libcddb is a C library to access data on a CDDB server (freedb.org). It
92 1. search the database for possible CD matches;
94 2. retrieve detailed information about a specific CD;
96 3. submit new CD entries to the database.
98 Libcddb supports both the custom CDDB protocol and tunnelling the query and
99 read operations over plain HTTP. It is also possible to use an HTTP proxy
100 server. If you want to speed things up, you can make use of the built-in
101 caching facility provided by the library.")
104 (define-public libcdio
110 (uri (string-append "mirror://gnu/libcdio/libcdio-"
114 "0avi6apv5ydjy6b9c3z9a46rvp5i57qyr09vr7x4nndxkmcfjl45"))))
115 (build-system gnu-build-system)
117 `(("ncurses" ,ncurses)
118 ("libcddb" ,libcddb)))
120 `(("help2man" ,help2man)
121 ("pkg-config" ,pkg-config)))
122 (home-page "https://www.gnu.org/software/libcdio/")
123 (synopsis "CD Input and Control library")
125 "The GNU Compact Disc Input and Control Library (libcdio) is a library
126 for CD-ROM and CD image file access. It allows the developer to add CD
127 access to an application without having to worry about the OS- and
128 device-dependent properties of CD-ROM or the specific details of CD image
129 formats. It includes pycdio, a Python interface to libcdio, and
130 libcdio-paranoia, a library providing jitter-free and error-free audio
131 extraction from CDs.")
134 (define-public libcdio-paranoia
136 (name "libcdio-paranoia")
137 (version "10.2+2.0.0")
140 (uri (string-append "mirror://gnu/libcdio/libcdio-paranoia-"
144 "1h8k8z9r75h3p697f77z9j1blwb6gf2d5rik6z2q6420my6c2ra5"))))
145 (build-system gnu-build-system)
146 (native-inputs `(("pkg-config" ,pkg-config)))
147 (propagated-inputs `(("libcdio" ,libcdio)))
148 (home-page "https://www.gnu.org/software/libcdio/")
149 (synopsis "Jitter- and error-tolerant CD audio extraction")
151 "libcdio-paranoia is an implementation of CD paranoia libraries based on
155 (define-public xorriso
161 (uri (string-append "mirror://gnu/xorriso/xorriso-"
165 "1rqpzj95f70jfwpn4lamasfgqpizjsipz12aprdhri777b4zas9v"))))
166 (build-system gnu-build-system)
169 (modify-phases %standard-phases
170 (add-after 'install 'install-frontends
171 (lambda* (#:key outputs #:allow-other-keys)
172 (let* ((out (assoc-ref outputs "out"))
173 (out-bin (string-append out "/bin")))
174 (install-file "frontend/grub-mkrescue-sed.sh" out-bin)
178 ("readline" ,readline)
180 (home-page "https://www.gnu.org/software/xorriso/")
181 (synopsis "Create, manipulate, burn ISO-9660 file systems")
183 "GNU Xorriso is a tool for copying files to and from ISO 9660 Rock
184 Ridge, a.k.a. Compact Disc File System, file systems and it allows
185 session-wise manipulation of them. It features a formatter and burner for
186 CD, DVD and BD. It can operate on existing ISO images or it can create new
187 ones. xorriso can then be used to copy files directly into or out of ISO
191 (define-public cdparanoia
197 (uri (string-append "http://downloads.xiph.org/releases/"
198 "cdparanoia/cdparanoia-III-"
202 "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80"))
203 (patches (search-patches "cdparanoia-fpic.patch"))
204 (modules '((guix build utils)))
207 ;; Make libraries respect LDFLAGS.
208 (substitute* '("paranoia/Makefile.in" "interface/Makefile.in")
209 (("-Wl,-soname") "$(LDFLAGS) -Wl,-soname"))
211 (build-system gnu-build-system)
213 `(#:tests? #f ; there is no check target
214 #:configure-flags ; Add $libdir to the RUNPATH of all the executables.
215 (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))))
216 (home-page "http://www.xiph.org/paranoia/")
217 (synopsis "Audio CD reading utility")
218 (description "Cdparanoia retrieves audio tracks from CDDA capable CDROM
219 drives. The data can be saved to a file or directed to standard output
220 in WAV, AIFF, AIFF-C or raw format. Most ATAPI, SCSI and several
221 proprietary CDROM drive makes are supported; cdparanoia can determine if the
222 target drive is CDDA capable. In addition to simple reading, cdparanoia adds
223 extra-robust data verification, synchronization, error handling and scratch
224 reconstruction capability.")
225 (license gpl2))) ; libraries under lgpl2.1
227 (define-public cdrtools
234 "mirror://sourceforge/cdrtools/cdrtools-" version ".tar.bz2"))
237 "03w6ypsmwwy4d7vh6zgwpc60v541vc5ywp8bdb758hbc4yv2wa7d"))
238 (modules '((guix build utils)))
241 ;; By default 'cdda2wav --help' would print a string like
242 ;; "Version 3.01_linux_4.19.10-gnu_x86_64_x86_64". Change
243 ;; it to not capture the kernel version of the build
244 ;; machine, to allow for reproducible builds.
245 (substitute* "cdda2wav/local.cnf.in"
248 "actual_os := $(shell uname -o)\n"
249 "actual_arch := $(shell uname -m)\n"
250 "VERSION_OS = _$(actual_os)_$(actual_arch)\n")))
252 (patches (search-patches "cdrtools-3.01-mkisofs-isoinfo.patch"))))
253 (build-system gnu-build-system)
254 ;; XXX cdrtools bundles a modified, relicensed early version of cdparanoia.
256 `(("linux-headers" ,linux-libre-headers)))
259 (list "RM=rm" "LN=ln" "SYMLINK=ln -s"
260 "CONFIG_SHELL=sh" "CCOM=gcc"
261 (string-append "INS_BASE=" (assoc-ref %outputs "out"))
262 (string-append "INS_RBASE=" (assoc-ref %outputs "out")))
263 ;; Parallel builds appear to be unsafe, see
264 ;; https://hydra.gnu.org/build/3346840/log/raw
267 (modify-phases %standard-phases
269 (add-before 'build 'set-linux-headers
271 (substitute* "autoconf/configure"
273 (assoc-ref %build-inputs "linux-headers")))
275 (add-before 'build 'substitute-dirs
277 (substitute* (append (find-files "DEFAULTS" "^Defaults\\.")
278 (find-files "DEFAULTS_ENG" "^Defaults\\.")
279 (find-files "TEMPLATES" "^Defaults\\."))
280 (("/opt/schily") (assoc-ref %outputs "out")))
282 #:tests? #f)) ; no tests
283 (synopsis "Command line utilities to manipulate and burn CD/DVD/BD images")
284 (description "cdrtools is a collection of command line utilities to create
285 CD's, DVD's or Blue Ray discs. The most important components are
286 @command{cdrecord}, a burning program, @command{cdda2wav}, a CD audio ripper
287 which uses libparanoia, and @command{mkisofs}, which can create various disc
289 (home-page "http://cdrtools.sourceforge.net/private/cdrecord.html")
291 ;; mkisofs is GPL, the other programs are CDDL.
292 (license (list cddl1.0 gpl2))))
294 (define-public dvd+rw-tools
296 (name "dvd+rw-tools")
301 "http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd+rw-tools-"
305 "1jkjvvnjcyxpql97xjjx0kwvy70kxpiznr2zpjy2hhci5s10zmpq"))
306 (patches (search-patches "dvd+rw-tools-add-include.patch"))))
307 (build-system gnu-build-system)
309 `(("cdrtools" ,cdrtools)))
313 `(#:tests? #f ; No tests.
315 (modify-phases %standard-phases
316 (add-after 'unpack 'fix-glibc-compatability
317 (lambda* (#:key inputs #:allow-other-keys)
318 ;; We use sed --in-place because substitute* cannot handle the
319 ;; character encoding used by growisofs.c.
320 (invoke "sed" "-i" "-e"
323 "<sys/stat.h>\\\n#include <sys/sysmacros.h>,")
326 (lambda _ (setenv "prefix" (assoc-ref %outputs "out")) #t))
327 (add-before 'build 'embed-mkisofs
328 (lambda* (#:key inputs #:allow-other-keys)
329 ;; We use sed --in-place because substitute* cannot handle the
330 ;; character encoding used by growisofs.c.
331 (invoke "sed" "-i" "-e"
334 "\"" (which "mkisofs") "\",")
336 (home-page "http://fy.chalmers.se/~appro/linux/DVD+RW/")
337 (synopsis "DVD and Blu-ray Disc burning tools")
338 (description "dvd+rw-tools, mostly known for its command
339 @command{growisofs}, is a collection of DVD and Blu-ray Disc burning tools.
340 It requires another program, such as @command{mkisofs}, @command{genisoimage},
341 or @command{xorrisofs} to create ISO 9660 images.")
344 (define-public dvdisaster
351 ;; Update this (and update HOME-PAGE) when/if one reappears.
352 (uri (string-append "https://web.archive.org/web/20180428070843/"
353 "http://dvdisaster.net/downloads/dvdisaster-"
356 (base32 "0f8gjnia2fxcbmhl8b3qkr5b7idl8m855dw7xw2fnmbqwvcm6k4w"))))
357 (build-system gnu-build-system)
361 `(("gettext" ,gettext-minimal)
362 ("pkg-config" ,pkg-config)
365 `(;; Parallel builds appear to be unsafe, see
366 ;; <http://hydra.gnu.org/build/49331/nixlog/1/raw>.
369 (modify-phases %standard-phases
372 (with-directory-excursion "regtest"
373 (substitute* "common.bash"
374 (("ISODIR=/var/tmp/regtest") "ISODIR=/tmp"))
375 (for-each invoke (find-files "." "rs.*\\.bash")))
377 (add-after 'install 'install-desktop
378 (lambda* (#:key outputs #:allow-other-keys)
379 (let* ((datadir (string-append (assoc-ref outputs "out") "/share")))
380 (substitute* "contrib/dvdisaster.desktop"
381 (("dvdisaster48.png") "dvdisaster.png"))
382 (install-file "contrib/dvdisaster.desktop"
383 (string-append datadir "/applications"))
386 (let* ((size (substring png
387 (string-index png char-set:digit)
388 (string-rindex png #\.)))
389 (icondir (string-append datadir "/icons/"
390 size "x" size "/apps")))
392 (copy-file png (string-append icondir "/dvdisaster.png"))))
393 (find-files "contrib" "dvdisaster[0-9]*\\.png"))
394 (mkdir-p (string-append datadir "/pixmaps"))
395 (copy-file "contrib/dvdisaster48.xpm"
396 (string-append datadir "/pixmaps/dvdisaster.xpm"))
398 (home-page (string-append "https://web.archive.org/web/20180428070843/"
399 "http://dvdisaster.net/en/index.html"))
400 (synopsis "Error correcting codes for optical media images")
401 (description "Optical media (CD,DVD,BD) keep their data only for a
402 finite time (typically for many years). After that time, data loss develops
403 slowly with read errors growing from the outer media region towards the
406 Dvdisaster stores data on CD/DVD/BD (supported media) in a way that it is
407 fully recoverable even after some read errors have developed. This enables
408 you to rescue the complete data to a new medium.
410 Data loss is prevented by using error correcting codes. Error correction
411 data is either added to the medium or kept in separate error correction
412 files. Dvdisaster works at the image level so that the recovery does not
413 depend on the file system of the medium. The maximum error correction
414 capacity is user-selectable.")
417 (define-public dvdstyler
424 (uri (string-append "mirror://sourceforge/dvdstyler/dvdstyler/"
425 version "/DVDStyler-" version ".tar.bz2"))
428 "0lwc0hn94m9r8fi07sjqz3fr618l6lnw3zsakxw7nlgnxbjsk7pi"))))
429 (build-system gnu-build-system)
432 (list (string-append "XMLTO="
433 (assoc-ref %build-inputs "xmlto")
434 "/bin/xmlto --searchpath "
435 (assoc-ref %build-inputs "docbook-xsl")
436 "/xml/xsl/docbook-xsl-" ,(package-version docbook-xsl)
438 (assoc-ref %build-inputs "docbook-xml")
441 (modify-phases %standard-phases
442 (add-after 'install 'wrap-program
443 (lambda* (#:key inputs outputs #:allow-other-keys)
444 (wrap-program (string-append (assoc-ref outputs "out") "/bin/dvdstyler")
447 (map (lambda (in) (string-append (assoc-ref inputs in) "/bin"))
448 '("cdrtools" "dvdauthor" "dvd+rw-tools" "ffmpeg"))
451 #:tests? #f)) ; No tests.
452 (inputs ; TODO package bundled wxvillalib
453 `(("wxwidgets" ,wxwidgets-3.1)
456 ("cdrtools" ,cdrtools)
457 ("dvd+rw-tools" ,dvd+rw-tools)
458 ("dvdauthor" ,dvdauthor)
460 ("fontconfig" ,fontconfig)
463 ("ffmpeg" ,ffmpeg-3.4)))
465 `(("pkg-config" ,pkg-config)
469 ("gettext" ,gnu-gettext)
470 ("docbook-xml" ,docbook-xml)
471 ("docbook-xsl" ,docbook-xsl)
473 (synopsis "DVD authoring application")
474 (description "DVDStyler is a DVD authoring application which allows users
475 to burn video files in many formats to DVD discs, complete with individually
476 designed menus. It can be used to create professional-looking DVD's with
477 custom buttons, backgrounds and animations, from within a user-friendly
478 graphical interface.")
479 (home-page "https://www.dvdstyler.org")
482 (define-public libcue
489 (url "https://github.com/lipnitsk/libcue.git")
490 (commit (string-append "v" version))))
491 (file-name (git-file-name name version))
494 "1iqw4n01rv2jyk9lksagyxj8ml0kcfwk67n79zy1r6zv1xfp5ywm"))))
495 (build-system cmake-build-system)
497 `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON")))
501 (home-page "https://github.com/lipnitsk/libcue")
502 (synopsis "C library to parse cue sheets")
503 (description "Libcue is a C library to parse so-called @dfn{cue sheets}
504 which contain meta-data for CD/DVD tracks. It provides an API to manipulate
508 (define-public cd-discid
512 (home-page "http://linukz.org/cd-discid.shtml")
515 (uri (string-append "http://linukz.org/download/cd-discid-"
519 "0qrcvn7227qaayjcd5rm7z0k5q89qfy5qkdgwr5pd7ih0va8rmpz"))
520 (modules '((guix build utils)))
523 (substitute* "Makefile"
524 (("/usr/bin/install")
527 (build-system gnu-build-system)
530 #:phases (modify-phases %standard-phases (delete 'configure))
531 #:make-flags (list "CC=gcc"
532 (string-append "PREFIX="
533 (assoc-ref %outputs "out")))))
534 (synopsis "Get CDDB discid information from an audio CD")
536 "cd-discid is a command-line tool to retrieve CDDB discid information
544 (home-page "https://abcde.einval.com/")
547 (uri (string-append home-page "/download/abcde-"
551 "091ip2iwb6b67bhjsj05l0sxyq2whqjycbzqpkfbpm4dlyxx0v04"))
552 (modules '((guix build utils)))
555 (substitute* "Makefile"
556 (("/usr/bin/install")
559 (build-system gnu-build-system)
562 (modify-phases %standard-phases
564 (lambda* (#:key outputs inputs #:allow-other-keys)
565 (substitute* "Makefile"
567 (string-append "prefix = "
568 (assoc-ref outputs "out")
570 (("^sysconfdir = .*$")
571 (string-append "sysconfdir = "
572 (assoc-ref outputs "out")
575 (add-after 'install 'wrap
576 (lambda* (#:key inputs outputs #:allow-other-keys)
577 (let ((wget (assoc-ref inputs "wget"))
578 (vorbis (assoc-ref inputs "vorbis-tools"))
579 (parano (assoc-ref inputs "cdparanoia"))
580 (which (assoc-ref inputs "which"))
581 (discid (assoc-ref inputs "cd-discid"))
582 (perl-discid (assoc-ref inputs "perl-musicbrainz-discid"))
583 (perl-ws (assoc-ref inputs "perl-webservice-musicbrainz"))
584 (perl-mojo (assoc-ref inputs "perl-mojolicious"))
585 (flac (assoc-ref inputs "flac"))
586 (out (assoc-ref outputs "out")))
590 (,(string-append out "/bin:"
597 `("PERL5LIB" ":" prefix
598 (,(string-append perl-discid
599 "/lib/perl5/site_perl:"
601 "/lib/perl5/site_perl:"
603 "/lib/perl5/site_perl")))))
606 (find-files (string-append out "/bin")
609 #:tests? #f)) ; no test target
611 (inputs `(("wget" ,wget)
613 ("cdparanoia" ,cdparanoia)
614 ("cd-discid" ,cd-discid)
615 ("vorbis-tools" ,vorbis-tools)
618 ("perl-musicbrainz-discid" ,perl-musicbrainz-discid)
619 ("perl-webservice-musicbrainz" ,perl-webservice-musicbrainz)
620 ("perl-mojolicious" ,perl-mojolicious) ;indirect dependency
622 ;; A couple of Python and Perl scripts are included.
626 (synopsis "Command-line audio CD ripper")
628 "abcde is a front-end command-line utility (actually, a shell script)
629 that grabs tracks off a CD, encodes them to Ogg/Vorbis, MP3, FLAC, Ogg/Speex
630 and/or MPP/MP+ (Musepack) format, and tags them, all in one go.")
633 (define-public geteltorito
638 "https://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/")
641 (uri (string-append home-page name "-" version ".tar.gz"))
644 "1gkbm9ahj2mgqrkrfpibzclsriqgsbsvjh19fr815vpd9f6snkxv"))))
645 (build-system gnu-build-system)
647 `(#:tests? #f ; No tests.
649 (modify-phases %standard-phases
653 (lambda* (#:key outputs #:allow-other-keys)
654 (let ((out (assoc-ref outputs "out")))
655 (install-file "geteltorito"
656 (string-append out "/bin"))))))))
657 (inputs `(("perl" ,perl)))
658 (synopsis "Extract the boot image from a CD-ROM")
660 "@command{geteltorito} can extract the initial/default boot
661 image from CDs (and ISOs) that follow the El Torito specification
662 for bootable CD-ROMs.
664 Image data is written to standard output by default and all other
665 information is written to standard error.")
668 (define-public asunder
675 (string-append "http://www.littlesvr.ca/asunder/releases/asunder-"
680 "069x6az2r3wlb2hd07iz0hxpxwknw7s9h7pyhnkmzv1pw9ci3kk4"))))
681 (build-system glib-or-gtk-build-system)
683 '(#:out-of-source? #f
684 #:phases (modify-phases %standard-phases
685 (add-after 'install 'wrap
686 (lambda* (#:key inputs outputs #:allow-other-keys)
687 (let ((program (string-append (assoc-ref outputs "out")
689 (define (bin-directory input-name)
690 (string-append (assoc-ref inputs input-name) "/bin"))
691 (wrap-program program
693 ,(map bin-directory (list "cdparanoia"
699 (native-inputs `(("intltool" ,intltool)
700 ("pkg-config" ,pkg-config)))
701 ;; TODO: Add the necessary packages for Musepack encoding.
702 (inputs `(("gtk+-2" ,gtk+-2)
705 ("cdparanoia" ,cdparanoia)
707 ("vorbis-tools" ,vorbis-tools)
709 ("opus-tools" ,opus-tools)
710 ("wavpack" ,wavpack)))
711 (home-page "http://www.littlesvr.ca/asunder/")
712 (synopsis "Graphical audio CD ripper and encoder")
714 "Asunder is a graphical audio CD ripper and encoder. It can save audio
715 tracks as WAV, MP3, Ogg Vorbis, FLAC, Opus, Wavpack, and Musepack. It can use
716 CDDB to name and tag each track automatically, and it allows for each track to
717 be by a different artist. Asunder can encode to multiple formats in one
718 session, and it can create M3U playlists.")
728 ;; The original suwald.com domain has expired.
730 (string-append "https://web.archive.org/web/20160327050927/"
731 "http://suwald.com/ripit/ripit-" version ".tar.gz")
732 (string-append "https://ponce.cc/slackware/sources/repo/ripit-"
735 (base32 "0ap71x477jy9c4jiqazb3y45hxdxm3jbq24x05g3vjyqzigi4x1b"))))
736 (build-system gnu-build-system)
738 `(#:tests? #f ; no test suite
740 (modify-phases %standard-phases
742 (add-after 'unpack 'patch-usr-bin-install
743 (lambda* (#:key inputs outputs #:allow-other-keys)
744 (substitute* "Makefile"
745 (("/usr/bin/install") (string-append
746 (assoc-ref inputs "coreutils")
748 (("\\$\\(DESTDIR\\)/usr/local") (assoc-ref outputs "out"))
749 (("../../etc") "etc")))))))
751 `(("coreutils" ,coreutils)))
755 `(("cdparanoia" ,cdparanoia)
757 ("vorbis-tools" ,vorbis-tools)
759 ("perl-cddb-get" ,perl-cddb-get)))
760 (home-page (string-append "https://web.archive.org/web/20170119092156/"
761 "http://www.suwald.com/ripit/about.php"))
762 (synopsis "Command-line program to extract audio CDs")
763 (description "RipIT is used to extract audio from CDs.")
766 (define-public ccd2cue
774 "mirror://gnu/ccd2cue/ccd2cue-" version
778 "1icrkg25hwx4gsn3dski2172ia4ywjh8m1sa17zmjclnrgdwy9c7"))))
779 (build-system gnu-build-system)
780 (synopsis "CCD to CUE sheet conversion")
782 "GNU ccd2cue is a preprocessor for CD burning software that allows
783 the conversion of the proprietary CCD format to the CUE format, which
784 is well-supported by free software. These files are commonly
785 distributed with CD images and are used to describe how tracks are
786 laid out on the image.")
787 (home-page "https://www.gnu.org/software/ccd2cue/")
790 (define-public libburn
796 (uri (string-append "http://files.libburnia-project.org/releases/"
797 "libburn-" version ".tar.gz"))
800 "09sjrvq8xsj1gnl2wwyv4lbmicyzzl6x1ac2rrn53xnp34bxnckv"))))
801 (build-system gnu-build-system)
803 `(("pkg-config" ,pkg-config)))
804 (home-page "https://dev.lovelyhq.com/libburnia/libburn")
805 (synopsis "Library for reading and writing optical discs")
807 "Libburn is a library for reading and writing optical discs.
808 Supported media are: CD-R, CD-RW, DVD-RAM, DVD+RW, DVD+R, DVD+R/DL,
809 DVD-RW, DVD-R, DVD-R/DL, BD-R, and BD-RE.")
812 (define-public libisofs
818 (uri (string-append "http://files.libburnia-project.org/releases/"
819 "libisofs-" version ".tar.gz"))
822 "002mcyqwg625a8hqvsrmgm26mhhfwj0j7rahfhsqirmk02b16npg"))))
823 (build-system gnu-build-system)
828 `(("pkg-config" ,pkg-config)))
829 (home-page "https://dev.lovelyhq.com/libburnia/libisofs")
830 (synopsis "Library to create ISO 9660 images")
832 "Libisofs creates ISO 9660 (also known as ECMA-119) file system images
833 which can either be written to POSIX file objects or handed over to
834 libburn for being written directly to optical media.
835 It can read metadata of ISO 9660 filesystems, manipulate them, and use them
836 to produce new complete file system images or add-on images to be appended
837 to the read file system image.
838 Supported extensions to ISO 9660 are Rock Ridge, Joliet, AAIP, zisofs.")
841 (define-public cdrkit-libre
843 (name "cdrkit-libre")
847 ;; cdrkit.org is dead.
849 ;; ‘cdrkit-libre’ removes a couple of problematic files,
850 ;; see <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32165#14>.
852 "https://repo.parabola.nu/other/cdrkit-libre/cdrkit-libre-"
856 "0g2zyzb56czh429qy87lvaddzjnlcq8c616ddxsmsshz3clhyzrh"))))
857 (build-system cmake-build-system)
864 `(#:tests? #f ;no tests
866 (modify-phases %standard-phases
867 (add-after 'install 'old-cdrecord
868 (lambda* (#:key outputs #:allow-other-keys)
869 (with-directory-excursion (string-append (assoc-ref outputs "out")
871 (symlink "genisoimage" "mkisofs")
872 (symlink "wodim" "cdrecord"))
874 (home-page "https://repo.parabola.nu/other/cdrkit-libre/")
875 (synopsis "Command-line CD/DVD recorder")
876 (description "Cdrkit is a suite of programs for recording CDs and DVDs,
877 blanking CD-RW media, creating ISO-9660 file system images, extracting audio
878 CD data, and more. It's mostly compatible with @code{cdrtools}.")
881 (define-public libmirage
888 "https://downloads.sourceforge.net/cdemu/libmirage-"
892 "08mfvqyk3833ksfd47i4j3ppmrw5ry219km6h7lywdh9hm9x14yf"))))
893 (build-system cmake-build-system)
895 `(("pkg-config" ,pkg-config)
896 ("intltool" ,intltool)))
902 (home-page "https://cdemu.sourceforge.io/")
903 (synopsis "CD-ROM image access library")
904 (description "libMirage is a CD-ROM image access library. It supports the
905 following formats: B6T, C2D, CCD, CDI, CIF, CUE, ISO, MDS, MDX, NRG, TOC. It
906 is written in C and based on GLib. Its aim is to provide uniform access to
907 the data stored in various image formats.")
910 (define-public cdemu-daemon
912 (name "cdemu-daemon")
917 "https://downloads.sourceforge.net/cdemu/cdemu-daemon/cdemu-daemon-"
921 "022xzgwmncswb9md71w3ly3mjkdfc93lbij2llp2jamq8grxjjxr"))))
922 (build-system cmake-build-system)
924 `(("pkg-config" ,pkg-config)
925 ("intltool" ,intltool)))
927 `(("libmirage" ,libmirage)
933 (home-page "https://cdemu.sourceforge.io/")
934 (synopsis "CD/DVD-ROM device emulator")
935 (description "CDemu is a software suite designed to emulate an optical
936 drive and disc (including CD-ROMs and DVD-ROMs).")
939 (define-public cdemu-client
941 (name "cdemu-client")
946 "https://downloads.sourceforge.net/cdemu/cdemu-client-"
950 "1bvc2m63fx03rbp3ihgl2n7k24lwg5ydwkmr84gsjfcxp46q10zq"))))
951 (build-system cmake-build-system)
953 `(("pkg-config" ,pkg-config)
954 ("intltool" ,intltool)))
957 ("python-pygobject" ,python-pygobject)
958 ("cdemu-daemon" ,cdemu-daemon)))
963 (modify-phases %standard-phases
964 (add-after 'install 'patch-shebang
965 (lambda* (#:key outputs #:allow-other-keys)
966 (patch-shebang (string-append (assoc-ref outputs "out")
969 (add-after 'patch-shebang 'wrap-program
970 (lambda* (#:key outputs #:allow-other-keys)
971 (let ((prog (string-append (assoc-ref outputs "out")
974 `("PYTHONPATH" = (,(getenv "PYTHONPATH"))))
976 (home-page "https://cdemu.sourceforge.io/")
977 (synopsis "Command-line client for controlling cdemu-daemon")
978 (description "CDEmu client is a simple command-line client for controlling
981 It provides a way to perform the key tasks related to controlling the CDEmu
982 daemon, such as loading and unloading devices, displaying devices' status and
983 retrieving/setting devices' debug masks.")