From patchwork Sat Jun 3 05:05:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: gemmaro X-Patchwork-Id: 50576 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 49AA127BBE2; Sat, 3 Jun 2023 06:08:11 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 1AD3D27BBEC for ; Sat, 3 Jun 2023 06:08:10 +0100 (BST) 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 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 * 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")