guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/05: gnu: gifsicle: New variable.


From: Ludovic Courtès
Subject: 04/05: gnu: gifsicle: New variable.
Date: Sat, 26 May 2018 16:51:23 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 0d529a7c6a4ee47ce6ed2153697219318ab16703
Author: Pierre Neidhardt <address@hidden>
Date:   Sun May 20 14:09:13 2018 +0200

    gnu: gifsicle: New variable.
    
    * gnu/packages/image.scm (gifsicle): New variable.
    
    Co-authored-by: Ludovic Courtès <address@hidden>
---
 gnu/packages/image.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index b88f6cf..d6c39e5 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -18,6 +18,7 @@
 ;;; Copyright © 2017 Julien Lepiller <address@hidden>
 ;;; Copyright © 2018 Joshua Sierles, Nextjournal <address@hidden>
 ;;; Copyright © 2018 Fis Trivial <address@hidden>
+;;; Copyright © 2018 Pierre Neidhardt <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1400,3 +1401,50 @@ 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)
+   (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:
+
address@hidden
address@hidden Provides a batch mode for changing GIFs in place.
address@hidden Prints detailed information about GIFs, including comments.
address@hidden Control over interlacing, comments, looping, transparency, etc.
address@hidden Creates well-behaved GIFs: removes redundant colors, only uses 
local color
+tables, etc.
address@hidden Shrinks colormaps and change images to use the Web-safe palette.
address@hidden Optimizes GIF animations, or unoptimizes them for easier editing.
address@hidden 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+)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]