| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 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 |
|
| 36 | (define-public perl-compress-bzip2
|
| 37 | (package
|
| 38 | (name "perl-compress-bzip2")
|
| 39 | (version "2.28")
|
| 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
|
| 46 | (base32 "0vhi6nqayvg6wz55bynccv5xd6gzhbigk9mjv088i6aw7xf877w5"))))
|
| 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
|
| 60 | (list bzip2))
|
| 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
|
| 65 | compression library. A relevant subset of the functionality provided by Bzip2
|
| 66 | is available in this module.")
|
| 67 | (license license:perl-license)))
|
| 68 |
|
| 69 | (define-public perl-compress-raw-bzip2
|
| 70 | (package
|
| 71 | (name "perl-compress-raw-bzip2")
|
| 72 | (version "2.213")
|
| 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
|
| 79 | (base32
|
| 80 | "0yvwaxq6friwx9yi8nb1q1w998rxim1hvc31h2hiq469cv9x6xcd"))))
|
| 81 | (build-system perl-build-system)
|
| 82 | |
| 83 | (home-page "https://metacpan.org/release/Compress-Raw-Bzip2")
|
| 84 | (synopsis "Low-level interface to bzip2 compression library")
|
| 85 | (description "This module @code{Compress::Raw::Bzip2} provides a Perl
|
| 86 | interface to the bzip2 compression library.")
|
| 87 | (license license:perl-license)))
|
| 88 |
|
| 89 | (define-public perl-compress-raw-zlib
|
| 90 | (package
|
| 91 | (name "perl-compress-raw-zlib")
|
| 92 | (version "2.213")
|
| 93 | (source
|
| 94 | (origin
|
| 95 | (method url-fetch)
|
| 96 | (uri (string-append "mirror://cpan/authors/id/P/PM/PMQS/"
|
| 97 | "Compress-Raw-Zlib-" version ".tar.gz"))
|
| 98 | (sha256
|
| 99 | (base32
|
| 100 | "0idg0shi0rz4z2cdrm6x8f8zqh9zm9fx0kd7frw7yfisrfcircjn"))))
|
| 101 | (build-system perl-build-system)
|
| 102 | (inputs
|
| 103 | (list zlib))
|
| 104 | (home-page "https://metacpan.org/release/Compress-Raw-Zlib")
|
| 105 | (synopsis "Low-level interface to zlib compression library")
|
| 106 | (description "The @code{Compress::Raw::Zlib} module provides a Perl
|
| 107 | interface to the zlib compression library.")
|
| 108 | (license license:perl-license)))
|
| 109 |
|
| 110 | (define-public perl-io-compress
|
| 111 | (package
|
| 112 | (name "perl-io-compress")
|
| 113 | (version "2.213")
|
| 114 | (source
|
| 115 | (origin
|
| 116 | (method url-fetch)
|
| 117 | (uri (string-append "mirror://cpan/authors/id/P/PM/PMQS/"
|
| 118 | "IO-Compress-" version ".tar.gz"))
|
| 119 | (sha256
|
| 120 | (base32
|
| 121 | "0ld8p4f0yj79zyiwafxdf45p5qii8vkp61gvyb2nhiafayp02kdf"))))
|
| 122 | (build-system perl-build-system)
|
| 123 | (propagated-inputs
|
| 124 | |
| 125 | (list perl-compress-raw-zlib perl-compress-raw-bzip2))
|
| 126 | (home-page "https://metacpan.org/release/IO-Compress")
|
| 127 | (synopsis "IO Interface to compressed files/buffers")
|
| 128 | (description "Perl's @code{IO::Compress} module provides an interface for
|
| 129 | reading and writing compressed data created with the zlib and bzip2 libraries.")
|
| 130 | (license license:perl-license)))
|
| 131 |
|
| 132 | (define-public perl-io-zlib
|
| 133 | (package
|
| 134 | (name "perl-io-zlib")
|
| 135 | (version "1.15")
|
| 136 | (source
|
| 137 | (origin
|
| 138 | (method url-fetch)
|
| 139 | (uri (string-append "mirror://cpan/authors/id/T/TO/TOMHUGHES/"
|
| 140 | "IO-Zlib-" version ".tar.gz"))
|
| 141 | (sha256
|
| 142 | (base32
|
| 143 | "0cpzxcr5ir3iqw5k8gq39as8kxy5hds3w6k8ckykzk1p5rwqgn3s"))))
|
| 144 | (build-system perl-build-system)
|
| 145 | (propagated-inputs
|
| 146 | (list perl-compress-raw-zlib))
|
| 147 | (home-page "https://metacpan.org/dist/IO-Zlib")
|
| 148 | (synopsis "Perl IO style interface to @code{Compress:Zlib}")
|
| 149 | (description "The @code{IO::Zlib} module is a Perl IO style interface
|
| 150 | to @code{Compress:Zlib} that simplifies reading and writing compressed data.")
|
| 151 | (license license:perl-license)))
|
| 152 |
|
| 153 | (define-public perl-perlio-gzip
|
| 154 | (package
|
| 155 | (name "perl-perlio-gzip")
|
| 156 | (version "0.20")
|
| 157 | (source (origin
|
| 158 | (method url-fetch)
|
| 159 | (uri (string-append
|
| 160 | "mirror://cpan/authors/id/N/NW/NWCLARK/PerlIO-gzip-"
|
| 161 | version ".tar.gz"))
|
| 162 | (sha256
|
| 163 | (base32
|
| 164 | "1idxsdmpinsp6qm1lizs7y955bq2wqk9avsz1hxky7i07yd6fj28"))))
|
| 165 | (build-system perl-build-system)
|
| 166 | (arguments
|
| 167 | `(#:make-maker-flags
|
| 168 | |
| 169 | (let ((zlib (assoc-ref %build-inputs "zlib")))
|
| 170 | (list (format #f "LIBS=-L~a/lib/ -lz" zlib)))))
|
| 171 | (inputs (list zlib))
|
| 172 | (home-page "https://metacpan.org/pod/PerlIO::gzip")
|
| 173 | (synopsis "Perl extension to provide a PerlIO layer to gzip/gunzip")
|
| 174 | (description "PerlIO::gzip provides a PerlIO layer that manipulates files
|
| 175 | in the format used by the @command{gzip} program.")
|
| 176 | (license license:perl-license)))
|
| 177 |
|
| 178 | (define-public perl-archive-extract
|
| 179 | (package
|
| 180 | (name "perl-archive-extract")
|
| 181 | (version "0.88")
|
| 182 | (source
|
| 183 | (origin
|
| 184 | (method url-fetch)
|
| 185 | (uri (string-append "mirror://cpan/authors/id/B/BI/BINGOS/Archive-Extract-"
|
| 186 | version ".tar.gz"))
|
| 187 | (sha256
|
| 188 | (base32 "0hpplmgf4j0rc9k3kl5fzi4m8j8ncxyly5827dyjh8h6rlsz3z6g"))))
|
| 189 | (build-system perl-build-system)
|
| 190 | (home-page "https://metacpan.org/release/Archive-Extract")
|
| 191 | (synopsis "Generic archive extracting mechanism")
|
| 192 | (description "It allows you to extract any archive file of the type .tar,
|
| 193 | .tar.gz, .gz, .Z, tar.bz2, .tbz, .bz2, .zip, .xz,, .txz, .tar.xz or .lzma
|
| 194 | without having to worry how it does so, or use different interfaces for each
|
| 195 | type by using either Perl modules, or command-line tools on your system.")
|
| 196 | (license license:perl-license)))
|
| 197 |
|
| 198 | (define-public perl-archive-zip
|
| 199 | (package
|
| 200 | (name "perl-archive-zip")
|
| 201 | (version "1.68")
|
| 202 | (source
|
| 203 | (origin
|
| 204 | (method url-fetch)
|
| 205 | (uri (string-append
|
| 206 | "mirror://cpan/authors/id/P/PH/PHRED/Archive-Zip-"
|
| 207 | version ".tar.gz"))
|
| 208 | (sha256
|
| 209 | (base32 "0l663s3a68p8r2qjy4pn1g05lx0i8js8wpz7qqln3bsvg1fihklq"))))
|
| 210 | (build-system perl-build-system)
|
| 211 | (native-inputs
|
| 212 | |
| 213 | (list perl-test-mockmodule))
|
| 214 | (synopsis "Provides an interface to Zip archive files")
|
| 215 | (description "The @code{Archive::Zip} module allows a Perl program to
|
| 216 | create, manipulate, read, and write Zip archive files.")
|
| 217 | (home-page "https://metacpan.org/release/Archive-Zip")
|
| 218 | (license license:perl-license)))
|