You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

249 lines
10 KiB

gnu: Use synopses from the Womb. * gnu/packages/algebra.scm, gnu/packages/aspell.scm, gnu/packages/autotools.scm, gnu/packages/base.scm, gnu/packages/bash.scm, gnu/packages/bison.scm, gnu/packages/cdrom.scm, gnu/packages/cflow.scm, gnu/packages/compression.scm, gnu/packages/cpio.scm, gnu/packages/cppi.scm, gnu/packages/ddrescue.scm, gnu/packages/dejagnu.scm, gnu/packages/ed.scm, gnu/packages/emacs.scm, gnu/packages/fdisk.scm, gnu/packages/gawk.scm, gnu/packages/gcc.scm, packages/gcc.scm, b/gnu/packages/gcc.scm, 4b982 100644 s/gcc.scm, s/gcc.scm, @@ %standard-phases))))) `((gcc-libc . ,(assoc-ref inputs "libc")))) The GNU Compiler Collection") GNU Compiler Collection") n ompiler Collection includes compiler front ends for C, C++, tran, OpenMP for C/C++/Fortran, Java, and Ada, as well as gnu/packages/gdb.scm, gnu/packages/gettext.scm, gnu/packages/ghostscript.scm, gnu/packages/glib.scm, gnu/packages/global.scm, gnu/packages/gnupg.scm, gnu/packages/gnutls.scm, gnu/packages/gperf.scm, gnu/packages/gprolog.scm, gnu/packages/groff.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm, gnu/packages/guile.scm, gnu/packages/help2man.scm, gnu/packages/idutils.scm, gnu/packages/indent.scm, gnu/packages/less.scm, gnu/packages/libidn.scm, gnu/packages/libsigsegv.scm, gnu/packages/libunistring.scm, gnu/packages/linux.scm, gnu/packages/lsh.scm, gnu/packages/m4.scm, gnu/packages/mailutils.scm, gnu/packages/multiprecision.scm, gnu/packages/nano.scm, gnu/packages/ncurses.scm, gnu/packages/nettle.scm, gnu/packages/oggvorbis.scm, gnu/packages/parted.scm, gnu/packages/pth.scm, gnu/packages/readline.scm, gnu/packages/recutils.scm, gnu/packages/scheme.scm, gnu/packages/screen.scm, gnu/packages/shishi.scm, gnu/packages/smalltalk.scm, gnu/packages/system.scm, gnu/packages/texinfo.scm, gnu/packages/time.scm, gnu/packages/wdiff.scm, gnu/packages/wget.scm, gnu/packages/which.scm: Use synopses from the Womb.
9 years ago
Synchronize package descriptions with the Womb. * gnu/packages/algebra.scm, gnu/packages/aspell.scm, gnu/packages/autotools.scm, gnu/packages/base.scm, gnu/packages/bash.scm, gnu/packages/bison.scm, gnu/packages/cdrom.scm, gnu/packages/cflow.scm, gnu/packages/compression.scm, gnu/packages/cpio.scm, gnu/packages/cppi.scm, gnu/packages/ddrescue.scm, gnu/packages/dejagnu.scm, gnu/packages/ed.scm, gnu/packages/emacs.scm, gnu/packages/fdisk.scm, gnu/packages/freeipmi.scm, gnu/packages/gawk.scm, gnu/packages/gcal.scm, gnu/packages/gcc.scm, gnu/packages/gdb.scm, gnu/packages/gdbm.scm, gnu/packages/gettext.scm, gnu/packages/ghostscript.scm, gnu/packages/global.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm, gnu/packages/gnutls.scm, gnu/packages/gperf.scm, gnu/packages/gprolog.scm, gnu/packages/groff.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm, gnu/packages/guile.scm, gnu/packages/gv.scm, gnu/packages/help2man.scm, gnu/packages/idutils.scm, gnu/packages/indent.scm, gnu/packages/less.scm, gnu/packages/libidn.scm, gnu/packages/libsigsegv.scm, gnu/packages/libunistring.scm, gnu/packages/lightning.scm, gnu/packages/linux.scm, gnu/packages/lsh.scm, gnu/packages/m4.scm, gnu/packages/mail.scm, gnu/packages/maths.scm, gnu/packages/multiprecision.scm, gnu/packages/nano.scm, gnu/packages/ncurses.scm, gnu/packages/nettle.scm, gnu/packages/ocrad.scm, gnu/packages/oggvorbis.scm, gnu/packages/parted.scm, gnu/packages/plotutils.scm, gnu/packages/pth.scm, gnu/packages/readline.scm, gnu/packages/recutils.scm, gnu/packages/rush.scm, gnu/packages/scheme.scm, gnu/packages/screen.scm, gnu/packages/shishi.scm, gnu/packages/smalltalk.scm, gnu/packages/system.scm, gnu/packages/texinfo.scm, gnu/packages/time.scm, gnu/packages/unrtf.scm, gnu/packages/version-control.scm, gnu/packages/wdiff.scm, gnu/packages/wget.scm, gnu/packages/which.scm, gnu/packages/xnee.scm, gnu/packages/zile.scm: Change value of the 'description' field to that of the Womb.
8 years ago
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
  3. ;;;
  4. ;;; This file is part of GNU Guix.
  5. ;;;
  6. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  7. ;;; under the terms of the GNU General Public License as published by
  8. ;;; the Free Software Foundation; either version 3 of the License, or (at
  9. ;;; your option) any later version.
  10. ;;;
  11. ;;; GNU Guix is distributed in the hope that it will be useful, but
  12. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;;; GNU General Public License for more details.
  15. ;;;
  16. ;;; You should have received a copy of the GNU General Public License
  17. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  18. (define-module (gnu packages compression)
  19. #:use-module ((guix licenses)
  20. #:renamer (symbol-prefix-proc 'license:))
  21. #:use-module (guix packages)
  22. #:use-module (guix download)
  23. #:use-module (guix build-system gnu))
  24. (define-public zlib
  25. (package
  26. (name "zlib")
  27. (version "1.2.7")
  28. (source
  29. (origin
  30. (method url-fetch)
  31. (uri (list (string-append "http://zlib.net/zlib-"
  32. version ".tar.gz")
  33. (string-append "mirror://sourceforge/libpng/zlib-"
  34. version ".tar.gz")))
  35. (sha256
  36. (base32
  37. "1i96gsdvxqb6skp9a58bacf1wxamwi9m9pg4yn7cpf7g7239r77s"))))
  38. (build-system gnu-build-system)
  39. (arguments
  40. `(#:phases (alist-replace
  41. 'configure
  42. (lambda* (#:key outputs #:allow-other-keys)
  43. ;; Zlib's home-made `configure' doesn't fails when passed
  44. ;; extra flags like `--enable-fast-install', so we need to
  45. ;; invoke it with just what it understand.
  46. (let ((out (assoc-ref outputs "out")))
  47. (zero? (system* "./configure"
  48. (string-append "--prefix=" out)))))
  49. %standard-phases)))
  50. (home-page "http://zlib.net/")
  51. (synopsis "The zlib compression library")
  52. (description
  53. "zlib is designed to be a free, general-purpose, legally unencumbered --
  54. that is, not covered by any patents -- lossless data-compression library for
  55. use on virtually any computer hardware and operating system. The zlib data
  56. format is itself portable across platforms. Unlike the LZW compression method
  57. used in Unix compress(1) and in the GIF image format, the compression method
  58. currently used in zlib essentially never expands the data. (LZW can double or
  59. triple the file size in extreme cases.) zlib's memory footprint is also
  60. independent of the input data and can be reduced, if necessary, at some cost
  61. in compression.")
  62. (license license:zlib)))
  63. (define-public gzip
  64. (package
  65. (name "gzip")
  66. (version "1.6")
  67. (source (origin
  68. (method url-fetch)
  69. (uri (string-append "mirror://gnu/gzip/gzip-"
  70. version ".tar.gz"))
  71. (sha256
  72. (base32
  73. "0zlgdm4v3dndrbiz7b67mbbj25dpwqbmbzjiycssvrfrcfvq7swp"))))
  74. (build-system gnu-build-system)
  75. (synopsis "General file (de)compression (using lzw)")
  76. (arguments
  77. ;; FIXME: The test suite wants `less', and optionally Perl.
  78. '(#:tests? #f))
  79. (description
  80. "GNU Gzip is a data compression and decompression program.")
  81. (license license:gpl3+)
  82. (home-page "http://www.gnu.org/software/gzip/")))
  83. (define-public bzip2
  84. (let ((fix-man-dir
  85. ;; Move man pages to $out/share/.
  86. '(lambda* (#:key outputs #:allow-other-keys)
  87. (with-directory-excursion (assoc-ref outputs "out")
  88. (mkdir "share")
  89. (rename-file "man" "share"))))
  90. (build-shared-lib
  91. ;; Build a shared library.
  92. '(lambda* (#:key inputs #:allow-other-keys)
  93. (patch-makefile-SHELL "Makefile-libbz2_so")
  94. (zero? (system* "make" "-f" "Makefile-libbz2_so"))))
  95. (install-shared-lib
  96. '(lambda* (#:key outputs #:allow-other-keys)
  97. (let* ((out (assoc-ref outputs "out"))
  98. (libdir (string-append out "/lib")))
  99. (for-each (lambda (file)
  100. (let ((base (basename file)))
  101. (format #t "installing `~a' to `~a'~%"
  102. base libdir)
  103. (copy-file file
  104. (string-append libdir "/" base))))
  105. (find-files "." "^libbz2\\.so")))))
  106. (set-cross-environment
  107. '(lambda* (#:key target #:allow-other-keys)
  108. (substitute* (find-files "." "Makefile")
  109. (("CC=.*$")
  110. (string-append "CC = " target "-gcc\n"))
  111. (("AR=.*$")
  112. (string-append "AR = " target "-ar\n"))
  113. (("RANLIB=.*$")
  114. (string-append "RANLIB = " target "-ranlib\n"))
  115. (("^all:(.*)test" _ prerequisites)
  116. ;; Remove 'all' -> 'test' dependency.
  117. (string-append "all:" prerequisites "\n"))))))
  118. (package
  119. (name "bzip2")
  120. (version "1.0.6")
  121. (source (origin
  122. (method url-fetch)
  123. (uri (string-append "http://www.bzip.org/" version "/bzip2-"
  124. version ".tar.gz"))
  125. (sha256
  126. (base32
  127. "1kfrc7f0ja9fdn6j1y6yir6li818npy6217hvr3wzmnmzhs8z152"))))
  128. (build-system gnu-build-system)
  129. (arguments
  130. `(#:modules ((guix build gnu-build-system)
  131. (guix build utils)
  132. (srfi srfi-1))
  133. #:phases
  134. ,(if (%current-target-system)
  135. ;; Cross-compilation: use the cross tools.
  136. `(alist-cons-before
  137. 'build 'build-shared-lib ,build-shared-lib
  138. (alist-cons-after
  139. 'install 'fix-man-dir ,fix-man-dir
  140. (alist-cons-after
  141. 'install 'install-shared-lib ,install-shared-lib
  142. (alist-replace 'configure ,set-cross-environment
  143. %standard-phases))))
  144. ;; Native compilation: build the shared library.
  145. `(alist-cons-before
  146. 'build 'build-shared-lib ,build-shared-lib
  147. (alist-cons-after
  148. 'install 'fix-man-dir ,fix-man-dir
  149. (alist-cons-after
  150. 'install 'install-shared-lib ,install-shared-lib
  151. (alist-delete 'configure %standard-phases)))))
  152. #:make-flags (list (string-append "PREFIX="
  153. (assoc-ref %outputs "out")))
  154. ;; Don't attempt to run the tests when cross-compiling.
  155. ,@(if (%current-target-system)
  156. '(#:tests? #f)
  157. '())))
  158. (synopsis "high-quality data compression program")
  159. (description
  160. "bzip2 is a freely available, patent free (see below), high-quality data
  161. compressor. It typically compresses files to within 10% to 15% of the best
  162. available techniques (the PPM family of statistical compressors), whilst
  163. being around twice as fast at compression and six times faster at
  164. decompression.")
  165. (license (license:bsd-style "file://LICENSE"
  166. "See LICENSE in the distribution."))
  167. (home-page "http://www.bzip.org/"))))
  168. (define-public xz
  169. (package
  170. (name "xz")
  171. (version "5.0.4")
  172. (source (origin
  173. (method url-fetch)
  174. (uri (string-append "http://tukaani.org/xz/xz-" version
  175. ".tar.gz"))
  176. (sha256
  177. (base32
  178. "1dl35ca8fdss9z2d6y234gxh24ixq904xksizrjmjr5dimwhax6n"))))
  179. (build-system gnu-build-system)
  180. (synopsis
  181. "XZ, general-purpose data compression software, successor of LZMA")
  182. (description
  183. "XZ Utils is free general-purpose data compression software with high
  184. compression ratio. XZ Utils were written for POSIX-like systems, but also
  185. work on some not-so-POSIX systems. XZ Utils are the successor to LZMA Utils.
  186. The core of the XZ Utils compression code is based on LZMA SDK, but it has
  187. been modified quite a lot to be suitable for XZ Utils. The primary
  188. compression algorithm is currently LZMA2, which is used inside the .xz
  189. container format. With typical files, XZ Utils create 30 % smaller output
  190. than gzip and 15 % smaller output than bzip2.")
  191. (license (list license:gpl2+ license:lgpl2.1+)) ; bits of both
  192. (home-page "http://tukaani.org/xz/")))
  193. (define-public lzo
  194. (package
  195. (name "lzo")
  196. (version "2.06")
  197. (source
  198. (origin
  199. (method url-fetch)
  200. (uri (string-append "http://www.oberhumer.com/opensource/lzo/download/lzo-"
  201. version ".tar.gz"))
  202. (sha256
  203. (base32
  204. "0wryshs446s7cclrbjykyj766znhcpnr7s3cxy33ybfn6vwfcygz"))))
  205. (build-system gnu-build-system)
  206. (arguments '(#:configure-flags '("--enable-shared")))
  207. (home-page "http://www.oberhumer.com/opensource/lzo")
  208. (synopsis
  209. "A data compresion library suitable for real-time data de-/compression")
  210. (description
  211. "LZO is a data compression library which is suitable for data
  212. de-/compression in real-time. This means it favours speed over
  213. compression ratio.
  214. LZO is written in ANSI C. Both the source code and the compressed data
  215. format are designed to be portable across platforms.")
  216. (license license:gpl2+)))
  217. (define-public lzip
  218. (package
  219. (name "lzip")
  220. (version "1.14")
  221. (source (origin
  222. (method url-fetch)
  223. (uri (string-append "mirror://savannah/lzip/lzip-"
  224. version ".tar.gz"))
  225. (sha256
  226. (base32
  227. "1rybhk2pxpfh2789ck9mrkdv3bpx7b7miwndlshb5vb02m9crxbz"))))
  228. (build-system gnu-build-system)
  229. (home-page "http://www.nongnu.org/lzip/lzip.html")
  230. (synopsis "Lossless data compressor based on the LZMA algorithm")
  231. (description
  232. "Lzip is a lossless data compressor with a user interface similar to the
  233. one of gzip or bzip2. Lzip decompresses almost as fast as gzip and compresses
  234. more than bzip2, which makes it well suited for software distribution and data
  235. archiving. Lzip is a clean implementation of the LZMA algorithm.")
  236. (license license:gpl3+)))