您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

205 行
8.1 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
  3. ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
  4. ;;;
  5. ;;; This file is part of GNU Guix.
  6. ;;;
  7. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  8. ;;; under the terms of the GNU General Public License as published by
  9. ;;; the Free Software Foundation; either version 3 of the License, or (at
  10. ;;; your option) any later version.
  11. ;;;
  12. ;;; GNU Guix is distributed in the hope that it will be useful, but
  13. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ;;; GNU General Public License for more details.
  16. ;;;
  17. ;;; You should have received a copy of the GNU General Public License
  18. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  19. (define-module (gnu packages cdrom)
  20. #:use-module (guix download)
  21. #:use-module (guix packages)
  22. #:use-module ((guix licenses) #:select (lgpl2.1+ gpl2 gpl2+ gpl3+))
  23. #:use-module (guix build-system gnu)
  24. #:use-module (gnu packages)
  25. #:use-module (gnu packages acl)
  26. #:use-module (gnu packages compression)
  27. #:use-module ((gnu packages gettext) #:renamer (symbol-prefix-proc 'gnu:))
  28. #:use-module (gnu packages gtk)
  29. #:use-module (gnu packages help2man)
  30. #:use-module (gnu packages ncurses)
  31. #:use-module (gnu packages patchelf)
  32. #:use-module (gnu packages pkg-config)
  33. #:use-module (gnu packages readline)
  34. #:use-module (gnu packages which))
  35. (define-public libcddb
  36. (package
  37. (name "libcddb")
  38. (version "1.3.0")
  39. (source (origin
  40. (method url-fetch)
  41. (uri (string-append "mirror://sourceforge/libcddb/libcddb-"
  42. version ".tar.bz2"))
  43. (sha256
  44. (base32
  45. "1y8bfy12dwm41m1jahayn3v47dm34fmz7m9cjxyh7xcw6fp3lzaf"))))
  46. (build-system gnu-build-system)
  47. (arguments '(#:tests? #f)) ; tests rely on access to external servers
  48. (home-page "http://libcddb.sourceforge.net/")
  49. (synopsis "C library to access data on a CDDB server")
  50. (description
  51. "Libcddb is a C library to access data on a CDDB server (freedb.org). It
  52. allows you to:
  53. 1. search the database for possible CD matches;
  54. 2. retrieve detailed information about a specific CD;
  55. 3. submit new CD entries to the database.
  56. Libcddb supports both the custom CDDB protocol and tunnelling the query and
  57. read operations over plain HTTP. It is also possible to use an HTTP proxy
  58. server. If you want to speed things up, you can make use of the built-in
  59. caching facility provided by the library.")
  60. (license lgpl2.1+)))
  61. (define-public libcdio
  62. (package
  63. (name "libcdio")
  64. (version "0.90")
  65. (source (origin
  66. (method url-fetch)
  67. (uri (string-append "mirror://gnu/libcdio/libcdio-"
  68. version ".tar.gz"))
  69. (sha256
  70. (base32
  71. "0kpp6gr5sjr30pb9klncc37fhkw0wi6r41d2fmvmw17cbj176zmg"))))
  72. (build-system gnu-build-system)
  73. (inputs
  74. `(("help2man" ,help2man)
  75. ("ncurses" ,ncurses)
  76. ("pkg-config" ,pkg-config)
  77. ("libcddb" ,libcddb)))
  78. (home-page "http://www.gnu.org/software/libcdio/")
  79. (synopsis "CD Input and Control library")
  80. (description
  81. "The GNU Compact Disc Input and Control Library (libcdio) is a library
  82. for CD-ROM and CD image file access. It allows the developer to add CD
  83. access to an application without having to worry about the OS- and
  84. device-dependent properties of CD-ROM or the specific details of CD image
  85. formats.")
  86. (license gpl3+)))
  87. (define-public xorriso
  88. (package
  89. (name "xorriso")
  90. (version "1.3.2")
  91. (source (origin
  92. (method url-fetch)
  93. (uri (string-append "mirror://gnu/xorriso/xorriso-"
  94. version ".tar.gz"))
  95. (sha256
  96. (base32
  97. "1z04580nkkziy2flbxjjx0q6vp9p7vcp7yp0agx2aqz3l1vjcwhf"))))
  98. (build-system gnu-build-system)
  99. (inputs
  100. `(("acl" ,acl)
  101. ("readline" ,readline)
  102. ("bzip2" ,bzip2)
  103. ("zlib" ,zlib)
  104. ("libcdio" ,libcdio)))
  105. (home-page "http://www.gnu.org/software/xorriso/")
  106. (synopsis "Create, manipulate, burn ISO-9660 filesystems")
  107. (description
  108. "xorriso is a tool for copying files to and from ISO 9660 Rock Ridge,
  109. a.k.a Compact Disc File System, filesystems and it allows session- wise
  110. manipulation of them. It features a formatter and burner for CD DVD and BD.
  111. It can operate on existing ISO images or it can create new ones. xorriso can
  112. then be used to copy files directly into or out of ISO files.")
  113. (license gpl3+)))
  114. (define-public cdparanoia
  115. (package
  116. (name "cdparanoia")
  117. (version "10.2")
  118. (source (origin
  119. (method url-fetch)
  120. (uri (string-append "http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-"
  121. version ".src.tgz"))
  122. (sha256
  123. (base32
  124. "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80"))
  125. (patches (list (search-patch "cdparanoia-fpic.patch")))))
  126. (build-system gnu-build-system)
  127. (inputs
  128. `(("patchelf" ,patchelf)))
  129. (arguments
  130. `(#:tests? #f ; there is no check target
  131. #:modules ((guix build gnu-build-system)
  132. (guix build utils)
  133. (guix build rpath)
  134. (srfi srfi-26))
  135. #:imported-modules ((guix build gnu-build-system)
  136. (guix build utils)
  137. (guix build rpath))
  138. #:phases
  139. (alist-cons-after
  140. 'strip 'add-lib-to-runpath
  141. (lambda* (#:key outputs #:allow-other-keys)
  142. (let* ((out (assoc-ref outputs "out"))
  143. (lib (string-append out "/lib")))
  144. ;; Add LIB to the RUNPATH of all the executables.
  145. (with-directory-excursion out
  146. (for-each (cut augment-rpath <> lib)
  147. (find-files "bin" ".*")))))
  148. %standard-phases)))
  149. (home-page "http://www.xiph.org/paranoia/")
  150. (synopsis "audio CD reading utility which includes extra data verification features")
  151. (description "Cdparanoia retrieves audio tracks from CDDA capable CDROM
  152. drives. The data can be saved to a file or directed to standard output
  153. in WAV, AIFF, AIFF-C or raw format. Most ATAPI, SCSI and several
  154. proprietary CDROM drive makes are supported; cdparanoia can determine if the
  155. target drive is CDDA capable. In addition to simple reading, cdparanoia adds
  156. extra-robust data verification, synchronization, error handling and scratch
  157. reconstruction capability.")
  158. (license gpl2))) ; libraries under lgpl2.1
  159. (define-public dvdisaster
  160. (package
  161. (name "dvdisaster")
  162. (version "0.72.4")
  163. (source (origin
  164. (method url-fetch)
  165. (uri (string-append "http://dvdisaster.net/downloads/dvdisaster-"
  166. version ".tar.bz2"))
  167. (sha256
  168. (base32
  169. "0pm039a78h7m9vvjmmjfkl05ii6qdmfhvbypxjbc7j5w82y66is4"))))
  170. (build-system gnu-build-system)
  171. (inputs
  172. `(("gettext" ,gnu:gettext)
  173. ("gtk+" ,gtk+-2)
  174. ("pkg-config" ,pkg-config)
  175. ("which" ,which)))
  176. (arguments
  177. `(#:tests? #f)) ; no check target
  178. (home-page "http://dvdisaster.net/en/index.html")
  179. (synopsis "error correcting codes for optical media images")
  180. (description "Optical media (CD,DVD,BD) keep their data only for a
  181. finite time (typically for many years). After that time, data loss develops
  182. slowly with read errors growing from the outer media region towards the
  183. inside.
  184. Dvdisaster stores data on CD/DVD/BD (supported media) in a way that it is
  185. fully recoverable even after some read errors have developed. This enables
  186. you to rescue the complete data to a new medium.
  187. Data loss is prevented by using error correcting codes. Error correction
  188. data is either added to the medium or kept in separate error correction
  189. files. Dvdisaster works at the image level so that the recovery does not
  190. depend on the file system of the medium. The maximum error correction
  191. capacity is user-selectable.")
  192. (license gpl2+)))