From 8e18514a69f670d8817842a76cfaa3d404b66c3f Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Mon, 6 Apr 2015 14:50:44 -0500 Subject: [PATCH] gnu: Add Compress-Raw-Zlib. * gnu/packages/compression.scm (perl-compress-raw-zlib): New variable. --- gnu/packages/compression.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 61a94b31a2..7dc62c7c12 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -366,3 +366,38 @@ (define-public perl-compress-raw-bzip2 (description "This module provides a Perl interface to the bzip2 compression library.") (license (package-license perl)))) + +(define-public perl-compress-raw-zlib + (package + (name "perl-compress-raw-zlib") + (version "2.068") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/P/PM/PMQS/" + "Compress-Raw-Zlib-" version ".tar.gz")) + (sha256 + (base32 + "06q7n87g26nn5gv4z2p31ca32f6zk124hqxc25rfgkjd3qi5798i")))) + (build-system perl-build-system) + (inputs + `(("zlib" ,zlib))) + (arguments + `(#:phases (modify-phases %standard-phases + (add-before + configure configure-zlib + (lambda* (#:key inputs #:allow-other-keys) + (call-with-output-file "config.in" + (lambda (port) + (format port " +BUILD_ZLIB = False +INCLUDE = ~a/include +LIB = ~:*~a/lib +OLD_ZLIB = False +GZIP_OS_CODE = AUTO_DETECT" + (assoc-ref inputs "zlib"))))))))) + (home-page "http://search.cpan.org/dist/Compress-Raw-Zlib") + (synopsis "Low-level interface to zlib compression library") + (description "This module provides a Perl interface to the zlib +compression library.") + (license (package-license perl))))