From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac Subject: [PATCH] gnu: Add optipng. Date: Mon, 26 Sep 2016 01:58:32 +0530 Message-ID: <20160925202832.17166-2-arunisaac@systemreboot.net> References: <87lgyglzmv.fsf@openmailbox.org> <20160925202832.17166-1-arunisaac@systemreboot.net> 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]:36320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boG30-00010J-EF for guix-devel@gnu.org; Sun, 25 Sep 2016 16:29:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boG2y-0002YR-UH for guix-devel@gnu.org; Sun, 25 Sep 2016 16:29:14 -0400 Received: from [117.218.232.8] (port=45606 helo=systemreboot.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boG2y-0002WF-Dl for guix-devel@gnu.org; Sun, 25 Sep 2016 16:29:12 -0400 In-Reply-To: <20160925202832.17166-1-arunisaac@systemreboot.net> 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/image.scm (optipng): New variable. --- gnu/packages/image.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 931cad1..4039c1a 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -10,6 +10,7 @@ ;;; Copyright © 2016 Efraim Flashner ;;; Copyright © 2016 Tobias Geerinckx-Rice ;;; Copyright © 2016 Eric Bavier +;;; Copyright © 2016 Arun Isaac ;;; ;;; This file is part of GNU Guix. ;;; @@ -932,3 +933,35 @@ statistical tests.") all included libraries only the image loading and decoding library is installed as @code{stb_image}.") (license license:public-domain)))) + +(define-public optipng + (package + (name "optipng") + (version "0.7.6") + (source + (origin + (method url-fetch) + (uri (string-append "http://prdownloads.sourceforge.net/optipng/optipng-" + version ".tar.gz")) + (sha256 + (base32 + "105yk5qykvhiahzag67gm36s2kplxf6qn5hay02md0nkrcgn6w28")))) + (build-system gnu-build-system) + (inputs + `(("zlib" ,zlib))) + (arguments + '(#:phases + (modify-phases %standard-phases + ;; configure script does not accept arguments CONFIG_SHELL and SHELL + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (zero? (system* "sh" "configure" + (string-append "--prefix=" (assoc-ref outputs "out"))))))))) + (synopsis "Optimizer that recompresses PNG image files to a +smaller size") + (description "OptiPNG is a PNG optimizer that recompresses image +files to a smaller size, without losing any information. This program +also converts external formats (BMP, GIF, PNM and TIFF) to optimized +PNG, and performs PNG integrity checks and corrections.") + (home-page "http://optipng.sourceforge.net/") + (license license:zlib))) -- 2.10.0