* [bug#36627] [PATCH] gnu: package pngquant and libimagequant
@ 2019-07-12 21:38 Arne Babenhauserheide
2019-07-15 10:43 ` bug#36627: " Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Arne Babenhauserheide @ 2019-07-12 21:38 UTC (permalink / raw)
To: 36627; +Cc: Arne Babenhauserheide
* 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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#36627: [PATCH] gnu: package pngquant and libimagequant
2019-07-12 21:38 [bug#36627] [PATCH] gnu: package pngquant and libimagequant Arne Babenhauserheide
@ 2019-07-15 10:43 ` Ludovic Courtès
2019-07-15 11:16 ` [bug#36627] " Arne Babenhauserheide
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2019-07-15 10:43 UTC (permalink / raw)
To: Arne Babenhauserheide; +Cc: Hartmut Goebel, 36627-done
Hello,
Arne Babenhauserheide <arne_bab@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’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [bug#36627] [PATCH] gnu: package pngquant and libimagequant
2019-07-15 10:43 ` bug#36627: " Ludovic Courtès
@ 2019-07-15 11:16 ` Arne Babenhauserheide
0 siblings, 0 replies; 3+ messages in thread
From: Arne Babenhauserheide @ 2019-07-15 11:16 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Hartmut Goebel, 36627-done
[-- Attachment #1: Type: text/plain, Size: 561 bytes --]
Ludovic Courtès <ludo@gnu.org> writes:
> Hello,
>
> Arne Babenhauserheide <arne_bab@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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1076 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-15 11:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-12 21:38 [bug#36627] [PATCH] gnu: package pngquant and libimagequant Arne Babenhauserheide
2019-07-15 10:43 ` bug#36627: " Ludovic Courtès
2019-07-15 11:16 ` [bug#36627] " Arne Babenhauserheide
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).