From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJgsa-0006IB-H3 for guix-patches@gnu.org; Fri, 18 May 2018 11:01:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJgsQ-0001RG-W6 for guix-patches@gnu.org; Fri, 18 May 2018 11:01:12 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60257) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJgsQ-0001R4-SY for guix-patches@gnu.org; Fri, 18 May 2018 11:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fJgsQ-0004Tm-Ky for guix-patches@gnu.org; Fri, 18 May 2018 11:01:02 -0400 Subject: [bug#31494] [PATCH] gnu: gifsicle: New variable. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJgrX-00060w-Ua for guix-patches@gnu.org; Fri, 18 May 2018 11:00:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJgrW-0000VP-OZ for guix-patches@gnu.org; Fri, 18 May 2018 11:00:08 -0400 Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:38153) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJgrW-0000UG-Ev for guix-patches@gnu.org; Fri, 18 May 2018 11:00:06 -0400 Received: by mail-wr0-x229.google.com with SMTP id 94-v6so9522210wrf.5 for ; Fri, 18 May 2018 08:00:06 -0700 (PDT) Received: from mimimi.home (2a01cb040a37a0005adf9a0845f647b3.ipv6.abo.wanadoo.fr. [2a01:cb04:a37:a000:5adf:9a08:45f6:47b3]) by smtp.gmail.com with ESMTPSA id 38-v6sm15080453wry.61.2018.05.18.08.00.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 08:00:04 -0700 (PDT) From: Pierre Neidhardt Date: Fri, 18 May 2018 17:00:02 +0200 Message-Id: <20180518150002.24615-1-ambrevar@gmail.com> 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: 31494@debbugs.gnu.org * gnu/packages/image.scm (gifsicle): New variable. --- gnu/packages/image.scm | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index bbfd621a9..ef97df7c7 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -1366,3 +1366,54 @@ Features: images stored in the JPEG format with R. It can read and write both files and in-memory raw vectors.") (license license:gpl2+))) + +(define-public gifsicle + (package + (name "gifsicle") + (version "1.91") + (source + (origin + (method url-fetch) + (uri (string-append "http://www.lcdf.org/gifsicle/gifsicle-" + version ".tar.gz")) + (sha256 + (base32 + "00586z1yz86qcblgmf16yly39n4lkjrscl52hvfxqk14m81fckha")))) + (build-system gnu-build-system) + ;; TODO: Tests fail with "undefined error at undefined point in script". + ;; They pass when run manually with + ;; guix environment gifsicle -- ./test/testie -p src/ test/ + (arguments '(#:tests? #f)) + ;; (arguments + ;; '(#:phases + ;; (modify-phases %standard-phases + ;; (add-before 'check 'patch-tests + ;; (lambda _ + ;; (substitute* "test/testie" + ;; (("/usr/bin/perl") + ;; (which "perl")) + ;; (("/bin/rm") + ;; (which "rm")))))))) + ;; (native-inputs `(("perl" ,perl))) ; Only for tests. + (inputs `(("libx11" ,libx11))) + (home-page "http://www.lcdf.org/gifsicle/") + (synopsis "Create, edit, manipulate and get information about GIF images and animations") + (description "Some Gifsicle features: +- Batch mode for changing GIFs in place. +- Prints detailed information about GIFs, including comments. +- Control over interlacing, comments, looping, transparency... +- Creates well-behaved GIFs: removes redundant colors, only uses local color +tables if it absolutely has to (local color tables waste space and can cause +viewing artifacts), etc. +- It can shrink colormaps and change images to use the Web-safe palette (or +any colormap you choose). +- Optimize your animations! This stores only the changed portion of each +frame, and can radically shrink your GIFs. You can also use transparency to +make them even smaller. Gifsicle's optimizer is pretty powerful, and usually +reduces animations to within a couple bytes of the best commercial optimizers. +- Unoptimizing animations, which makes them easier to edit. + +Two other programs are included with Gifsicle: @code{gifview} is a lightweight +animated-GIF viewer which can show animations as slideshows or in real time, +and @code{gifdiff} compares two GIFs for identical visual appearance. ") + (license license:gpl2+))) -- 2.17.0