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>
4 ;;; Copyright © 2016, 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
5 ;;; Copyright © 2017 Petter <petter@mykolab.ch>
6 ;;; Copyright © 2017, 2019 Efraim Flashner <efraim@flashner.co.il>
8 ;;; This file is part of GNU Guix.
10 ;;; GNU Guix is free software; you can redistribute it and/or modify it
11 ;;; under the terms of the GNU General Public License as published by
12 ;;; the Free Software Foundation; either version 3 of the License, or (at
13 ;;; your option) any later version.
15 ;;; GNU Guix is distributed in the hope that it will be useful, but
16 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;;; GNU General Public License for more details.
20 ;;; You should have received a copy of the GNU General Public License
21 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23 (define-module (gnu packages perl-compression)
24 #:use-module ((guix licenses) #:prefix license:)
25 #:use-module (guix utils)
26 #:use-module (guix packages)
27 #:use-module (guix download)
28 #:use-module (guix build-system perl)
29 #:use-module (gnu packages)
30 #:use-module (gnu packages compression)
31 #:use-module (gnu packages perl)
32 #:use-module (gnu packages perl-check))
34 (define-public perl-compress-raw-bzip2
36 (name "perl-compress-raw-bzip2")
41 (uri (string-append "mirror://cpan/authors/id/P/PM/PMQS/"
42 "Compress-Raw-Bzip2-" version ".tar.gz"))
45 "0kwjrsl519bv48b7698a9anj6l0n3z1vrd1a7im2r1pbffxxw5kx"))))
46 (build-system perl-build-system)
47 ;; TODO: Use our bzip2 package.
48 (home-page "https://metacpan.org/release/Compress-Raw-Bzip2")
49 (synopsis "Low-level interface to bzip2 compression library")
50 (description "This module provides a Perl interface to the bzip2
51 compression library.")
52 (license license:perl-license)))
54 (define-public perl-compress-raw-zlib
56 (name "perl-compress-raw-zlib")
61 (uri (string-append "mirror://cpan/authors/id/P/PM/PMQS/"
62 "Compress-Raw-Zlib-" version ".tar.gz"))
65 "0vv69a8kjx64cxhjgaccidy2yyij2j3aqlrv1r0dwa1fl9xijpim"))))
66 (build-system perl-build-system)
70 `(#:phases (modify-phases %standard-phases
72 'configure 'configure-zlib
73 (lambda* (#:key inputs #:allow-other-keys)
74 (call-with-output-file "config.in"
81 GZIP_OS_CODE = AUTO_DETECT"
82 (assoc-ref inputs "zlib"))))
84 (home-page "https://metacpan.org/release/Compress-Raw-Zlib")
85 (synopsis "Low-level interface to zlib compression library")
86 (description "This module provides a Perl interface to the zlib
87 compression library.")
88 (license license:perl-license)))
90 (define-public perl-io-compress
92 (name "perl-io-compress")
97 (uri (string-append "mirror://cpan/authors/id/P/PM/PMQS/"
98 "IO-Compress-" version ".tar.gz"))
101 "1dbdsxhbikmbbfsdam3crv8474l8ax6d9d7r3s6safk4v8z51g8x"))))
102 (build-system perl-build-system)
104 `(("perl-compress-raw-zlib" ,perl-compress-raw-zlib) ; >=2.081
105 ("perl-compress-raw-bzip2" ,perl-compress-raw-bzip2))) ; >=2.081
106 (home-page "https://metacpan.org/release/IO-Compress")
107 (synopsis "IO Interface to compressed files/buffers")
108 (description "IO-Compress provides a Perl interface to allow reading and
109 writing of compressed data created with the zlib and bzip2 libraries.")
110 (license license:perl-license)))
112 (define-public perl-archive-extract
114 (name "perl-archive-extract")
119 (uri (string-append "mirror://cpan/authors/id/B/BI/BINGOS/Archive-Extract-"
123 "1x15j1q6w6z8hqyqgap0lz4qbq2174wfhksy1fdd653ccbaw5jr5"))))
124 (build-system perl-build-system)
125 (home-page "https://metacpan.org/release/Archive-Extract")
126 (synopsis "Generic archive extracting mechanism")
127 (description "It allows you to extract any archive file of the type .tar,
128 .tar.gz, .gz, .Z, tar.bz2, .tbz, .bz2, .zip, .xz,, .txz, .tar.xz or .lzma
129 without having to worry how it does so, or use different interfaces for each
130 type by using either Perl modules, or command-line tools on your system.")
131 (license license:perl-license)))
133 (define-public perl-archive-zip
135 (name "perl-archive-zip")
141 "mirror://cpan/authors/id/P/PH/PHRED/Archive-Zip-"
144 (base32 "116vcg8x7n92i7cn3bx0xck69mz9vjy0il9i8p7p7lk40kz7jcbl"))))
145 (build-system perl-build-system)
148 `(("perl-test-mockmodule" ,perl-test-mockmodule)))
149 (synopsis "Provides an interface to Zip archive files")
150 (description "The @code{Archive::Zip} module allows a Perl program to
151 create, manipulate, read, and write Zip archive files.")
152 (home-page "https://metacpan.org/release/Archive-Zip")
153 (license license:perl-license)))