From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac Subject: [PATCH] gnu: Add optipng. Date: Sun, 25 Sep 2016 07:28:36 +0530 Message-ID: <20160925015836.13632-1-arunisaac@systemreboot.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnyia-0001gA-QK for guix-devel@gnu.org; Sat, 24 Sep 2016 21:59:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnyiW-00067z-MQ for guix-devel@gnu.org; Sat, 24 Sep 2016 21:58:59 -0400 Received: from [117.218.232.8] (port=40924 helo=systemreboot.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnyiW-00066l-3c for guix-devel@gnu.org; Sat, 24 Sep 2016 21:58:56 -0400 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 | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 931cad1..b998f45 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -932,3 +932,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