all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kei Kebreau <kei@openmailbox.org>
To: Arun Isaac <arunisaac@systemreboot.net>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add optipng.
Date: Sun, 25 Sep 2016 17:03:43 -0400	[thread overview]
Message-ID: <87zimvlmj4.fsf@openmailbox.org> (raw)
In-Reply-To: <20160925202832.17166-2-arunisaac@systemreboot.net> (Arun Isaac's message of "Mon, 26 Sep 2016 01:58:32 +0530")

[-- Attachment #1: Type: text/plain, Size: 2363 bytes --]

Arun Isaac <arunisaac@systemreboot.net> 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 © 2016 Efraim Flashner <efraim@flashner.co.il>
>  ;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
>  ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
> +;;; Copyright © 2016 Arun Isaac <arunisaac@systemreboot.net>
>  ;;;
>  ;;; 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/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)))

Linting and reproducibility are clean here!

Pushed as 93117227034666db18c8b0c7fd89cca72a3eeca8.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

  reply	other threads:[~2016-09-25 21:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-25  1:58 [PATCH] gnu: Add optipng Arun Isaac
2016-09-25  7:25 ` Arun Isaac
2016-09-25 16:20   ` Kei Kebreau
2016-09-25 16:52     ` Leo Famulari
2016-09-25 20:28     ` Arun Isaac
2016-09-25 20:28       ` Arun Isaac
2016-09-25 21:03         ` Kei Kebreau [this message]
2016-09-26 17:59           ` Leo Famulari
2016-09-26 19:21             ` Arun Isaac
2016-09-26 21:22               ` Leo Famulari
2016-09-26 19:34             ` Danny Milosavljevic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zimvlmj4.fsf@openmailbox.org \
    --to=kei@openmailbox.org \
    --cc=arunisaac@systemreboot.net \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.