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 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 "0jr8ppdm80c533nzmrpz3iffnpc6nhvsria1di9f4jg1l19a03fd"))))
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+0.94+2")
140 (uri (string-append "mirror://gnu/libcdio/libcdio-paranoia-"
144 "0h8rr1ir05r29rgawa1ccw335668k4s3zq4yg9095svyx7n843yn"))))
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 "0aq6lvlwlkxz56l5sbvgycr6j5c82ch2bv6zrnc2345ibfpafgx9"))
167 (search-patches "xorriso-no-partition-table-in-inner-efi.patch"
168 "xorriso-no-mbr-in-inner-efi.patch"))))
169 (build-system gnu-build-system)
172 (modify-phases %standard-phases
173 (add-after 'install 'install-frontends
174 (lambda* (#:key outputs #:allow-other-keys)
175 (let* ((out (assoc-ref outputs "out"))
176 (out-bin (string-append out "/bin")))
177 (install-file "frontend/grub-mkrescue-sed.sh" out-bin)
181 ("readline" ,readline)
183 (home-page "https://www.gnu.org/software/xorriso/")
184 (synopsis "Create, manipulate, burn ISO-9660 file systems")
186 "GNU Xorriso is a tool for copying files to and from ISO 9660 Rock
187 Ridge, a.k.a. Compact Disc File System, file systems and it allows
188 session-wise manipulation of them. It features a formatter and burner for
189 CD, DVD and BD. It can operate on existing ISO images or it can create new
190 ones. xorriso can then be used to copy files directly into or out of ISO
194 (define-public cdparanoia
200 (uri (string-append "http://downloads.xiph.org/releases/"
201 "cdparanoia/cdparanoia-III-"
205 "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80"))
206 (patches (search-patches "cdparanoia-fpic.patch"))
207 (modules '((guix build utils)))
210 ;; Make libraries respect LDFLAGS.
211 (substitute* '("paranoia/Makefile.in" "interface/Makefile.in")
212 (("-Wl,-soname") "$(LDFLAGS) -Wl,-soname"))
214 (build-system gnu-build-system)
216 `(#:tests? #f ; there is no check target
217 #:configure-flags ; Add $libdir to the RUNPATH of all the executables.
218 (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))))
219 (home-page "http://www.xiph.org/paranoia/")
220 (synopsis "Audio CD reading utility")
221 (description "Cdparanoia retrieves audio tracks from CDDA capable CDROM
222 drives. The data can be saved to a file or directed to standard output
223 in WAV, AIFF, AIFF-C or raw format. Most ATAPI, SCSI and several
224 proprietary CDROM drive makes are supported; cdparanoia can determine if the
225 target drive is CDDA capable. In addition to simple reading, cdparanoia adds
226 extra-robust data verification, synchronization, error handling and scratch
227 reconstruction capability.")
228 (license gpl2))) ; libraries under lgpl2.1
230 (define-public cdrtools
237 "mirror://sourceforge/cdrtools/cdrtools-" version ".tar.bz2"))
240 "03w6ypsmwwy4d7vh6zgwpc60v541vc5ywp8bdb758hbc4yv2wa7d"))
241 (modules '((guix build utils)))
244 ;; By default 'cdda2wav --help' would print a string like
245 ;; "Version 3.01_linux_4.19.10-gnu_x86_64_x86_64". Change
246 ;; it to not capture the kernel version of the build
247 ;; machine, to allow for reproducible builds.
248 (substitute* "cdda2wav/local.cnf.in"
251 "actual_os := $(shell uname -o)\n"
252 "actual_arch := $(shell uname -m)\n"
253 "VERSION_OS = _$(actual_os)_$(actual_arch)\n")))
255 (patches (search-patches "cdrtools-3.01-mkisofs-isoinfo.patch"))))
256 (build-system gnu-build-system)
257 ;; XXX cdrtools bundles a modified, relicensed early version of cdparanoia.
259 `(("linux-headers" ,linux-libre-headers)))
262 (list "RM=rm" "LN=ln" "SYMLINK=ln -s"
263 "CONFIG_SHELL=sh" "CCOM=gcc"
264 (string-append "INS_BASE=" (assoc-ref %outputs "out"))
265 (string-append "INS_RBASE=" (assoc-ref %outputs "out")))
266 ;; Parallel builds appear to be unsafe, see
267 ;; https://hydra.gnu.org/build/3346840/log/raw
270 (modify-phases %standard-phases
272 (add-before 'build 'set-linux-headers
274 (substitute* "autoconf/configure"
276 (assoc-ref %build-inputs "linux-headers")))
278 (add-before 'build 'substitute-dirs
280 (substitute* (append (find-files "DEFAULTS" "^Defaults\\.")
281 (find-files "DEFAULTS_ENG" "^Defaults\\.")
282 (find-files "TEMPLATES" "^Defaults\\."))
283 (("/opt/schily") (assoc-ref %outputs "out")))
285 #:tests? #f)) ; no tests
286 (synopsis "Command line utilities to manipulate and burn CD/DVD/BD images")
287 (description "cdrtools is a collection of command line utilities to create
288 CD's, DVD's or Blue Ray discs. The most important components are
289 @command{cdrecord}, a burning program, @command{cdda2wav}, a CD audio ripper
290 which uses libparanoia, and @command{mkisofs}, which can create various disc
292 (home-page "http://cdrtools.sourceforge.net/private/cdrecord.html")
294 ;; mkisofs is GPL, the other programs are CDDL.
295 (license (list cddl1.0 gpl2))))
297 (define-public dvd+rw-tools
299 (name "dvd+rw-tools")
304 "http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd+rw-tools-"
308 "1jkjvvnjcyxpql97xjjx0kwvy70kxpiznr2zpjy2hhci5s10zmpq"))
309 (patches (search-patches "dvd+rw-tools-add-include.patch"))))
310 (build-system gnu-build-system)
312 `(("cdrtools" ,cdrtools)))
316 `(#:tests? #f ; No tests.
318 (modify-phases %standard-phases
319 (add-after 'unpack 'fix-glibc-compatability
320 (lambda* (#:key inputs #:allow-other-keys)
321 ;; We use sed --in-place because substitute* cannot handle the
322 ;; character encoding used by growisofs.c.
323 (invoke "sed" "-i" "-e"
326 "<sys/stat.h>\\\n#include <sys/sysmacros.h>,")
329 (lambda _ (setenv "prefix" (assoc-ref %outputs "out")) #t))
330 (add-before 'build 'embed-mkisofs
331 (lambda* (#:key inputs #:allow-other-keys)
332 ;; We use sed --in-place because substitute* cannot handle the
333 ;; character encoding used by growisofs.c.
334 (invoke "sed" "-i" "-e"
337 "\"" (which "mkisofs") "\",")
339 (home-page "http://fy.chalmers.se/~appro/linux/DVD+RW/")
340 (synopsis "DVD and Blu-ray Disc burning tools")
341 (description "dvd+rw-tools, mostly known for its command
342 @command{growisofs}, is a collection of DVD and Blu-ray Disc burning tools.
343 It requires another program, such as @command{mkisofs}, @command{genisoimage},
344 or @command{xorrisofs} to create ISO 9660 images.")
347 (define-public dvdisaster
354 ;; Update this (and update HOME-PAGE) when/if one reappears.
355 (uri (string-append "https://web.archive.org/web/20180428070843/"
356 "http://dvdisaster.net/downloads/dvdisaster-"
359 (base32 "0f8gjnia2fxcbmhl8b3qkr5b7idl8m855dw7xw2fnmbqwvcm6k4w"))))
360 (build-system gnu-build-system)
364 `(("gettext" ,gettext-minimal)
365 ("pkg-config" ,pkg-config)
368 `(;; Parallel builds appear to be unsafe, see
369 ;; <http://hydra.gnu.org/build/49331/nixlog/1/raw>.
372 (modify-phases %standard-phases
375 (with-directory-excursion "regtest"
376 (substitute* "common.bash"
377 (("ISODIR=/var/tmp/regtest") "ISODIR=/tmp"))
378 (for-each invoke (find-files "." "rs.*\\.bash")))
380 (add-after 'install 'install-desktop
381 (lambda* (#:key outputs #:allow-other-keys)
382 (let* ((datadir (string-append (assoc-ref outputs "out") "/share")))
383 (substitute* "contrib/dvdisaster.desktop"
384 (("dvdisaster48.png") "dvdisaster.png"))
385 (install-file "contrib/dvdisaster.desktop"
386 (string-append datadir "/applications"))
389 (let* ((size (substring png
390 (string-index png char-set:digit)
391 (string-rindex png #\.)))
392 (icondir (string-append datadir "/icons/"
393 size "x" size "/apps")))
395 (copy-file png (string-append icondir "/dvdisaster.png"))))
396 (find-files "contrib" "dvdisaster[0-9]*\\.png"))
397 (mkdir-p (string-append datadir "/pixmaps"))
398 (copy-file "contrib/dvdisaster48.xpm"
399 (string-append datadir "/pixmaps/dvdisaster.xpm"))
401 (home-page (string-append "https://web.archive.org/web/20180428070843/"
402 "http://dvdisaster.net/en/index.html"))
403 (synopsis "Error correcting codes for optical media images")
404 (description "Optical media (CD,DVD,BD) keep their data only for a
405 finite time (typically for many years). After that time, data loss develops
406 slowly with read errors growing from the outer media region towards the
409 Dvdisaster stores data on CD/DVD/BD (supported media) in a way that it is
410 fully recoverable even after some read errors have developed. This enables
411 you to rescue the complete data to a new medium.
413 Data loss is prevented by using error correcting codes. Error correction
414 data is either added to the medium or kept in separate error correction
415 files. Dvdisaster works at the image level so that the recovery does not
416 depend on the file system of the medium. The maximum error correction
417 capacity is user-selectable.")
420 (define-public dvdstyler
427 (uri (string-append "mirror://sourceforge/dvdstyler/dvdstyler/"
428 version "/DVDStyler-" version ".tar.bz2"))
431 "0lwc0hn94m9r8fi07sjqz3fr618l6lnw3zsakxw7nlgnxbjsk7pi"))))
432 (build-system gnu-build-system)
435 (list (string-append "XMLTO="
436 (assoc-ref %build-inputs "xmlto")
437 "/bin/xmlto --searchpath "
438 (assoc-ref %build-inputs "docbook-xsl")
439 "/xml/xsl/docbook-xsl-" ,(package-version docbook-xsl)
441 (assoc-ref %build-inputs "docbook-xml")
444 (modify-phases %standard-phases
445 (add-after 'install 'wrap-program
446 (lambda* (#:key inputs outputs #:allow-other-keys)
447 (wrap-program (string-append (assoc-ref outputs "out") "/bin/dvdstyler")
450 (map (lambda (in) (string-append (assoc-ref inputs in) "/bin"))
451 '("cdrtools" "dvdauthor" "dvd+rw-tools" "ffmpeg"))
454 #:tests? #f)) ; No tests.
455 (inputs ; TODO package bundled wxvillalib
456 `(("wxwidgets" ,wxwidgets-3.1)
459 ("cdrtools" ,cdrtools)
460 ("dvd+rw-tools" ,dvd+rw-tools)
461 ("dvdauthor" ,dvdauthor)
463 ("fontconfig" ,fontconfig)
466 ("ffmpeg" ,ffmpeg-3.4)))
468 `(("pkg-config" ,pkg-config)
472 ("gettext" ,gnu-gettext)
473 ("docbook-xml" ,docbook-xml)
474 ("docbook-xsl" ,docbook-xsl)
476 (synopsis "DVD authoring application")
477 (description "DVDStyler is a DVD authoring application which allows users
478 to burn video files in many formats to DVD discs, complete with individually
479 designed menus. It can be used to create professional-looking DVD's with
480 custom buttons, backgrounds and animations, from within a user-friendly
481 graphical interface.")
482 (home-page "https://www.dvdstyler.org")
485 (define-public libcue
492 (url "https://github.com/lipnitsk/libcue.git")
493 (commit (string-append "v" version))))
494 (file-name (git-file-name name version))
497 "1iqw4n01rv2jyk9lksagyxj8ml0kcfwk67n79zy1r6zv1xfp5ywm"))))
498 (build-system cmake-build-system)
500 `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON")))
504 (home-page "https://github.com/lipnitsk/libcue")
505 (synopsis "C library to parse cue sheets")
506 (description "Libcue is a C library to parse so-called @dfn{cue sheets}
507 which contain meta-data for CD/DVD tracks. It provides an API to manipulate
511 (define-public cd-discid
515 (home-page "http://linukz.org/cd-discid.shtml")
518 (uri (string-append "http://linukz.org/download/cd-discid-"
522 "0qrcvn7227qaayjcd5rm7z0k5q89qfy5qkdgwr5pd7ih0va8rmpz"))
523 (modules '((guix build utils)))
526 (substitute* "Makefile"
527 (("/usr/bin/install")
530 (build-system gnu-build-system)
533 #:phases (modify-phases %standard-phases (delete 'configure))
534 #:make-flags (list "CC=gcc"
535 (string-append "PREFIX="
536 (assoc-ref %outputs "out")))))
537 (synopsis "Get CDDB discid information from an audio CD")
539 "cd-discid is a command-line tool to retrieve CDDB discid information
547 (home-page "https://abcde.einval.com/")
550 (uri (string-append home-page "/download/abcde-"
554 "091ip2iwb6b67bhjsj05l0sxyq2whqjycbzqpkfbpm4dlyxx0v04"))
555 (modules '((guix build utils)))
558 (substitute* "Makefile"
559 (("/usr/bin/install")
562 (build-system gnu-build-system)
565 (modify-phases %standard-phases
567 (lambda* (#:key outputs inputs #:allow-other-keys)
568 (substitute* "Makefile"
570 (string-append "prefix = "
571 (assoc-ref outputs "out")
573 (("^sysconfdir = .*$")
574 (string-append "sysconfdir = "
575 (assoc-ref outputs "out")
578 (add-after 'install 'wrap
579 (lambda* (#:key inputs outputs #:allow-other-keys)
580 (let ((wget (assoc-ref inputs "wget"))
581 (vorbis (assoc-ref inputs "vorbis-tools"))
582 (parano (assoc-ref inputs "cdparanoia"))
583 (which (assoc-ref inputs "which"))
584 (discid (assoc-ref inputs "cd-discid"))
585 (perl-discid (assoc-ref inputs "perl-musicbrainz-discid"))
586 (perl-ws (assoc-ref inputs "perl-webservice-musicbrainz"))
587 (perl-mojo (assoc-ref inputs "perl-mojolicious"))
588 (flac (assoc-ref inputs "flac"))
589 (out (assoc-ref outputs "out")))
593 (,(string-append out "/bin:"
600 `("PERL5LIB" ":" prefix
601 (,(string-append perl-discid
602 "/lib/perl5/site_perl:"
604 "/lib/perl5/site_perl:"
606 "/lib/perl5/site_perl")))))
609 (find-files (string-append out "/bin")
612 #:tests? #f)) ; no test target
614 (inputs `(("wget" ,wget)
616 ("cdparanoia" ,cdparanoia)
617 ("cd-discid" ,cd-discid)
618 ("vorbis-tools" ,vorbis-tools)
621 ("perl-musicbrainz-discid" ,perl-musicbrainz-discid)
622 ("perl-webservice-musicbrainz" ,perl-webservice-musicbrainz)
623 ("perl-mojolicious" ,perl-mojolicious) ;indirect dependency
625 ;; A couple of Python and Perl scripts are included.
629 (synopsis "Command-line audio CD ripper")
631 "abcde is a front-end command-line utility (actually, a shell script)
632 that grabs tracks off a CD, encodes them to Ogg/Vorbis, MP3, FLAC, Ogg/Speex
633 and/or MPP/MP+ (Musepack) format, and tags them, all in one go.")
636 (define-public geteltorito
641 "https://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/")
644 (uri (string-append home-page name "-" version ".tar.gz"))
647 "1gkbm9ahj2mgqrkrfpibzclsriqgsbsvjh19fr815vpd9f6snkxv"))))
648 (build-system gnu-build-system)
650 `(#:tests? #f ; No tests.
652 (modify-phases %standard-phases
656 (lambda* (#:key outputs #:allow-other-keys)
657 (let ((out (assoc-ref outputs "out")))
658 (install-file "geteltorito"
659 (string-append out "/bin"))))))))
660 (inputs `(("perl" ,perl)))
661 (synopsis "Extract the boot image from a CD-ROM")
663 "@command{geteltorito} can extract the initial/default boot
664 image from CDs (and ISOs) that follow the El Torito specification
665 for bootable CD-ROMs.
667 Image data is written to standard output by default and all other
668 information is written to standard error.")
671 (define-public asunder
678 (string-append "http://www.littlesvr.ca/asunder/releases/asunder-"
683 "1630i1df06y840v3fgdf75jxw1s8kwbfn5bhi0686viah0scccw5"))))
684 (build-system glib-or-gtk-build-system)
686 '(#:out-of-source? #f
687 #:phases (modify-phases %standard-phases
688 (add-after 'install 'wrap
689 (lambda* (#:key inputs outputs #:allow-other-keys)
690 (let ((program (string-append (assoc-ref outputs "out")
692 (define (bin-directory input-name)
693 (string-append (assoc-ref inputs input-name) "/bin"))
694 (wrap-program program
696 ,(map bin-directory (list "cdparanoia"
702 (native-inputs `(("intltool" ,intltool)
703 ("pkg-config" ,pkg-config)))
704 ;; TODO: Add the necessary packages for Musepack encoding.
705 (inputs `(("gtk+-2" ,gtk+-2)
708 ("cdparanoia" ,cdparanoia)
710 ("vorbis-tools" ,vorbis-tools)
712 ("opus-tools" ,opus-tools)
713 ("wavpack" ,wavpack)))
714 (home-page "http://www.littlesvr.ca/asunder/")
715 (synopsis "Graphical audio CD ripper and encoder")
717 "Asunder is a graphical audio CD ripper and encoder. It can save audio
718 tracks as WAV, MP3, Ogg Vorbis, FLAC, Opus, Wavpack, and Musepack. It can use
719 CDDB to name and tag each track automatically, and it allows for each track to
720 be by a different artist. Asunder can encode to multiple formats in one
721 session, and it can create M3U playlists.")
731 ;; The original suwald.com domain has expired.
733 (string-append "https://web.archive.org/web/20160327050927/"
734 "http://suwald.com/ripit/ripit-" version ".tar.gz")
735 (string-append "https://ponce.cc/slackware/sources/repo/ripit-"
738 (base32 "0ap71x477jy9c4jiqazb3y45hxdxm3jbq24x05g3vjyqzigi4x1b"))))
739 (build-system gnu-build-system)
741 `(#:tests? #f ; no test suite
743 (modify-phases %standard-phases
745 (add-after 'unpack 'patch-usr-bin-install
746 (lambda* (#:key inputs outputs #:allow-other-keys)
747 (substitute* "Makefile"
748 (("/usr/bin/install") (string-append
749 (assoc-ref inputs "coreutils")
751 (("\\$\\(DESTDIR\\)/usr/local") (assoc-ref outputs "out"))
752 (("../../etc") "etc")))))))
754 `(("coreutils" ,coreutils)))
758 `(("cdparanoia" ,cdparanoia)
760 ("vorbis-tools" ,vorbis-tools)
762 ("perl-cddb-get" ,perl-cddb-get)))
763 (home-page (string-append "https://web.archive.org/web/20170119092156/"
764 "http://www.suwald.com/ripit/about.php"))
765 (synopsis "Command-line program to extract audio CDs")
766 (description "RipIT is used to extract audio from CDs.")
769 (define-public ccd2cue
777 "mirror://gnu/ccd2cue/ccd2cue-" version
781 "1icrkg25hwx4gsn3dski2172ia4ywjh8m1sa17zmjclnrgdwy9c7"))))
782 (build-system gnu-build-system)
783 (synopsis "CCD to CUE sheet conversion")
785 "GNU ccd2cue is a preprocessor for CD burning software that allows
786 the conversion of the proprietary CCD format to the CUE format, which
787 is well-supported by free software. These files are commonly
788 distributed with CD images and are used to describe how tracks are
789 laid out on the image.")
790 (home-page "https://www.gnu.org/software/ccd2cue/")
793 (define-public libburn
799 (uri (string-append "http://files.libburnia-project.org/releases/"
800 "libburn-" version ".tar.gz"))
803 "1gg2kgnqvaa2fwghai62prxz6slpak1f6bvgjh8m4dn16v114asq"))))
804 (build-system gnu-build-system)
806 `(("pkg-config" ,pkg-config)))
807 (home-page "https://dev.lovelyhq.com/libburnia/libburn")
808 (synopsis "Library for reading and writing optical discs")
810 "Libburn is a library for reading and writing optical discs.
811 Supported media are: CD-R, CD-RW, DVD-RAM, DVD+RW, DVD+R, DVD+R/DL,
812 DVD-RW, DVD-R, DVD-R/DL, BD-R, and BD-RE.")
815 (define-public libisofs
821 (uri (string-append "http://files.libburnia-project.org/releases/"
822 "libisofs-" version ".tar.gz"))
825 "001l3akf3wb6msl9man776w560iqyvsbwwzs7d7y7msx13irspys"))))
826 (build-system gnu-build-system)
831 `(("pkg-config" ,pkg-config)))
832 (home-page "https://dev.lovelyhq.com/libburnia/libisofs")
833 (synopsis "Library to create ISO 9660 images")
835 "Libisofs creates ISO 9660 (also known as ECMA-119) file system images
836 which can either be written to POSIX file objects or handed over to
837 libburn for being written directly to optical media.
838 It can read metadata of ISO 9660 filesystems, manipulate them, and use them
839 to produce new complete file system images or add-on images to be appended
840 to the read file system image.
841 Supported extensions to ISO 9660 are Rock Ridge, Joliet, AAIP, zisofs.")
844 (define-public cdrkit-libre
846 (name "cdrkit-libre")
850 ;; cdrkit.org is dead.
852 ;; ‘cdrkit-libre’ removes a couple of problematic files,
853 ;; see <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32165#14>.
855 "https://repo.parabola.nu/other/cdrkit-libre/cdrkit-libre-"
859 "0g2zyzb56czh429qy87lvaddzjnlcq8c616ddxsmsshz3clhyzrh"))))
860 (build-system cmake-build-system)
867 `(#:tests? #f ;no tests
869 (modify-phases %standard-phases
870 (add-after 'install 'old-cdrecord
871 (lambda* (#:key outputs #:allow-other-keys)
872 (with-directory-excursion (string-append (assoc-ref outputs "out")
874 (symlink "genisoimage" "mkisofs")
875 (symlink "wodim" "cdrecord"))
877 (home-page "https://repo.parabola.nu/other/cdrkit-libre/")
878 (synopsis "Command-line CD/DVD recorder")
879 (description "Cdrkit is a suite of programs for recording CDs and DVDs,
880 blanking CD-RW media, creating ISO-9660 file system images, extracting audio
881 CD data, and more. It's mostly compatible with @code{cdrtools}.")
884 (define-public libmirage
891 "https://downloads.sourceforge.net/cdemu/libmirage-"
895 "0gwrfia0fyhi0b3p2pfyyvrcfcb0qysfzgpdqsqjqbx4xaqx5wpi"))))
896 (build-system cmake-build-system)
898 `(("pkg-config" ,pkg-config)
899 ("intltool" ,intltool)))
905 (home-page "https://cdemu.sourceforge.io/")
906 (synopsis "CD-ROM image access library")
907 (description "libMirage is a CD-ROM image access library. It supports the
908 following formats: B6T, C2D, CCD, CDI, CIF, CUE, ISO, MDS, MDX, NRG, TOC. It
909 is written in C and based on GLib. Its aim is to provide uniform access to
910 the data stored in various image formats.")
913 (define-public cdemu-daemon
915 (name "cdemu-daemon")
920 "https://downloads.sourceforge.net/cdemu/cdemu-daemon/cdemu-daemon-"
924 "0himyrhhfjsr4ff5aci7240bpm9x34h20pid412ci8fm16nk929b"))))
925 (build-system cmake-build-system)
927 `(("pkg-config" ,pkg-config)
928 ("intltool" ,intltool)))
930 `(("libmirage" ,libmirage)
936 (home-page "https://cdemu.sourceforge.io/")
937 (synopsis "CD/DVD-ROM device emulator")
938 (description "CDemu is a software suite designed to emulate an optical
939 drive and disc (including CD-ROMs and DVD-ROMs).")
942 (define-public cdemu-client
944 (name "cdemu-client")
949 "https://downloads.sourceforge.net/cdemu/cdemu-client-"
953 "1d8m24qvv62xcwafw5zs4yf39vs64kxl4idqcngd8yyjhrb2ykg5"))))
954 (build-system cmake-build-system)
956 `(("pkg-config" ,pkg-config)
957 ("intltool" ,intltool)))
960 ("python-pygobject" ,python-pygobject)
961 ("cdemu-daemon" ,cdemu-daemon)))
966 (modify-phases %standard-phases
967 (add-after 'install 'patch-shebang
968 (lambda* (#:key outputs #:allow-other-keys)
969 (patch-shebang (string-append (assoc-ref outputs "out")
972 (add-after 'patch-shebang 'wrap-program
973 (lambda* (#:key outputs #:allow-other-keys)
974 (let ((prog (string-append (assoc-ref outputs "out")
977 `("PYTHONPATH" = (,(getenv "PYTHONPATH"))))
979 (home-page "https://cdemu.sourceforge.io/")
980 (synopsis "Command-line client for controlling cdemu-daemon")
981 (description "CDEmu client is a simple command-line client for controlling
984 It provides a way to perform the key tasks related to controlling the CDEmu
985 daemon, such as loading and unloading devices, displaying devices' status and
986 retrieving/setting devices' debug masks.")