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