From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: [PATCH] gnu: Add gzstream. Date: Tue, 30 Aug 2016 19:17:14 +0100 Message-ID: <87eg56yvdh.fsf@ike.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/x-patch; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1benbF-00081T-6S for guix-devel@gnu.org; Tue, 30 Aug 2016 14:17:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1benbA-0005M5-Rm for guix-devel@gnu.org; Tue, 30 Aug 2016 14:17:29 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:43604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1benb8-0005L6-IV for guix-devel@gnu.org; Tue, 30 Aug 2016 14:17:24 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id F183520513 for ; Tue, 30 Aug 2016 14:17:15 -0400 (EDT) Received: from localhost (05430ba6.skybroadband.com [5.67.11.166]) by mail.messagingengine.com (Postfix) with ESMTPA id 8F75DF29CC for ; Tue, 30 Aug 2016 14:17:15 -0400 (EDT) Content-Disposition: inline; filename=0001-gnu-Add-gzstream.patch 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 >From 5e96b895c1ed77a6bfdcbe5c6dbd68220fd5a8dc Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Fri, 12 Aug 2016 02:29:51 +0100 Subject: [PATCH 1/1] gnu: Add gzstream. * gnu/packages/compression.scm (gzstream): New variable. --- gnu/packages/compression.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index c239d16..b3b7f52 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -12,6 +12,7 @@ ;;; Copyright =C2=A9 2016 Danny Milosavljevic ;;; Copyright =C2=A9 2016 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2016 David Craven +;;; Copyright =C2=A9 2016 Marius Bakke ;;; ;;; This file is part of GNU Guix. ;;; @@ -895,3 +896,37 @@ compared to the fastest mode of zlib, Snappy is an ord= er of magnitude faster for most inputs, but the resulting compressed files are anywhere from 20% = to 100% bigger.") (license license:asl2.0))) + +(define-public gzstream + (package + (name "gzstream") + (version "1.5") + (source (origin + (method url-fetch) + (uri + ;; No versioned URL, but last release was in 2003. + "http://www.cs.unc.edu/Research/compgeom/gzstream/gzstream.= tgz") + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "00y19pqjsdj5zcrx4p9j56pl73vayfwnb7y2hvp423nx0cwv5b4r")))) + (build-system gnu-build-system) + (arguments + `(#:test-target "test" + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (lib (string-append out "/lib")) + (include (string-append out "/include"))) + (install-file "libgzstream.a" lib) + (install-file "gzstream.h" include) + #t)))))) + (propagated-inputs `(("zlib" ,zlib))) + (home-page "http://www.cs.unc.edu/Research/compgeom/gzstream/") + (synopsis "C++ library that provides the functionality of zlib in a C+= + iostream") + (description "gzstream is a small library for providing zlib functiona= lity in a C++ +iostream. It is basically just a wrapper.") + (license license:lgpl2.1))) --=20 2.9.3