From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Mickey Subject: [PATCH] gnu: compression: Add pigz Date: Mon, 28 Sep 2015 14:55:56 -0700 Message-ID: <871tditdhv.fsf@codemac.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZggOy-0001eI-TV for guix-devel@gnu.org; Mon, 28 Sep 2015 17:56:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZggOu-0006GE-EM for guix-devel@gnu.org; Mon, 28 Sep 2015 17:56:04 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:34159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZggOu-0006G5-9b for guix-devel@gnu.org; Mon, 28 Sep 2015 17:56:00 -0400 Received: by padhy16 with SMTP id hy16so185113255pad.1 for ; Mon, 28 Sep 2015 14:55:59 -0700 (PDT) Received: from nevada.igneoussystems.com ([2607:f0dc:a661:3000:7e7a:91ff:fe1a:72d2]) by smtp.gmail.com with ESMTPSA id w5sm21286717pbs.31.2015.09.28.14.55.57 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Sep 2015 14:55:57 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/plain Hi folks, This patch adds the parallel gzip implementation for guix. // codemac --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-pigz.patch Content-Transfer-Encoding: quoted-printable >From 0eadbc2557621939b29bd4cfbb562bc396871ec8 Mon Sep 17 00:00:00 2001 From: Jeff Mickey Date: Mon, 28 Sep 2015 14:53:28 -0700 Subject: [PATCH] gnu: Add pigz * gnu/packages/compression.scm (pigz): New variable. --- gnu/packages/compression.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index fbe5ba4..66b8726 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -6,6 +6,7 @@ ;;; Copyright =C2=A9 2015 Eric Bavier ;;; Copyright =C2=A9 2015 Ricardo Wurmus ;;; Copyright =C2=A9 2015 Leo Famulari +;;; Copyright =C2=A9 2015 Jeff Mickey ;;; ;;; This file is part of GNU Guix. ;;; @@ -586,3 +587,43 @@ It is intended to be used for archival use, for live C= Ds, and for embedded systems where low overhead is needed. This package allows you to create a= nd extract such filesystems.") (license license:gpl2+))) + +(define-public pigz + (package + (name "pigz") + (version "2.3.3") + (source (origin + (method url-fetch) + (uri (string-append "http://zlib.net/pigz/" name "-" version= ".tar.gz")) + (sha256 + (base32 + "172hdf26k4zmm7z8md7nl0dph2a7mhf3x7slb9bhfyff6as6g2sf")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (man (string-append out "/share/man/man1"))) + (mkdir-p bin) + (copy-file "pigz" (string-append bin "/pigz")) + (symlink + (string-append bin "/pigz") + (string-append bin "/unpigz")) + (mkdir-p man) + (copy-file "pigz.1" (string-append man "/pigz.1"))) + #t))) + #:make-flags (list "CC=3Dgcc") + #:test-target "tests")) + (inputs `(("zlib" ,zlib))) + (home-page "http://zlib.net/pigz/") + (synopsis "Parallel implementation of gzip for multi-processor, +multi-core machines") + (description "A parallel implementation of gzip that is a fully functi= onal +replacement for gzip that exploits multiple processors and multiple cores = when +compressing data. pigz was written by Mark Adler, and uses the zlib and +pthread libraries.") + (license license:bsd-3))) --=20 2.5.0 --=-=-=--