From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: [PATCH v2] gnu: Add xdelta. Date: Sun, 17 Jul 2016 02:48:42 +0200 Message-ID: <20160717004842.1525-1-me@tobias.gr> References: <20160716225426.1047-1-me@tobias.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOaIe-00086H-UM for guix-devel@gnu.org; Sat, 16 Jul 2016 20:51:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOaIa-0007mz-Nr for guix-devel@gnu.org; Sat, 16 Jul 2016 20:51:15 -0400 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:59867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOaIa-0007mu-Hu for guix-devel@gnu.org; Sat, 16 Jul 2016 20:51:12 -0400 Received: from mfilter18-d.gandi.net (mfilter18-d.gandi.net [217.70.178.146]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id 72F16FB882 for ; Sun, 17 Jul 2016 02:51:10 +0200 (CEST) Received: from relay6-d.mail.gandi.net ([IPv6:::ffff:217.70.183.198]) by mfilter18-d.gandi.net (mfilter18-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 7Fz05gLQbyoi for ; Sun, 17 Jul 2016 02:48:50 +0200 (CEST) Received: from localhost.localdomain (30.171-241-81.adsl-dyn.isp.belgacom.be [81.241.171.30]) (Authenticated sender: me@tobias.gr) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 13B79FB881 for ; Sun, 17 Jul 2016 02:48:49 +0200 (CEST) In-Reply-To: <20160716225426.1047-1-me@tobias.gr> 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" To: guix-devel@gnu.org * gnu/packages/compression.scm (xdelta): New variable. --- Whoops, now where did that lint come from? Sorry, T G-R gnu/packages/compression.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 97f0546..6a17003 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -10,6 +10,7 @@ ;;; Copyright © 2015, 2016 Efraim Flashner ;;; Copyright © 2016 Ben Woodcroft ;;; Copyright © 2016 Danny Milosavljevic +;;; Copyright © 2016 Tobias Geerinckx-Rice ;;; ;;; This file is part of GNU Guix. ;;; @@ -796,3 +797,39 @@ respectively, based on the reference implementation from Google.") (description "Extracts files out of Microsoft Cabinet (.cab) archives") ;; Some source files specify gpl2+, lgpl2+, however COPYING is gpl3. (license license:gpl3+))) + +(define-public xdelta + (package + (name "xdelta") + (version "3.1.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/jmacd/xdelta/archive/v" + version ".tar.gz")) + (sha256 + (base32 + "17g2pbbqy6h20qgdjq7ykib7kg5ajh8fwbsfgyjqg8pwg19wy5bm")) + (file-name (string-append name "-" version ".tar.gz")) + (snippet + ;; This file isn't freely distributable and has no effect on building. + '(delete-file "xdelta3/draft-korn-vcdiff.txt")))) + (build-system gnu-build-system) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'enter-build-directory + (lambda _ (chdir "xdelta3"))) + (add-before 'configure 'autoconf + (lambda _ (zero? (system* "autoreconf" "-vfi"))))))) + (home-page "http://xdelta.com") + (synopsis "Delta encoder for binary files") + (description "xdelta encodes only the differences between two binary files +using the VCDIFF algorithm and patch file format described in RFC 3284. It can +also be used to apply such patches. xdelta is similar to @command{diff} and +@command{patch}, but is not limited to plain text and does not generate +human-readable output.") + (license license:asl2.0))) -- 2.9.0