gnu: Remove python2-pyaudio.
[jackhill/guix/guix.git] / gnu / packages / perl-compression.scm
CommitLineData
21b41a79
RW
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 John Darrington <jmd@gnu.org>
3;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
f9caa6c7 4;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
21b41a79 5;;; Copyright © 2017 Petter <petter@mykolab.ch>
08ca79a5 6;;; Copyright © 2017, 2019, 2021 Efraim Flashner <efraim@flashner.co.il>
e23e5db3 7;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
87554eee 8;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
21b41a79
RW
9;;;
10;;; This file is part of GNU Guix.
11;;;
12;;; GNU Guix is free software; you can redistribute it and/or modify it
13;;; under the terms of the GNU General Public License as published by
14;;; the Free Software Foundation; either version 3 of the License, or (at
15;;; your option) any later version.
16;;;
17;;; GNU Guix is distributed in the hope that it will be useful, but
18;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20;;; GNU General Public License for more details.
21;;;
22;;; You should have received a copy of the GNU General Public License
23;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
24
25(define-module (gnu packages perl-compression)
26 #:use-module ((guix licenses) #:prefix license:)
27 #:use-module (guix utils)
28 #:use-module (guix packages)
29 #:use-module (guix download)
30 #:use-module (guix build-system perl)
31 #:use-module (gnu packages)
32 #:use-module (gnu packages compression)
33 #:use-module (gnu packages perl)
34 #:use-module (gnu packages perl-check))
35
87554eee
NG
36(define-public perl-compress-bzip2
37 (package
38 (name "perl-compress-bzip2")
b1953a19 39 (version "2.28")
87554eee
NG
40 (source
41 (origin
42 (method url-fetch)
43 (uri (string-append "mirror://cpan/authors/id/R/RU/RURBAN/"
44 "Compress-Bzip2-" version ".tar.gz"))
45 (sha256
b1953a19 46 (base32 "0vhi6nqayvg6wz55bynccv5xd6gzhbigk9mjv088i6aw7xf877w5"))))
87554eee
NG
47 (build-system perl-build-system)
48 (arguments
49 `(#:phases
50 (modify-phases %standard-phases
51 (add-after 'unpack 'use-system-bzip2
52 (lambda* (#:key inputs #:allow-other-keys)
53 (let ((bzip2 (assoc-ref inputs "bzip2")))
54 (setenv "BUILD_BZLIB" "0")
55 (setenv "BZLIB_BIN" (string-append bzip2 "/bin"))
56 (setenv "BZLIB_INCLUDE" (string-append bzip2 "/include"))
57 (setenv "BZLIB_LIB" (string-append bzip2 "/lib"))
58 #t))))))
59 (inputs
8394619b 60 (list bzip2))
87554eee
NG
61 (home-page "https://metacpan.org/release/Compress-Bzip2")
62 (synopsis "Interface to Bzip2 compression library")
63 (description
64 "The Compress::Bzip2 module provides a Perl interface to the Bzip2
65compression library. A relevant subset of the functionality provided by Bzip2
66is available in this module.")
67 (license license:perl-license)))
68
21b41a79
RW
69(define-public perl-compress-raw-bzip2
70 (package
71 (name "perl-compress-raw-bzip2")
410e8ccb 72 (version "2.096")
21b41a79
RW
73 (source
74 (origin
75 (method url-fetch)
76 (uri (string-append "mirror://cpan/authors/id/P/PM/PMQS/"
77 "Compress-Raw-Bzip2-" version ".tar.gz"))
78 (sha256
410e8ccb 79 (base32 "1glcjnbqksaviwyrprh9i4dybsb12kzfy0bx932l0xya9riyfr55"))))
21b41a79
RW
80 (build-system perl-build-system)
81 ;; TODO: Use our bzip2 package.
82 (home-page "https://metacpan.org/release/Compress-Raw-Bzip2")
83 (synopsis "Low-level interface to bzip2 compression library")
84 (description "This module provides a Perl interface to the bzip2
85compression library.")
86 (license license:perl-license)))
87
88(define-public perl-compress-raw-zlib
89 (package
90 (name "perl-compress-raw-zlib")
465290ea 91 (version "2.096")
21b41a79
RW
92 (source
93 (origin
94 (method url-fetch)
95 (uri (string-append "mirror://cpan/authors/id/P/PM/PMQS/"
96 "Compress-Raw-Zlib-" version ".tar.gz"))
97 (sha256
465290ea 98 (base32 "04jrqvqsa2c655idw7skv5rhb9vx9997h4n9if5p99srq4hblk6d"))))
21b41a79
RW
99 (build-system perl-build-system)
100 (inputs
8394619b 101 (list zlib))
21b41a79
RW
102 (arguments
103 `(#:phases (modify-phases %standard-phases
104 (add-before
105 'configure 'configure-zlib
106 (lambda* (#:key inputs #:allow-other-keys)
107 (call-with-output-file "config.in"
108 (lambda (port)
109 (format port "
110BUILD_ZLIB = False
111INCLUDE = ~a/include
112LIB = ~:*~a/lib
113OLD_ZLIB = False
114GZIP_OS_CODE = AUTO_DETECT"
115 (assoc-ref inputs "zlib"))))
116 #t)))))
117 (home-page "https://metacpan.org/release/Compress-Raw-Zlib")
118 (synopsis "Low-level interface to zlib compression library")
119 (description "This module provides a Perl interface to the zlib
120compression library.")
121 (license license:perl-license)))
122
123(define-public perl-io-compress
124 (package
125 (name "perl-io-compress")
742c70cd 126 (version "2.096")
21b41a79
RW
127 (source
128 (origin
129 (method url-fetch)
130 (uri (string-append "mirror://cpan/authors/id/P/PM/PMQS/"
131 "IO-Compress-" version ".tar.gz"))
132 (sha256
742c70cd 133 (base32 "0wm51dib74l9baqfkfm0ixsr4cqwrgij2yc45xfhnjabvzary8cx"))))
21b41a79
RW
134 (build-system perl-build-system)
135 (propagated-inputs
53ab26f7 136 ;; These two packages should be updated to this one's version first.
8394619b 137 (list perl-compress-raw-zlib perl-compress-raw-bzip2))
21b41a79
RW
138 (home-page "https://metacpan.org/release/IO-Compress")
139 (synopsis "IO Interface to compressed files/buffers")
140 (description "IO-Compress provides a Perl interface to allow reading and
141writing of compressed data created with the zlib and bzip2 libraries.")
142 (license license:perl-license)))
143
e23e5db3
MC
144(define-public perl-perlio-gzip
145 (package
146 (name "perl-perlio-gzip")
147 (version "0.20")
148 (source (origin
149 (method url-fetch)
150 (uri (string-append
151 "mirror://cpan/authors/id/N/NW/NWCLARK/PerlIO-gzip-"
152 version ".tar.gz"))
153 (sha256
154 (base32
155 "1idxsdmpinsp6qm1lizs7y955bq2wqk9avsz1hxky7i07yd6fj28"))))
156 (build-system perl-build-system)
157 (arguments
158 `(#:make-maker-flags
159 ;; MakeMaker doesn't honor LIBRARY_PATH.
160 (let ((zlib (assoc-ref %build-inputs "zlib")))
161 (list (format #f "LIBS=-L~a/lib/ -lz" zlib)))))
8394619b 162 (inputs (list zlib))
e23e5db3
MC
163 (home-page "https://metacpan.org/pod/PerlIO::gzip")
164 (synopsis "Perl extension to provide a PerlIO layer to gzip/gunzip")
165 (description "PerlIO::gzip provides a PerlIO layer that manipulates files
166in the format used by the @command{gzip} program.")
167 (license license:perl-license)))
168
21b41a79
RW
169(define-public perl-archive-extract
170 (package
171 (name "perl-archive-extract")
08ca79a5 172 (version "0.88")
21b41a79
RW
173 (source
174 (origin
175 (method url-fetch)
176 (uri (string-append "mirror://cpan/authors/id/B/BI/BINGOS/Archive-Extract-"
177 version ".tar.gz"))
178 (sha256
08ca79a5 179 (base32 "0hpplmgf4j0rc9k3kl5fzi4m8j8ncxyly5827dyjh8h6rlsz3z6g"))))
21b41a79
RW
180 (build-system perl-build-system)
181 (home-page "https://metacpan.org/release/Archive-Extract")
182 (synopsis "Generic archive extracting mechanism")
183 (description "It allows you to extract any archive file of the type .tar,
184.tar.gz, .gz, .Z, tar.bz2, .tbz, .bz2, .zip, .xz,, .txz, .tar.xz or .lzma
185without having to worry how it does so, or use different interfaces for each
186type by using either Perl modules, or command-line tools on your system.")
187 (license license:perl-license)))
188
189(define-public perl-archive-zip
190 (package
191 (name "perl-archive-zip")
f9caa6c7 192 (version "1.68")
21b41a79
RW
193 (source
194 (origin
195 (method url-fetch)
196 (uri (string-append
197 "mirror://cpan/authors/id/P/PH/PHRED/Archive-Zip-"
198 version ".tar.gz"))
199 (sha256
f9caa6c7 200 (base32 "0l663s3a68p8r2qjy4pn1g05lx0i8js8wpz7qqln3bsvg1fihklq"))))
21b41a79
RW
201 (build-system perl-build-system)
202 (native-inputs
203 ;; For tests.
8394619b 204 (list perl-test-mockmodule))
21b41a79
RW
205 (synopsis "Provides an interface to Zip archive files")
206 (description "The @code{Archive::Zip} module allows a Perl program to
207create, manipulate, read, and write Zip archive files.")
208 (home-page "https://metacpan.org/release/Archive-Zip")
209 (license license:perl-license)))