From mboxrd@z Thu Jan 1 00:00:00 1970 From: ericbavier@openmailbox.org Subject: [PATCH 4/9] gnu: Add brotli. Date: Tue, 5 Apr 2016 23:32:56 -0500 Message-ID: <1459917181-19626-4-git-send-email-ericbavier@openmailbox.org> References: <1459917181-19626-1-git-send-email-ericbavier@openmailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anfA2-0006oj-EJ for guix-devel@gnu.org; Wed, 06 Apr 2016 00:33:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anf9y-0000VJ-K4 for guix-devel@gnu.org; Wed, 06 Apr 2016 00:33:46 -0400 Received: from smtp28.openmailbox.org ([62.4.1.62]:41964) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anf9y-0000Uh-Eu for guix-devel@gnu.org; Wed, 06 Apr 2016 00:33:42 -0400 In-Reply-To: <1459917181-19626-1-git-send-email-ericbavier@openmailbox.org> 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 Cc: Eric Bavier From: Eric Bavier * gnu/packages/compression.scm (brotli): New variable. --- gnu/packages/compression.scm | 41 ++++++++++++++++++++++++++++++++++++++= ++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 938d4b8..5c9c00c 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -3,7 +3,7 @@ ;;; Copyright =C2=A9 2013 Andreas Enge ;;; Copyright =C2=A9 2014, 2015 Mark H Weaver ;;; Copyright =C2=A9 2015 Taylan Ulrich Bay=C4=B1rl=C4=B1/Kammer -;;; Copyright =C2=A9 2015 Eric Bavier +;;; Copyright =C2=A9 2015, 2016 Eric Bavier ;;; Copyright =C2=A9 2015 Ricardo Wurmus ;;; Copyright =C2=A9 2015 Leo Famulari ;;; Copyright =C2=A9 2015 Jeff Mickey @@ -33,6 +33,7 @@ #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module (guix build-system perl) + #:use-module (gnu packages autotools) #:use-module (gnu packages backup) #:use-module (gnu packages base) #:use-module (gnu packages perl) @@ -688,3 +689,41 @@ a collection of smaller blocks which makes random ac= cess to the original data possible and can compress in parallel. This is especially useful for la= rge tarballs.") (license license:bsd-2))) + +(define-public brotli + (let ((commit "e992cce7a174d6e2b3486616499d26bb0bad6448")) + (package + (name "brotli") + (version "0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bagder/libbrotli.git") + (commit commit) + (recursive? #t))) + (file-name (string-append name "-" version ".tar.xz")) + (sha256 + (base32 + "1qxxsasvwbbbh6dl3138y9h3fg0q2v7xdk5jjc690bdg7g1wrj6n"= )) + (modules '((guix build utils))) + (snippet + ;; This is a recursive submodule that is unnecessary fo= r this + ;; package, so delete it. + '(delete-file-recursively "brotli/terryfy")))) + (build-system gnu-build-system) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool))) + (arguments + `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'autogen + (lambda _ + (mkdir "m4") + (system* "autoreconf" "-vfi")))))) + (home-page "https://github.com/bagder/libbrotli/") + (synopsis "Brotli encoder/decoder libraries") + (description + "This package provides Brotli encoder and decoder libraries: libb= rotlienc +and libbrotlidec, respectively.") + (license license:expat)))) --=20 2.7.3