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