GNU bug report logs - #36627
[PATCH] gnu: package pngquant and libimagequant

Previous Next

Package: guix-patches;

Reported by: arne_bab <at> web.de

Date: Fri, 12 Jul 2019 21:39:03 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36627 in the body.
You can then email your comments to 36627 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#36627; Package guix-patches. (Fri, 12 Jul 2019 21:39:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to arne_bab <at> web.de:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 12 Jul 2019 21:39:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Arne Babenhauserheide <arne_bab <at> web.de>
To: guix-patches <at> gnu.org
Cc: Arne Babenhauserheide <arne_bab <at> web.de>
Subject: [PATCH] gnu: package pngquant and libimagequant
Date: Fri, 12 Jul 2019 23:38:39 +0200
* gnu/packages/image.scm (pngquant): Package 2.12.3
* gnu/packages/image.scm (libimagequant): Package 2.12.3
---
 gnu/packages/image.scm | 65 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index fabc2fb2d1..511f5302b7 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -258,6 +258,71 @@ files.  It can compress them as much as 40% losslessly.")
   ;; This package used to be wrongfully name "pngcrunch".
   (deprecated-package "pngcrunch" pngcrush))

+(define-public pngquant
+  (package
+    (name "pngquant")
+    (version "2.12.3")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "http://pngquant.org/pngquant-"
+                    version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1mr0c7cd6m5hwz2fgbgmphirpf5mm4q546cpc31nwsrj4390qz2h"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:tests? #f ; no check target
+       #:phases (modify-phases %standard-phases
+                  (replace 'build
+                    (lambda _
+                      (invoke "make"
+                              (string-append
+                               "LIQSRCDIR="
+                               (assoc-ref %build-inputs "libimagequant")
+                               "/lib")
+                              "pngquant"))))))
+    (inputs
+     `(("libpng" ,libpng)
+       ("zlib" ,zlib)
+       ("libimagequant" ,libimagequant)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (home-page "https://pngquant.org")
+    (synopsis "Lossy png compression")
+    (description "pngquant is a command-line utility for lossy compression of
+PNG images.")
+    (license license:gpl3+)))
+
+
+(define-public libimagequant
+  (package
+    (name "libimagequant")
+    (version "2.12.3")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/ImageOptim/libimagequant/archive/"
+                    version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0ggiizj6vz2i1r5ff1hgjl1v0hx8227wdgwxrlb29rd7ax38bmrb"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (arguments
+     '(#:tests? #f ; no check target
+       #:phases (modify-phases %standard-phases
+                  (replace 'build
+                    (lambda _ (invoke "make" "libimagequant.so"))))))
+    (home-page "https://pngquant.org/lib/")
+    (synopsis "Utility to compress PNG files")
+    (description "libimagequant is a library for lossy compression of PNG images.")
+    (license license:gpl3+)))
+
+
 (define-public pnglite
   (let ((commit "11695c56f7d7db806920bd9229b69f230e6ffb38")
         (revision "1"))
--
2.22.0





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Mon, 15 Jul 2019 10:44:04 GMT) Full text and rfc822 format available.

Notification sent to arne_bab <at> web.de:
bug acknowledged by developer. (Mon, 15 Jul 2019 10:44:04 GMT) Full text and rfc822 format available.

Message #10 received at 36627-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Arne Babenhauserheide <arne_bab <at> web.de>
Cc: Hartmut Goebel <h.goebel <at> crazy-compilers.com>, 36627-done <at> debbugs.gnu.org
Subject: Re: [bug#36627] [PATCH] gnu: package pngquant and libimagequant
Date: Mon, 15 Jul 2019 12:43:40 +0200
Hello,

Arne Babenhauserheide <arne_bab <at> web.de> skribis:

> * gnu/packages/image.scm (pngquant): Package 2.12.3
> * gnu/packages/image.scm (libimagequant): Package 2.12.3

Hartmut contributed the same packages just a few days ago.  Please let
us know if you think something’s missing from the existing packages,
otherwise case closed!

Thanks,
Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#36627; Package guix-patches. (Mon, 15 Jul 2019 11:17:02 GMT) Full text and rfc822 format available.

Message #13 received at 36627-done <at> debbugs.gnu.org (full text, mbox):

From: Arne Babenhauserheide <arne_bab <at> web.de>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Hartmut Goebel <h.goebel <at> crazy-compilers.com>, 36627-done <at> debbugs.gnu.org
Subject: Re: [bug#36627] [PATCH] gnu: package pngquant and libimagequant
Date: Mon, 15 Jul 2019 13:16:23 +0200
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:

> Hello,
>
> Arne Babenhauserheide <arne_bab <at> web.de> skribis:
>
>> * gnu/packages/image.scm (pngquant): Package 2.12.3
>> * gnu/packages/image.scm (libimagequant): Package 2.12.3
>
> Hartmut contributed the same packages just a few days ago.  Please let
> us know if you think something’s missing from the existing packages,
> otherwise case closed!

The contribution from Hartmut looks good to me. Case closed :-)

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 12 Aug 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 251 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.