summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Bavier <bavier@member.fsf.org>2015-04-06 14:50:44 -0500
committerEric Bavier <bavier@member.fsf.org>2015-04-19 19:48:48 -0500
commit8e18514a69f670d8817842a76cfaa3d404b66c3f (patch)
tree515962fe2ee0f61f7161bbaeaada1036d1f57707
parent73f542c3681ea665bdf2f9df26d0060e963d5f00 (diff)
downloadguix-8e18514a69f670d8817842a76cfaa3d404b66c3f.tar.gz
gnu: Add Compress-Raw-Zlib.
* gnu/packages/compression.scm (perl-compress-raw-zlib): New variable.
-rw-r--r--gnu/packages/compression.scm35
1 files changed, 35 insertions, 0 deletions
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 @@ decompression of some loosely related file formats used by Microsoft.")
     (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))))