From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +OOPJbrKemS2sgAASxT56A (envelope-from ) for ; Sat, 03 Jun 2023 07:08:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OHmsJLrKemTmAQAAG6o9tA (envelope-from ) for ; Sat, 03 Jun 2023 07:08:10 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 153033E61D for ; Sat, 3 Jun 2023 07:08:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5JU0-0003mB-AQ; Sat, 03 Jun 2023 01:07:20 -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 1q5JTm-0003dV-Jh for guix-patches@gnu.org; Sat, 03 Jun 2023 01:07:06 -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 1q5JTm-0003A1-BX for guix-patches@gnu.org; Sat, 03 Jun 2023 01:07:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q5JTm-0000Np-7T for guix-patches@gnu.org; Sat, 03 Jun 2023 01:07:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63866] [PATCH 10/16] gnu: Add tidyall. Resent-From: gemmaro Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 03 Jun 2023 05:07:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63866 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63866@debbugs.gnu.org Cc: gemmaro Received: via spool by 63866-submit@debbugs.gnu.org id=B63866.16857688141236 (code B ref 63866); Sat, 03 Jun 2023 05:07:06 +0000 Received: (at 63866) by debbugs.gnu.org; 3 Jun 2023 05:06:54 +0000 Received: from localhost ([127.0.0.1]:41335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5JTZ-0000Jl-S8 for submit@debbugs.gnu.org; Sat, 03 Jun 2023 01:06:54 -0400 Received: from mail-yb1-f176.google.com ([209.85.219.176]:51429) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5JTY-0000Im-CL for 63866@debbugs.gnu.org; Sat, 03 Jun 2023 01:06:53 -0400 Received: by mail-yb1-f176.google.com with SMTP id 3f1490d57ef6-ba8afcc82c0so3173708276.2 for <63866@debbugs.gnu.org>; Fri, 02 Jun 2023 22:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685768807; x=1688360807; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=R1owNgC/v3zU7VvyMvYstTH/c8qogygPWpOHOCwg5Bw=; b=Q/ZdcQULuGJCN7m+M2VVMQ0zi3GXELVFP+Di6oGS5leYaql7rq8pAezjXhezoCGVfC CMos7+q//LCWS4r6cKiTOMRBFI4lwlbKqlEK6s81weQ1A6ZNRgqS6wm++VACGnr5uNrU tWGh8B1TwI/fRuMnW1Or8Nd48T9CXei1PnzT2s8yShRJK/u4XJgY97+zRaRiH8605rXj dbwKtCFN4JUvOkk0wsPEqI1f4ee+ABFg7uC0tHo12BNG2ZFOk0wmJs0nFEENTBVH98bO fRJ9jYlnve5TYno1jb6DlEU0u7bICd65Mm/FMl3SG1yNgLhw0TdY0/7NyCL7GI8o1/0u FVnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685768807; x=1688360807; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R1owNgC/v3zU7VvyMvYstTH/c8qogygPWpOHOCwg5Bw=; b=G0UT7b3/IBz0rREgrXBdZ6jLjkGIdCEM9nl5LULoW4RLzSdbGDzF1q/LkFOeyDlMjA hKhHEhI6S0t8LPMQa9IAxW6067ik4Oe/NMDzuM3Syamm4Xltg1cvWq0fAnxDYjYx39/S jqdfSHrFB8DApoegCKHmPQe4yTrTtIf5fbvl884PqvYL5/l1sk96W2QPd8h973SrO+Or 91xtDPHRorkNCnPpQxSr1CX0/fBv/ZkF72rQugSifyrklZP3kULt12jCRfUN6io3HDLr kNSysYKELUdDNbJFsbR9A/nK2KK6d+2i1zy9l79k9BmhDbCRvo161n8FctRcdlAusaSL RtwA== X-Gm-Message-State: AC+VfDz/r7yEr4jk51txdGVlIXfYoanh/wwJHe5xVeFx94vlA1ITKkEw eioPNLj86HLRI/ZjseB4PYX8Pzq08gZF9A== X-Google-Smtp-Source: ACHHUZ6ve2NBwrdsbrrzod0ZtGEVi8DrciLqpT/hOCylrCgLzPYKBdMBqIdepMYRCVIvr07K18lCFg== X-Received: by 2002:a0d:ca87:0:b0:561:4bc2:1587 with SMTP id m129-20020a0dca87000000b005614bc21587mr2799645ywd.39.1685768806796; Fri, 02 Jun 2023 22:06:46 -0700 (PDT) Received: from mac.gemmaro.name ([240f:74:d1f0:1:ba1:e787:c9e:b1dc]) by smtp.gmail.com with ESMTPSA id l184-20020a6325c1000000b0053fbacdaf59sm2021897pgl.69.2023.06.02.22.06.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jun 2023 22:06:46 -0700 (PDT) From: gemmaro Date: Sat, 3 Jun 2023 14:05:45 +0900 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685768890; a=rsa-sha256; cv=none; b=usd9ANgn7j6JvNcDGDTX+FP2QwTau9wCXJdHWjf40/GS9ngGbrVFoUwwNQUYs3ax9uM00y oQkhwfYKdaRRs48XLJCqHUQ3hGGw13vbrj47T5UzT5mmVi09GVZIa8fJzFTBobZow1/NL0 L2LKFU96lVoKrpFDkBCLWdKqoDsQ7jM4NR2iXWdfmF3POKGHyImO/8tRvFb+eBagxgpn34 qbE5R+zuwK28tGWayYwkEDhYgmSPTq9wrKi8XikNicw5iXBMkJErdDxGjT8DApHgFB5G8K ZjYLORobM/9rDSqq60EXF+ffkY+73HZO0chwPyRAFswsc1JuMuCX3bJR5ciCNA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b="Q/ZdcQUL"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685768890; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=R1owNgC/v3zU7VvyMvYstTH/c8qogygPWpOHOCwg5Bw=; b=qo3C3z6lcZouWFoORgPzuU77h+YKVrVJihvdz4BCTf1jHMJAN5gb/Ofo+mPPrrlAjo0yaM A+VMq3B9X7kj1DmH/Tgwe5i+BpnkkzkF0Cw+zsBcIgj8hPZXbgRMfjn7Zv16nd5eHWjkYL 2us8t/U30fJ6V4PUe1OOLP0TaB9yKWNWZUwT5gIUBOeCNjJU0g4vDICm5HSU3+ZEHW9nY6 p8rzqcM6bSHjIdwrvfxe9zNQQOd3Sv9Abb5RoLkxXK7PAlmhOkf7pVmhh5bKFkOdXz9K3Q p4ENyRS82eWJiOEyxrKXMqx7QveiZ/DoHq6RNCT8X4GL57hmv9P/Zj9i+S5flQ== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b="Q/ZdcQUL"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.67 X-Spam-Score: -3.67 X-Migadu-Queue-Id: 153033E61D X-TUID: jjhZernMwc2E * gnu/packages/check.scm (tidyall): New variable. --- gnu/packages/check.scm | 67 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 87728fefa32..5a3c5ad5ff1 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -43,6 +43,7 @@ ;;; Copyright © 2022 jgart ;;; Copyright © 2023 Luis Felipe López Acevedo ;;; Copyright © 2023 Timo Wilken +;;; Copyright © 2023 gemmaro ;;; ;;; This file is part of GNU Guix. ;;; @@ -75,6 +76,8 @@ (define-module (gnu packages check) #:use-module (gnu packages guile) #:use-module (gnu packages guile-xyz) #:use-module (gnu packages perl) + #:use-module (gnu packages perl-check) + #:use-module (gnu packages php) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-check) @@ -97,6 +100,7 @@ (define-module (gnu packages check) #:use-module (guix build-system go) #:use-module (guix build-system guile) #:use-module (guix build-system meson) + #:use-module (guix build-system perl) #:use-module (guix build-system pyproject) #:use-module (guix build-system python) #:use-module (guix build-system trivial) @@ -3119,6 +3123,69 @@ (define-public python-pyhamcrest allowing you to declaratively define \"match\" rules.") (license license:bsd-3))) +(define-public tidyall + (package + (name "tidyall") + (version "0.83") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/D/DR/DROLSKY/Code-TidyAll-" + version ".tar.gz")) + (sha256 + (base32 + "18awq4fb72pbfdrc8h1cdvbwwbp456pnz6aam1cgq5vb7b85580n")))) + (build-system perl-build-system) + (arguments + (list #:phases #~(modify-phases %standard-phases + (delete 'remove-command-line-tool) + (add-after 'install 'wrap-programs + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (wrap-program (string-append out "/bin/tidyall") + `("PERL5LIB" ":" prefix + (,(getenv "PERL5LIB") + ,(string-append out + "/lib/perl5/site_perl")))))))))) + (native-inputs (list perl-test-class-most perl-test-differences + perl-test-fatal perl-test-warnings perl-lib-relative)) + (inputs (list php bash-minimal)) + (propagated-inputs (list perl-capture-tiny + perl-config-ini + perl-timedate + perl-file-which + perl-ipc-run3 + perl-ipc-system-simple + perl-list-compare + perl-list-someutils + perl-log-any + perl-module-runtime + perl-moo-2 + perl-path-tiny + perl-scope-guard + perl-specio + perl-specio-library-path-tiny + perl-text-diff + perl-time-duration-parse + perl-try-tiny + perl-parallel-forkmanager + perl-file-pushd)) + (home-page "https://metacpan.org/release/Code-TidyAll") + (synopsis "Engine for tidyall, your all-in-one code tidier and validator") + (description + "@command{tidyall} makes a lot of code tidiers and validators available +from a single unified interface. You can run @command{tidyall} on a +single file or on an entire project hierarchy, and configure which +tidiers/validators are applied to which files. @command{tidyall} will +back up files beforehand, and for efficiency will only consider files +that have changed since they were last processed. + +Note that if you see some missing tidier or validator modules error, +you can let tidyall load them after install them. For example, one +can run @code{guix shell perl-perl-tidy perl} in advance to load +@code{Perl::Tidy}.") + (license license:perl-license))) + (define-public unittest-cpp (package (name "unittest-cpp") -- 2.40.1