all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: gemmaro <gemmaro.dev@gmail.com>
To: 63866@debbugs.gnu.org
Cc: gemmaro <gemmaro.dev@gmail.com>
Subject: [bug#63866] [PATCH v2 12/12] gnu: Add tidyall.
Date: Mon,  5 Aug 2024 21:33:55 +0900	[thread overview]
Message-ID: <1546050290d68601ccbaece315a0850048c5ec52.1722861235.git.gemmaro.dev@gmail.com> (raw)
In-Reply-To: <8f70afa35d5b8cffeb7db01feb4d461adbb722a6.1722861235.git.gemmaro.dev@gmail.com>

* gnu/packages/check.scm (tidyall): New variable.

Change-Id: Icc6b370cd6089da99d40fa57f5092845a98d609c
---
 gnu/packages/check.scm | 68 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 21a975f340..6a7c17e0a3 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -51,6 +51,7 @@
 ;;; Copyright © 2024 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;; Copyright © 2024 Zheng Junjie <873216071@qq.com>
 ;;; Copyright © 2024 Navid Afkhami <navid.afkhami@mdc-berlin.de>
+;;; Copyright © 2024 gemmaro <gemmaro.dev@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -90,6 +91,8 @@ (define-module (gnu packages check)
   #:use-module (gnu packages maths)
   #:use-module (gnu packages ncurses)
   #: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)
@@ -114,6 +117,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)
@@ -3447,6 +3451,70 @@ (define-public theft
    (description "Theft is a library for property-based testing.")
    (license license:isc)))
 
+(define-public tidyall
+  (package
+    (name "tidyall")
+    (version "0.84")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/D/DR/DROLSKY/Code-TidyAll-" version
+             ".tar.gz"))
+       (sha256
+        (base32 "1xxil8yfbd4nizwaaris07sp441nhx3ixr4qj13l1x6pxphi9h5k"))))
+    (build-system perl-build-system)
+    (arguments
+     (list
+      #:phases #~(modify-phases %standard-phases
+                   (delete 'remove-command-line-tool)
+                   (add-after 'install 'wrap-programs
+                     (lambda _
+                       (wrap-program (string-append #$output "/bin/tidyall")
+                         (list "PERL5LIB" ":"
+                               'prefix
+                               (list (getenv "PERL5LIB")
+                                     (string-append #$output
+                                                    "/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.45.2





      parent reply	other threads:[~2024-08-05 12:37 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-03  5:01 [bug#63866] [PATCH 00/16] Add tidyall and some tidiers gemmaro
2023-06-03  5:05 ` [bug#63866] [PATCH 01/16] gnu: Add perl-ref-util gemmaro
2023-06-03  5:05 ` [bug#63866] [PATCH 02/16] gnu: perl-specio: Update to 0.48 gemmaro
2023-06-03  5:05 ` [bug#63866] [PATCH 03/16] gnu: Add perl-lib-relative gemmaro
2023-06-03  5:05 ` [bug#63866] [PATCH 04/16] gnu: Add perl-specio-library-path-tiny gemmaro
2023-06-03  5:05 ` [bug#63866] [PATCH 05/16] gnu: perl-mixin-linewise: Update to 0.111 gemmaro
2023-06-03  5:05 ` [bug#63866] [PATCH 06/16] gnu: perl-config-ini: Update to 0.029 gemmaro
2023-06-03  5:05 ` [bug#63866] [PATCH 07/16] gnu: Add perl-list-someutils-xs gemmaro
2023-06-03  5:05 ` [bug#63866] [PATCH 08/16] gnu: perl-list-someutils: Update to 0.59 gemmaro
2023-06-03  5:05 ` [bug#63866] [PATCH 09/16] gnu: perl-test-class-most: Fix to use propagated-inputs gemmaro
2023-06-03  5:05 ` [bug#63866] [PATCH 10/16] gnu: Add tidyall gemmaro
2023-06-03  5:05 ` [bug#63866] [PATCH 11/16] gnu: Add perl-encode-newlines gemmaro
2023-06-03  5:05 ` [bug#63866] [PATCH 12/16] gnu: Add perl-pod-wrap gemmaro
2023-06-03  5:05 ` [bug#63866] [PATCH 13/16] gnu: Add perl-test-cmd gemmaro
2023-06-03  5:05 ` [bug#63866] [PATCH 14/16] gnu: Add perl-pod-tidy gemmaro
2023-06-03  5:05 ` [bug#63866] [PATCH 15/16] gnu: Add perl-perl-tidy gemmaro
2023-06-03  5:05 ` [bug#63866] [PATCH 16/16] gnu: Add perl-code-tidyall-plugin-perl-alignmooseattributes gemmaro
2024-08-05 12:33 ` [bug#63866] [PATCH v2 01/12] gnu: Add perl-xstring gemmaro
2024-08-05 12:33   ` [bug#63866] [PATCH v2 02/12] gnu: Add perl-ref-util gemmaro
2024-08-05 12:33   ` [bug#63866] [PATCH v2 03/12] gnu: Add perl-lib-relative gemmaro
2024-08-05 12:33   ` [bug#63866] [PATCH v2 04/12] gnu: perl-config-ini: Update to 0.029 gemmaro
2024-08-05 12:33   ` [bug#63866] [PATCH v2 05/12] gnu: perl-config-ini: Use propagated inputs gemmaro
2024-08-05 12:33   ` [bug#63866] [PATCH v2 06/12] gnu: perl-list-someutils: " gemmaro
2024-08-05 12:33   ` [bug#63866] [PATCH v2 07/12] gnu: Add perl-list-someutils-xs gemmaro
2024-08-05 12:33   ` [bug#63866] [PATCH v2 08/12] gnu: perl-mixin-linewise: Update to 0.111 gemmaro
2024-08-05 12:33   ` [bug#63866] [PATCH v2 09/12] gnu: perl-specio: Update to 0.48 gemmaro
2024-08-05 12:33   ` [bug#63866] [PATCH v2 10/12] gnu: Add perl-specio-library-path-tiny gemmaro
2024-08-05 12:33   ` [bug#63866] [PATCH v2 11/12] gnu: perl-test-class-most: Use propagated inputs gemmaro
2024-08-05 12:33   ` gemmaro [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1546050290d68601ccbaece315a0850048c5ec52.1722861235.git.gemmaro.dev@gmail.com \
    --to=gemmaro.dev@gmail.com \
    --cc=63866@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.