2013-01-06 00:47:50 +01:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2013-02-01 12:57:06 +01:00
|
|
|
;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
|
2013-10-26 00:24:44 +02:00
|
|
|
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
|
2012-11-04 23:16:58 +01:00
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; This file is part of GNU Guix.
|
2012-11-04 23:16:58 +01:00
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
2012-11-04 23:16:58 +01:00
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
2012-11-04 23:16:58 +01:00
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
2012-11-04 23:16:58 +01:00
|
|
|
|
2013-01-18 01:06:24 +01:00
|
|
|
(define-module (gnu packages compression)
|
distro: Use (guix licenses) instead of strings.
* distro/packages/acl.scm, distro/packages/attr.scm,
distro/packages/autotools.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/bison.scm, distro/packages/bootstrap.scm,
distro/packages/compression.scm, distro/packages/cpio.scm,
distro/packages/ddrescue.scm, distro/packages/ed.scm,
distro/packages/flex.scm, distro/packages/gawk.scm,
distro/packages/gdbm.scm, distro/packages/gettext.scm,
distro/packages/gnupg.scm, distro/packages/gnutls.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/help2man.scm, distro/packages/less.scm,
distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
distro/packages/libunistring.scm, distro/packages/linux.scm,
distro/packages/lout.scm, distro/packages/lsh.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/nano.scm, distro/packages/ncurses.scm,
distro/packages/nettle.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm,
distro/packages/shishi.scm, distro/packages/system.scm,
distro/packages/texinfo.scm, distro/packages/time.scm,
distro/packages/wget.scm, distro/packages/which.scm,
distro/packages/zile.scm: Use (guix licenses).
2012-12-14 16:14:04 +01:00
|
|
|
#:use-module ((guix licenses)
|
|
|
|
#:renamer (symbol-prefix-proc 'license:))
|
2012-11-04 23:16:58 +01:00
|
|
|
#:use-module (guix packages)
|
Remove (guix http) and (guix ftp).
* guix/ftp.scm, guix/http.scm, guix/build/ftp.scm, guix/build/http.scm:
Remove.
* Makefile.am (MODULES): Likewise.
* tests/builders.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/compression.scm, distro/packages/gawk.scm,
distro/packages/gnupg.scm, distro/packages/gperf.scm,
distro/packages/guile.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/lout.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/ncurses.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm: Use
`url-fetch' instead of `http-fetch' and `ftp-fetch'.
* distro/packages/bootstrap.scm: Likewise
(bootstrap-origin): Remove references to `http-fetch' and
`ftp-fetch'.
* guix.scm (%public-modules): Remove `http' and `ftp'; add `download'.
2012-11-13 00:22:44 +01:00
|
|
|
#:use-module (guix download)
|
2013-10-26 00:24:44 +02:00
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:use-module (gnu packages which))
|
2012-11-04 23:16:58 +01:00
|
|
|
|
2012-11-04 23:40:26 +01:00
|
|
|
(define-public zlib
|
|
|
|
(package
|
|
|
|
(name "zlib")
|
|
|
|
(version "1.2.7")
|
|
|
|
(source
|
|
|
|
(origin
|
Remove (guix http) and (guix ftp).
* guix/ftp.scm, guix/http.scm, guix/build/ftp.scm, guix/build/http.scm:
Remove.
* Makefile.am (MODULES): Likewise.
* tests/builders.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/compression.scm, distro/packages/gawk.scm,
distro/packages/gnupg.scm, distro/packages/gperf.scm,
distro/packages/guile.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/lout.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/ncurses.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm: Use
`url-fetch' instead of `http-fetch' and `ftp-fetch'.
* distro/packages/bootstrap.scm: Likewise
(bootstrap-origin): Remove references to `http-fetch' and
`ftp-fetch'.
* guix.scm (%public-modules): Remove `http' and `ftp'; add `download'.
2012-11-13 00:22:44 +01:00
|
|
|
(method url-fetch)
|
2013-05-25 22:27:59 +02:00
|
|
|
(uri (list (string-append "http://zlib.net/zlib-"
|
|
|
|
version ".tar.gz")
|
|
|
|
(string-append "mirror://sourceforge/libpng/zlib-"
|
|
|
|
version ".tar.gz")))
|
2012-11-04 23:40:26 +01:00
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1i96gsdvxqb6skp9a58bacf1wxamwi9m9pg4yn7cpf7g7239r77s"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:phases (alist-replace
|
|
|
|
'configure
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
;; Zlib's home-made `configure' doesn't fails when passed
|
|
|
|
;; extra flags like `--enable-fast-install', so we need to
|
|
|
|
;; invoke it with just what it understand.
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
(zero? (system* "./configure"
|
|
|
|
(string-append "--prefix=" out)))))
|
|
|
|
%standard-phases)))
|
|
|
|
(home-page "http://zlib.net/")
|
|
|
|
(synopsis "The zlib compression library")
|
|
|
|
(description
|
|
|
|
"zlib is designed to be a free, general-purpose, legally unencumbered --
|
|
|
|
that is, not covered by any patents -- lossless data-compression library for
|
|
|
|
use on virtually any computer hardware and operating system. The zlib data
|
|
|
|
format is itself portable across platforms. Unlike the LZW compression method
|
|
|
|
used in Unix compress(1) and in the GIF image format, the compression method
|
|
|
|
currently used in zlib essentially never expands the data. (LZW can double or
|
|
|
|
triple the file size in extreme cases.) zlib's memory footprint is also
|
|
|
|
independent of the input data and can be reduced, if necessary, at some cost
|
|
|
|
in compression.")
|
distro: Use (guix licenses) instead of strings.
* distro/packages/acl.scm, distro/packages/attr.scm,
distro/packages/autotools.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/bison.scm, distro/packages/bootstrap.scm,
distro/packages/compression.scm, distro/packages/cpio.scm,
distro/packages/ddrescue.scm, distro/packages/ed.scm,
distro/packages/flex.scm, distro/packages/gawk.scm,
distro/packages/gdbm.scm, distro/packages/gettext.scm,
distro/packages/gnupg.scm, distro/packages/gnutls.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/help2man.scm, distro/packages/less.scm,
distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
distro/packages/libunistring.scm, distro/packages/linux.scm,
distro/packages/lout.scm, distro/packages/lsh.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/nano.scm, distro/packages/ncurses.scm,
distro/packages/nettle.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm,
distro/packages/shishi.scm, distro/packages/system.scm,
distro/packages/texinfo.scm, distro/packages/time.scm,
distro/packages/wget.scm, distro/packages/which.scm,
distro/packages/zile.scm: Use (guix licenses).
2012-12-14 16:14:04 +01:00
|
|
|
(license license:zlib)))
|
2012-11-04 23:40:26 +01:00
|
|
|
|
2012-11-04 23:16:58 +01:00
|
|
|
(define-public gzip
|
|
|
|
(package
|
|
|
|
(name "gzip")
|
2013-06-22 16:27:13 +02:00
|
|
|
(version "1.6")
|
2012-11-04 23:16:58 +01:00
|
|
|
(source (origin
|
Remove (guix http) and (guix ftp).
* guix/ftp.scm, guix/http.scm, guix/build/ftp.scm, guix/build/http.scm:
Remove.
* Makefile.am (MODULES): Likewise.
* tests/builders.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/compression.scm, distro/packages/gawk.scm,
distro/packages/gnupg.scm, distro/packages/gperf.scm,
distro/packages/guile.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/lout.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/ncurses.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm: Use
`url-fetch' instead of `http-fetch' and `ftp-fetch'.
* distro/packages/bootstrap.scm: Likewise
(bootstrap-origin): Remove references to `http-fetch' and
`ftp-fetch'.
* guix.scm (%public-modules): Remove `http' and `ftp'; add `download'.
2012-11-13 00:22:44 +01:00
|
|
|
(method url-fetch)
|
distro: Use `mirror://' URLs.
* distro/packages/base.scm, distro/packages/bash.scm,
distro/packages/compression.scm, distro/packages/gawk.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/pth.scm, distro/packages/readline.scm,
distro/packages/recutils.scm: Use `mirror://gnu' URLs.
* distro/packages/gnupg.scm: Use `mirror://gnupg' URLs.
2012-11-12 23:34:03 +01:00
|
|
|
(uri (string-append "mirror://gnu/gzip/gzip-"
|
2012-11-04 23:16:58 +01:00
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2013-06-22 16:27:13 +02:00
|
|
|
"0zlgdm4v3dndrbiz7b67mbbj25dpwqbmbzjiycssvrfrcfvq7swp"))))
|
2012-11-04 23:16:58 +01:00
|
|
|
(build-system gnu-build-system)
|
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.
2013-04-17 18:04:25 +02:00
|
|
|
(synopsis "General file (de)compression (using lzw)")
|
2012-11-04 23:16:58 +01:00
|
|
|
(arguments
|
|
|
|
;; FIXME: The test suite wants `less', and optionally Perl.
|
|
|
|
'(#:tests? #f))
|
|
|
|
(description
|
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.
2013-10-09 16:14:23 +02:00
|
|
|
"GNU Gzip is a data compression and decompression program.")
|
distro: Use (guix licenses) instead of strings.
* distro/packages/acl.scm, distro/packages/attr.scm,
distro/packages/autotools.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/bison.scm, distro/packages/bootstrap.scm,
distro/packages/compression.scm, distro/packages/cpio.scm,
distro/packages/ddrescue.scm, distro/packages/ed.scm,
distro/packages/flex.scm, distro/packages/gawk.scm,
distro/packages/gdbm.scm, distro/packages/gettext.scm,
distro/packages/gnupg.scm, distro/packages/gnutls.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/help2man.scm, distro/packages/less.scm,
distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
distro/packages/libunistring.scm, distro/packages/linux.scm,
distro/packages/lout.scm, distro/packages/lsh.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/nano.scm, distro/packages/ncurses.scm,
distro/packages/nettle.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm,
distro/packages/shishi.scm, distro/packages/system.scm,
distro/packages/texinfo.scm, distro/packages/time.scm,
distro/packages/wget.scm, distro/packages/which.scm,
distro/packages/zile.scm: Use (guix licenses).
2012-12-14 16:14:04 +01:00
|
|
|
(license license:gpl3+)
|
2012-11-04 23:16:58 +01:00
|
|
|
(home-page "http://www.gnu.org/software/gzip/")))
|
|
|
|
|
|
|
|
(define-public bzip2
|
|
|
|
(let ((fix-man-dir
|
|
|
|
;; Move man pages to $out/share/.
|
|
|
|
'(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(with-directory-excursion (assoc-ref outputs "out")
|
|
|
|
(mkdir "share")
|
|
|
|
(rename-file "man" "share"))))
|
|
|
|
(build-shared-lib
|
|
|
|
;; Build a shared library.
|
|
|
|
'(lambda* (#:key inputs #:allow-other-keys)
|
2012-12-31 01:13:04 +01:00
|
|
|
(patch-makefile-SHELL "Makefile-libbz2_so")
|
2012-11-04 23:16:58 +01:00
|
|
|
(zero? (system* "make" "-f" "Makefile-libbz2_so"))))
|
|
|
|
(install-shared-lib
|
|
|
|
'(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(libdir (string-append out "/lib")))
|
|
|
|
(for-each (lambda (file)
|
|
|
|
(let ((base (basename file)))
|
|
|
|
(format #t "installing `~a' to `~a'~%"
|
|
|
|
base libdir)
|
|
|
|
(copy-file file
|
|
|
|
(string-append libdir "/" base))))
|
2013-09-29 17:22:08 +02:00
|
|
|
(find-files "." "^libbz2\\.so")))))
|
|
|
|
(set-cross-environment
|
|
|
|
'(lambda* (#:key target #:allow-other-keys)
|
|
|
|
(substitute* (find-files "." "Makefile")
|
|
|
|
(("CC=.*$")
|
|
|
|
(string-append "CC = " target "-gcc\n"))
|
|
|
|
(("AR=.*$")
|
|
|
|
(string-append "AR = " target "-ar\n"))
|
|
|
|
(("RANLIB=.*$")
|
|
|
|
(string-append "RANLIB = " target "-ranlib\n"))
|
|
|
|
(("^all:(.*)test" _ prerequisites)
|
|
|
|
;; Remove 'all' -> 'test' dependency.
|
|
|
|
(string-append "all:" prerequisites "\n"))))))
|
2012-11-04 23:16:58 +01:00
|
|
|
(package
|
|
|
|
(name "bzip2")
|
|
|
|
(version "1.0.6")
|
|
|
|
(source (origin
|
Remove (guix http) and (guix ftp).
* guix/ftp.scm, guix/http.scm, guix/build/ftp.scm, guix/build/http.scm:
Remove.
* Makefile.am (MODULES): Likewise.
* tests/builders.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/compression.scm, distro/packages/gawk.scm,
distro/packages/gnupg.scm, distro/packages/gperf.scm,
distro/packages/guile.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/lout.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/ncurses.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm: Use
`url-fetch' instead of `http-fetch' and `ftp-fetch'.
* distro/packages/bootstrap.scm: Likewise
(bootstrap-origin): Remove references to `http-fetch' and
`ftp-fetch'.
* guix.scm (%public-modules): Remove `http' and `ftp'; add `download'.
2012-11-13 00:22:44 +01:00
|
|
|
(method url-fetch)
|
2012-11-04 23:16:58 +01:00
|
|
|
(uri (string-append "http://www.bzip.org/" version "/bzip2-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1kfrc7f0ja9fdn6j1y6yir6li818npy6217hvr3wzmnmzhs8z152"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:modules ((guix build gnu-build-system)
|
|
|
|
(guix build utils)
|
|
|
|
(srfi srfi-1))
|
|
|
|
#:phases
|
2013-09-29 17:22:08 +02:00
|
|
|
,(if (%current-target-system)
|
|
|
|
|
|
|
|
;; Cross-compilation: use the cross tools.
|
|
|
|
`(alist-cons-before
|
|
|
|
'build 'build-shared-lib ,build-shared-lib
|
|
|
|
(alist-cons-after
|
|
|
|
'install 'fix-man-dir ,fix-man-dir
|
|
|
|
(alist-cons-after
|
|
|
|
'install 'install-shared-lib ,install-shared-lib
|
|
|
|
(alist-replace 'configure ,set-cross-environment
|
|
|
|
%standard-phases))))
|
|
|
|
|
|
|
|
;; Native compilation: build the shared library.
|
|
|
|
`(alist-cons-before
|
|
|
|
'build 'build-shared-lib ,build-shared-lib
|
|
|
|
(alist-cons-after
|
|
|
|
'install 'fix-man-dir ,fix-man-dir
|
|
|
|
(alist-cons-after
|
|
|
|
'install 'install-shared-lib ,install-shared-lib
|
|
|
|
(alist-delete 'configure %standard-phases)))))
|
|
|
|
|
2012-11-04 23:16:58 +01:00
|
|
|
#:make-flags (list (string-append "PREFIX="
|
2013-09-29 17:22:08 +02:00
|
|
|
(assoc-ref %outputs "out")))
|
|
|
|
|
|
|
|
;; Don't attempt to run the tests when cross-compiling.
|
|
|
|
,@(if (%current-target-system)
|
|
|
|
'(#:tests? #f)
|
|
|
|
'())))
|
2012-11-04 23:16:58 +01:00
|
|
|
(synopsis "high-quality data compression program")
|
|
|
|
(description
|
|
|
|
"bzip2 is a freely available, patent free (see below), high-quality data
|
|
|
|
compressor. It typically compresses files to within 10% to 15% of the best
|
|
|
|
available techniques (the PPM family of statistical compressors), whilst
|
|
|
|
being around twice as fast at compression and six times faster at
|
|
|
|
decompression.")
|
distro: Use (guix licenses) instead of strings.
* distro/packages/acl.scm, distro/packages/attr.scm,
distro/packages/autotools.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/bison.scm, distro/packages/bootstrap.scm,
distro/packages/compression.scm, distro/packages/cpio.scm,
distro/packages/ddrescue.scm, distro/packages/ed.scm,
distro/packages/flex.scm, distro/packages/gawk.scm,
distro/packages/gdbm.scm, distro/packages/gettext.scm,
distro/packages/gnupg.scm, distro/packages/gnutls.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/help2man.scm, distro/packages/less.scm,
distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
distro/packages/libunistring.scm, distro/packages/linux.scm,
distro/packages/lout.scm, distro/packages/lsh.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/nano.scm, distro/packages/ncurses.scm,
distro/packages/nettle.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm,
distro/packages/shishi.scm, distro/packages/system.scm,
distro/packages/texinfo.scm, distro/packages/time.scm,
distro/packages/wget.scm, distro/packages/which.scm,
distro/packages/zile.scm: Use (guix licenses).
2012-12-14 16:14:04 +01:00
|
|
|
(license (license:bsd-style "file://LICENSE"
|
|
|
|
"See LICENSE in the distribution."))
|
2012-11-04 23:16:58 +01:00
|
|
|
(home-page "http://www.bzip.org/"))))
|
|
|
|
|
|
|
|
(define-public xz
|
|
|
|
(package
|
|
|
|
(name "xz")
|
|
|
|
(version "5.0.4")
|
|
|
|
(source (origin
|
Remove (guix http) and (guix ftp).
* guix/ftp.scm, guix/http.scm, guix/build/ftp.scm, guix/build/http.scm:
Remove.
* Makefile.am (MODULES): Likewise.
* tests/builders.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/compression.scm, distro/packages/gawk.scm,
distro/packages/gnupg.scm, distro/packages/gperf.scm,
distro/packages/guile.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/lout.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/ncurses.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm: Use
`url-fetch' instead of `http-fetch' and `ftp-fetch'.
* distro/packages/bootstrap.scm: Likewise
(bootstrap-origin): Remove references to `http-fetch' and
`ftp-fetch'.
* guix.scm (%public-modules): Remove `http' and `ftp'; add `download'.
2012-11-13 00:22:44 +01:00
|
|
|
(method url-fetch)
|
2012-11-04 23:16:58 +01:00
|
|
|
(uri (string-append "http://tukaani.org/xz/xz-" version
|
|
|
|
".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1dl35ca8fdss9z2d6y234gxh24ixq904xksizrjmjr5dimwhax6n"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(synopsis
|
|
|
|
"XZ, general-purpose data compression software, successor of LZMA")
|
|
|
|
(description
|
|
|
|
"XZ Utils is free general-purpose data compression software with high
|
|
|
|
compression ratio. XZ Utils were written for POSIX-like systems, but also
|
|
|
|
work on some not-so-POSIX systems. XZ Utils are the successor to LZMA Utils.
|
|
|
|
|
|
|
|
The core of the XZ Utils compression code is based on LZMA SDK, but it has
|
|
|
|
been modified quite a lot to be suitable for XZ Utils. The primary
|
|
|
|
compression algorithm is currently LZMA2, which is used inside the .xz
|
|
|
|
container format. With typical files, XZ Utils create 30 % smaller output
|
|
|
|
than gzip and 15 % smaller output than bzip2.")
|
2013-02-01 12:57:06 +01:00
|
|
|
(license (list license:gpl2+ license:lgpl2.1+)) ; bits of both
|
2012-11-04 23:16:58 +01:00
|
|
|
(home-page "http://tukaani.org/xz/")))
|
2012-11-13 21:42:12 +01:00
|
|
|
|
|
|
|
(define-public lzo
|
|
|
|
(package
|
|
|
|
(name "lzo")
|
|
|
|
(version "2.06")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://www.oberhumer.com/opensource/lzo/download/lzo-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0wryshs446s7cclrbjykyj766znhcpnr7s3cxy33ybfn6vwfcygz"))))
|
|
|
|
(build-system gnu-build-system)
|
2013-09-02 22:27:23 +02:00
|
|
|
(arguments '(#:configure-flags '("--enable-shared")))
|
2012-11-13 21:42:12 +01:00
|
|
|
(home-page "http://www.oberhumer.com/opensource/lzo")
|
|
|
|
(synopsis
|
|
|
|
"A data compresion library suitable for real-time data de-/compression")
|
|
|
|
(description
|
|
|
|
"LZO is a data compression library which is suitable for data
|
|
|
|
de-/compression in real-time. This means it favours speed over
|
|
|
|
compression ratio.
|
|
|
|
|
|
|
|
LZO is written in ANSI C. Both the source code and the compressed data
|
|
|
|
format are designed to be portable across platforms.")
|
distro: Use (guix licenses) instead of strings.
* distro/packages/acl.scm, distro/packages/attr.scm,
distro/packages/autotools.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/bison.scm, distro/packages/bootstrap.scm,
distro/packages/compression.scm, distro/packages/cpio.scm,
distro/packages/ddrescue.scm, distro/packages/ed.scm,
distro/packages/flex.scm, distro/packages/gawk.scm,
distro/packages/gdbm.scm, distro/packages/gettext.scm,
distro/packages/gnupg.scm, distro/packages/gnutls.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/help2man.scm, distro/packages/less.scm,
distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
distro/packages/libunistring.scm, distro/packages/linux.scm,
distro/packages/lout.scm, distro/packages/lsh.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/nano.scm, distro/packages/ncurses.scm,
distro/packages/nettle.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm,
distro/packages/shishi.scm, distro/packages/system.scm,
distro/packages/texinfo.scm, distro/packages/time.scm,
distro/packages/wget.scm, distro/packages/which.scm,
distro/packages/zile.scm: Use (guix licenses).
2012-12-14 16:14:04 +01:00
|
|
|
(license license:gpl2+)))
|
2013-07-20 00:24:17 +02:00
|
|
|
|
|
|
|
(define-public lzip
|
|
|
|
(package
|
|
|
|
(name "lzip")
|
2013-10-26 15:03:27 +02:00
|
|
|
(version "1.15")
|
2013-07-20 00:24:17 +02:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://savannah/lzip/lzip-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2013-10-26 15:03:27 +02:00
|
|
|
"1dh5vmj5apizfawnsm50y7z064yx7cz3313przph16gwd3dgrlvw"))))
|
2013-07-20 00:24:17 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(home-page "http://www.nongnu.org/lzip/lzip.html")
|
|
|
|
(synopsis "Lossless data compressor based on the LZMA algorithm")
|
|
|
|
(description
|
|
|
|
"Lzip is a lossless data compressor with a user interface similar to the
|
|
|
|
one of gzip or bzip2. Lzip decompresses almost as fast as gzip and compresses
|
|
|
|
more than bzip2, which makes it well suited for software distribution and data
|
|
|
|
archiving. Lzip is a clean implementation of the LZMA algorithm.")
|
|
|
|
(license license:gpl3+)))
|
2013-10-26 00:24:44 +02:00
|
|
|
|
|
|
|
(define-public sharutils
|
|
|
|
(package
|
|
|
|
(name "sharutils")
|
|
|
|
(version "4.14")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnu/sharutils/sharutils-"
|
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"033sq1v0cp0bi1mp320xaqwd4fhakqc5747hh6qa1asjrzpqiqza"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("which" ,which)))
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(alist-cons-after
|
|
|
|
'patch-source-shebangs 'unpatch-source-shebang
|
|
|
|
;; revert the patch-shebang phase on a script which is
|
|
|
|
;; in fact test data
|
|
|
|
(lambda* (#:key #:allow-other-keys)
|
|
|
|
(substitute* "tests/shar-1.ok"
|
|
|
|
(((which "sh")) "/bin/sh")))
|
|
|
|
%standard-phases)))
|
|
|
|
(home-page "http://www.gnu.org/software/sharutils/")
|
|
|
|
(synopsis "Archives in shell scripts, uuencode/uudecode")
|
|
|
|
(description
|
|
|
|
"GNU sharutils is a package for manipulating shell archives. Shell
|
|
|
|
archives are collections of files that can be unpacked using only the shell;
|
|
|
|
an archive is a self-extracting shell script. The tools in the Sharutils
|
|
|
|
package make working with shell archives more robust, offering compression,
|
|
|
|
file-splitting and simple checksums.")
|
|
|
|
(license license:gpl3+)))
|