gnu: gifsicle: New variable.

* gnu/packages/image.scm (gifsicle): New variable.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Pierre Neidhardt 2018-05-20 14:09:13 +02:00 committed by Ludovic Courtès
parent 5735256d0b
commit 0d529a7c6a
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -18,6 +18,7 @@
;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu> ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com> ;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com> ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
;;; Copyright © 2018 Pierre Neidhardt <ambrevar@gmail.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -1400,3 +1401,50 @@ (define-public r-jpeg
images stored in the JPEG format with R. It can read and write both files and images stored in the JPEG format with R. It can read and write both files and
in-memory raw vectors.") in-memory raw vectors.")
(license license:gpl2+))) (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)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-before 'check 'patch-tests
(lambda _
(substitute* "test/testie"
(("/usr/bin/perl")
(which "perl"))
(("/bin/sh")
(which "sh"))
(("/bin/rm")
(which "rm")))
#t)))))
(native-inputs `(("perl" ,perl))) ; Only for tests.
(inputs `(("libx11" ,libx11)))
(home-page "http://www.lcdf.org/gifsicle/")
(synopsis "Edit GIF images and animations")
(description "Gifsicle is a command-line GIF image manipulation tool that:
@itemize
@item Provides a batch mode for changing GIFs in place.
@item Prints detailed information about GIFs, including comments.
@item Control over interlacing, comments, looping, transparency, etc.
@item Creates well-behaved GIFs: removes redundant colors, only uses local color
tables, etc.
@item Shrinks colormaps and change images to use the Web-safe palette.
@item Optimizes GIF animations, or unoptimizes them for easier editing.
@end itemize
Two other programs are included with Gifsicle: @command{gifview} is a
lightweight animated-GIF viewer, and @command{gifdiff} compares two GIFs for
identical visual appearance.")
(license license:gpl2+)))