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 10/16] gnu: Add tidyall.
Date: Sat,  3 Jun 2023 14:05:45 +0900	[thread overview]
Message-ID: <a905684d417e98894e3c2943cc5c0fd46f822826.1685767964.git.gemmaro.dev@gmail.com> (raw)
In-Reply-To: <cover.1685767964.git.gemmaro.dev@gmail.com>

* 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 <jgart@dismail.de>
 ;;; Copyright © 2023 Luis Felipe López Acevedo <luis.felipe.la@protonmail.com>
 ;;; Copyright © 2023 Timo Wilken <guix@twilken.net>
+;;; Copyright © 2023 gemmaro <gemmaro.dev@gmail.com>
 ;;;
 ;;; 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





  parent reply	other threads:[~2023-06-03  5:08 UTC|newest]

Thread overview: 17+ 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 ` gemmaro [this message]
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

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=a905684d417e98894e3c2943cc5c0fd46f822826.1685767964.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.