From patchwork Sat May 6 10:42:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Artyom V. Poptsov" X-Patchwork-Id: 49828 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 13EF127BBE9; Sat, 6 May 2023 11:43:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED,URIBL_SBL_A autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E688B27BBE2 for ; Sat, 6 May 2023 11:43:14 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pvFNX-0004nv-SG; Sat, 06 May 2023 06:43:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvFNW-0004nY-9f for guix-patches@gnu.org; Sat, 06 May 2023 06:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pvFNW-0002ir-0x for guix-patches@gnu.org; Sat, 06 May 2023 06:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pvFNV-000137-OB for guix-patches@gnu.org; Sat, 06 May 2023 06:43:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63326] [PATCH] gnu: Add pngcheck. Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 06 May 2023 10:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63326 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63326@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16833697333971 (code B ref -1); Sat, 06 May 2023 10:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 May 2023 10:42:13 +0000 Received: from localhost ([127.0.0.1]:59504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvFMj-00011y-33 for submit@debbugs.gnu.org; Sat, 06 May 2023 06:42:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:35024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvFMf-00011p-74 for submit@debbugs.gnu.org; Sat, 06 May 2023 06:42:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvFMe-0004k2-Uq for guix-patches@gnu.org; Sat, 06 May 2023 06:42:08 -0400 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pvFMb-0002fZ-Oz for guix-patches@gnu.org; Sat, 06 May 2023 06:42:08 -0400 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2ac82912a59so26986751fa.3 for ; Sat, 06 May 2023 03:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683369723; x=1685961723; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=yPYsisy4NaVucOWtuYSWL3Vl7Y6yll6F2d/RhX7PPXs=; b=V9xejse+7ZjFMeTjXGMPXTl2HouY4kH08jXRS7eWQAZfKnosDAdn+jyapTBitaZrHY Qt8YK70qrTQJT/ug/FyaBpXWcA41fWhVLkoaSVW618XO9NhQ9oE/ZDPPTxvMb2cD+3dk GjzXPdMN/ydeHrJnx9UxVZhxTBVhFjDIRdZimG5HUfQnbpxqHh7vig+8d6zIKr368zHX L3dbmOqdNPZXjF9gfW4I/FVCCWHAt/2/9Gp4voIyqyebPtBJzSH+xUxyhFzfkIJSWrdm uQaLhhVxpCX/FgoF3MYGF1C7rk66JTvDXYGu5ZgfBNeS3aPolqUwwUa0Wwr684SVcZJv 4wQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683369723; x=1685961723; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yPYsisy4NaVucOWtuYSWL3Vl7Y6yll6F2d/RhX7PPXs=; b=FtC+Tnhz0peHPzrXSLc2KyMf6YDlbcJ83Pn8CYlBppdxZleJwR/KCEShQwzh8Jc4v4 Qb+yx2WAnJi6oryrHqOJOtBT3xGUM7cMkKMGqK0TCcDDqG8I3UMlhn/AypXfjBsxlMiF N37AKVUL3jQj2CUNbS5egQ0mQvBQYw+0ZfC7YkEgBISA6Y9HW33FS8Ij7L1iuvyZlNnt AjT/Vakeo2xtN+SUCJIN2sENi7RcEgH4Jh9eF+YcRyE1zpPkPI3+hibgEfGZOtJPxU2j 3FCyVJkeni3KnvStKLANlFUByG3Cvqhk2XLp85LdJBxB1ZDA+PEg3Fa6K8r1nP/xAf8w 5yww== X-Gm-Message-State: AC+VfDzsvPuZBEzQr7mLY8YLy8RR9sazIsKnHOH5OwBwhuIEccJRgPoY AXkWAsN9TW7hoWEDQspXST9SFSUwPpA= X-Google-Smtp-Source: ACHHUZ61KG2IzlenzWQNfZ03BU9N4KRC27J8OdaaQo6PB+0Jk3DpNvDkHlRl2U1tllvMH5cyLpa6Uw== X-Received: by 2002:a2e:9b08:0:b0:2ac:53f7:41ea with SMTP id u8-20020a2e9b08000000b002ac53f741eamr1268315lji.46.1683369722978; Sat, 06 May 2023 03:42:02 -0700 (PDT) Received: from elephant ([95.79.66.161]) by smtp.gmail.com with ESMTPSA id g20-20020a2eb0d4000000b002ac90db2a44sm296543ljl.53.2023.05.06.03.42.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 May 2023 03:42:02 -0700 (PDT) From: "Artyom V. Poptsov" Date: Sat, 06 May 2023 13:42:01 +0300 Message-ID: <87h6sphhc6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=poptsov.artyom@gmail.com; helo=mail-lj1-x22b.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hello, this patch adds "pngcheck": http://www.libpng.org/pub/png/apps/pngcheck.html Thanks, - Artyom From 3b672b4a728c950c861770ab0b5498730435da5b Mon Sep 17 00:00:00 2001 Message-Id: <3b672b4a728c950c861770ab0b5498730435da5b.1683369521.git.poptsov.artyom@gmail.com> From: "Artyom V. Poptsov" Date: Sat, 6 May 2023 13:34:30 +0300 Subject: [PATCH] gnu: Add pngcheck. * gnu/packages/image.scm (pngcheck): New variable. --- gnu/packages/image.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 2485bbb943..058afa1f39 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -37,6 +37,7 @@ ;;; Copyright © 2022-2023 Bruno Victal ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2023 Nicolas Goaziou +;;; Copyright © 2023 Artyom V. Poptsov ;;; ;;; This file is part of GNU Guix. ;;; @@ -322,6 +323,45 @@ (define-public pngcrush images. It can further losslessly compress them by as much as 40%.") (license license:zlib))) +(define-public pngcheck + (package + (name "pngcheck") + (version "3.0.3") + (source (origin + (method url-fetch) + (uri (string-append + "http://www.libpng.org/pub/png/src/pngcheck-" version + ".tar.gz")) + (sha256 + (base32 + "1rny14v57d2zvnqcqbh3m87mkya22qr2394fg7vm3xsacf8l8sn3")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f ;no check target + #:phases (modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* (#:key inputs outputs #:allow-other-keys) + (invoke "make" "-f" "Makefile.unx"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin/"))) + (install-file "pngcheck" bin))))))) + (inputs (list zlib)) + (home-page "http://www.libpng.org/pub/png/apps/pngcheck.html") + (synopsis "Print info and check PNG, JNG and MNG files") + (description + "@code{pngcheck} verifies the integrity of PNG, JNG and MNG files (by +checking the internal 32-bit CRCs, a.k.a. checksums, and decompressing the image +data); it can optionally dump almost all of the chunk-level information in the image +in human-readable form. For example, it can be used to print the basic statistics +about an image (dimensions, bit depth, etc.); to list the color and transparency info +in its palette (assuming it has one); or to extract the embedded text annotations. +This is a command-line program with batch capabilities (e.g. @code{pngcheck +*.png}.)") + (license license:expat))) + (define-public pnglite (let ((commit "11695c56f7d7db806920bd9229b69f230e6ffb38") (revision "1")) base-commit: 64086a4fa449a9f6d2f835fcdf5498222b309e3a -- 2.34.1