From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL54r-00046H-KG for guix-patches@gnu.org; Wed, 14 Jun 2017 05:59:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dL54o-0001ej-12 for guix-patches@gnu.org; Wed, 14 Jun 2017 05:59:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:44034) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dL54n-0001ec-Td for guix-patches@gnu.org; Wed, 14 Jun 2017 05:59:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dL54n-0001s0-O0 for guix-patches@gnu.org; Wed, 14 Jun 2017 05:59:01 -0400 Subject: [bug#27355] [PATCH 1/7] gnu: Add libzip. References: <87wp8ex5bn.fsf@openmailbox.org> In-Reply-To: <87wp8ex5bn.fsf@openmailbox.org> Resent-Message-ID: From: Theodoros Foradis Date: Wed, 14 Jun 2017 12:58:07 +0300 Message-Id: <20170614095813.1926-1-theodoros.for@openmailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27355@debbugs.gnu.org * gnu/packages/zip.scm (libzip): New variable. --- gnu/packages/zip.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/zip.scm b/gnu/packages/zip.scm index 8feb4fea2..4f0e7ff32 100644 --- a/gnu/packages/zip.scm +++ b/gnu/packages/zip.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013 Andreas Enge ;;; Copyright © 2014, 2015 Mark H Weaver +;;; Copyright © 2017 Theodoros Foradis ;;; ;;; This file is part of GNU Guix. ;;; @@ -175,3 +176,34 @@ recreates the stored directory structure by default.") manipulate, read, and write Zip archive files.") (home-page "http://search.cpan.org/~adamk/Archive-Zip-1.30/") (license license:perl-license))) + +(define-public libzip + (package + (name "libzip") + (version "1.2.0") + (source (origin + (method url-fetch) + (uri (string-append + "https://nih.at/libzip/libzip-" + version ".tar.gz")) + (sha256 + (base32 + "17vxj2ffsxwh8lkc6801ppmwj15jp8q58rin76znxfbx88789ybc")))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'configure 'patch-perl + (lambda _ + (substitute* "regress/runtest.in" + (("/usr/bin/env perl") (which "perl")))))))) + (inputs + `(("perl" ,perl) + ("zlib" ,zlib))) + (build-system gnu-build-system) + (home-page "https://nih.at/libzip/index.html") + (synopsis "C library for reading, creating, and modifying zip archives") + (description "Libzip is a C library for reading, creating, and modifying zip +archives. Files can be added from data buffers, files, or compressed data copied +directly from other zip archives. Changes made without closing the archive can be +reverted.") + (license license:bsd-3))) -- 2.13.1