From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:37076) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlfrI-0002sl-9o for guix-patches@gnu.org; Thu, 11 Jul 2019 16:40:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlfrH-0007dP-2T for guix-patches@gnu.org; Thu, 11 Jul 2019 16:40:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58238) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlfrG-0007d5-Uu for guix-patches@gnu.org; Thu, 11 Jul 2019 16:40:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hlfrG-0007NL-PX for guix-patches@gnu.org; Thu, 11 Jul 2019 16:40:02 -0400 Subject: [bug#36607] [PATCH 1/2] gnu: Add libimagequant. Resent-Message-ID: From: Hartmut Goebel Date: Thu, 11 Jul 2019 22:39:10 +0200 Message-Id: <20190711203911.8139-2-h.goebel@crazy-compilers.com> In-Reply-To: <20190711203911.8139-1-h.goebel@crazy-compilers.com> References: <20190711203911.8139-1-h.goebel@crazy-compilers.com> 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: 36607@debbugs.gnu.org * gnu/packages/image.scm (libimagequant): New variable. --- gnu/packages/image.scm | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index fabc2fb2d1..5a5174354c 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -14,7 +14,7 @@ ;;; Copyright © 2016, 2017 Arun Isaac ;;; Copyright © 2016, 2017 Kei Kebreau ;;; Copyright © 2017 ng0 -;;; Copyright © 2017 Hartmut Goebel +;;; Copyright © 2017,2019 Hartmut Goebel ;;; Copyright © 2017 Julien Lepiller ;;; Copyright © 2018 Joshua Sierles, Nextjournal ;;; Copyright © 2018 Fis Trivial @@ -313,6 +313,28 @@ files. It can compress them as much as 40% losslessly.") Currently all documentation resides in @file{pnglite.h}.") (license license:zlib)))) +(define-public libimagequant + (package + (name "libimagequant") + (version "2.12.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ImageOptim/libimagequant.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0qsfq1kv1m5jzn9v9iz0bac66k4clcis1c9877qabnwzwmwma5v0")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f)) ; no check target + (home-page "https://pngquant.org/lib/") + (synopsis "Image palette quantization library") + (description "Small, portable C library for high-quality conversion of RGBA +images to 8-bit indexed-color (palette) images.") + (license license:gpl3))) + (define-public libjpeg (package (name "libjpeg") -- 2.21.0