From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOVmI-0002Lc-7J for guix-patches@gnu.org; Fri, 23 Jun 2017 17:06:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dOVmE-00058v-HK for guix-patches@gnu.org; Fri, 23 Jun 2017 17:06:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60375) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dOVmE-00058Z-Dd for guix-patches@gnu.org; Fri, 23 Jun 2017 17:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dOVmE-0003XS-6T for guix-patches@gnu.org; Fri, 23 Jun 2017 17:06:02 -0400 Subject: [bug#27355] [PATCH v2 1/7] gnu: Add libzip. Resent-Message-ID: From: Theodoros Foradis Date: Sat, 24 Jun 2017 00:05:11 +0300 Message-Id: <20170623210517.25205-1-theodoros.for@openmailbox.org> In-Reply-To: <87poduquyl.fsf@openmailbox.org> References: <87poduquyl.fsf@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/compression.scm (libzip): New variable. --- gnu/packages/compression.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 2667ebb97..2ca00a7a4 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -16,6 +16,7 @@ ;;; Copyright © 2016 Marius Bakke ;;; Copyright © 2017 ng0 ;;; Copyright © 2017 Manolis Fragkiskos Ragkousis +;;; Copyright © 2017 Theodoros Foradis ;;; ;;; This file is part of GNU Guix. ;;; @@ -1491,3 +1492,35 @@ 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")))))))) + (native-inputs + `(("perl" ,perl))) + (inputs + `(("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