From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kei Kebreau Subject: Re: [PATCH] gnu: Add optipng. Date: Sun, 25 Sep 2016 17:03:43 -0400 Message-ID: <87zimvlmj4.fsf@openmailbox.org> References: <87lgyglzmv.fsf@openmailbox.org> <20160925202832.17166-1-arunisaac@systemreboot.net> <20160925202832.17166-2-arunisaac@systemreboot.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boGah-0006dl-HD for guix-devel@gnu.org; Sun, 25 Sep 2016 17:04:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boGae-0000vc-9g for guix-devel@gnu.org; Sun, 25 Sep 2016 17:04:03 -0400 Received: from smtp28.openmailbox.org ([62.4.1.62]:34465 helo=smtp13.openmailbox.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boGae-0000vQ-09 for guix-devel@gnu.org; Sun, 25 Sep 2016 17:04:00 -0400 In-Reply-To: <20160925202832.17166-2-arunisaac@systemreboot.net> (Arun Isaac's message of "Mon, 26 Sep 2016 01:58:32 +0530") 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: Arun Isaac Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Arun Isaac writes: > * 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 =C2=A9 2016 Efraim Flashner > ;;; Copyright =C2=A9 2016 Tobias Geerinckx-Rice > ;;; Copyright =C2=A9 2016 Eric Bavier > +;;; Copyright =C2=A9 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/o= ptipng-" > + 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=3D" (assoc-ref out= puts "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))) Linting and reproducibility are clean here! Pushed as 93117227034666db18c8b0c7fd89cca72a3eeca8. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX6DuvAAoJEOal7jwZRnoNNSgP/RRjZaws/6aqPupnX0BshMI9 UeI9O7u76ubgUK0ehlyEZPqP7lut2YGccm4Zj7Czq5uK/VoMv3S5lTezaMtXHF3T mq7bHf7wG1VppgUVkDkO7Py81ErUIzNFuA8yeSHRyAeYPo+EcCknEvJjfybw7SW2 s82+mxopyKLarfqaEZelzkshIaFTVx5ioTxZsqKAJz+KE1dLmjKjVDENIXkbmDTx uRNtib37K0RowIe8D2fU419Z/0BBTcFwSjrEvBuq5H38UWTk7cPLHzHSsF0EW5v1 5sPQW9Mm4Bbjnw74Y9Fih6mgE9yzbu8cyyheIIHzLl2ssOOwxwo+OFxJWBFk7k5z sVD20VKsFYA3ERGs/w3jiZHiI7Hud6UawX5k9KNjYTTnm6I1GeIUq1NuWGHsnpk/ ip3LDy7pnCNEzvjSemZb6dz3lxyl1qgKLexFaREXShLiWIVgoC9r3eQ0zrhfC6P7 mzkNKRnTVGyR91OibTuQ/1h824BWQ8BMzgnbfQAAmdTqPcq70Yx5ITX8DbMu9y/r 98x4VHpZWReNt4vv9oWBtqPWri+vQtJtMcH+Dh6mP55fUPmC8ojziUW9xcENAQrc zEyDMOMi0+AqGZ6I7unFm4dJsTpxGHBK0KWN1+gVoTrMRd30uQY8sX5BlRBEzlar /MTx20MyAcQ+I7niDEiv =OPrs -----END PGP SIGNATURE----- --=-=-=--