summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-05-09 21:57:59 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-05-11 00:18:17 -0400
commite23e5db39b5c917b182610db4610c8c35fad4581 (patch)
tree18f15baa18833b1312c9a5ead21b8ffd284b87f4
parent2320bc27cf47935fdc6ff3eb1f403a6887baa7aa (diff)
downloadguix-e23e5db39b5c917b182610db4610c8c35fad4581.tar.gz
gnu: Add perl-perlio-gzip.
* gnu/packages/perl-compression.scm (perl-perlio-gzip): New variable.
-rw-r--r--gnu/packages/perl-compression.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/perl-compression.scm b/gnu/packages/perl-compression.scm
index 6bb67bcb59..bb47a90f8f 100644
--- a/gnu/packages/perl-compression.scm
+++ b/gnu/packages/perl-compression.scm
@@ -4,6 +4,7 @@
 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2017 Petter <petter@mykolab.ch>
 ;;; Copyright © 2017, 2019 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -107,6 +108,31 @@ compression library.")
 writing of compressed data created with the zlib and bzip2 libraries.")
     (license license:perl-license)))
 
+(define-public perl-perlio-gzip
+  (package
+    (name "perl-perlio-gzip")
+    (version "0.20")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://cpan/authors/id/N/NW/NWCLARK/PerlIO-gzip-"
+                    version ".tar.gz"))
+              (sha256
+               (base32
+                "1idxsdmpinsp6qm1lizs7y955bq2wqk9avsz1hxky7i07yd6fj28"))))
+    (build-system perl-build-system)
+    (arguments
+     `(#:make-maker-flags
+       ;; MakeMaker doesn't honor LIBRARY_PATH.
+       (let ((zlib (assoc-ref %build-inputs "zlib")))
+         (list (format #f "LIBS=-L~a/lib/ -lz" zlib)))))
+    (inputs `(("zlib" ,zlib)))
+    (home-page "https://metacpan.org/pod/PerlIO::gzip")
+    (synopsis "Perl extension to provide a PerlIO layer to gzip/gunzip")
+    (description "PerlIO::gzip provides a PerlIO layer that manipulates files
+in the format used by the @command{gzip} program.")
+    (license license:perl-license)))
+
 (define-public perl-archive-extract
   (package
     (name "perl-archive-extract")