* [bug#72898] [PATCH 1/2] gnu: perltidy: Update to 20240511.
@ 2024-08-31 2:39 gemmaro
2024-08-31 2:39 ` [bug#72898] [PATCH 2/2] gnu: perltidy: Make the perltidy command available gemmaro
0 siblings, 1 reply; 2+ messages in thread
From: gemmaro @ 2024-08-31 2:39 UTC (permalink / raw)
To: 72898; +Cc: gemmaro
* gnu/packages/perl.scm (perltidy): Update to 20240511.
Change-Id: I2dc2d6f69169b83dd02756940b97b584c617dbd0
---
gnu/packages/perl.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 816aca2d59..5428fd1211 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -11301,14 +11301,14 @@ (define-public perl-throwable
(define-public perltidy
(package
(name "perltidy")
- (version "20180220")
+ (version "20240511")
(source (origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/perltidy/" version
"/Perl-Tidy-" version ".tar.gz"))
(sha256
(base32
- "0w1k5ffcrpx0fm9jgprrwy0290k6cmy7dyk83s61063migi3r5z9"))))
+ "1wk8aicxq5lwvhz4f4nrbx585x7kk8mz1r4w5pf46nlbx669xzs7"))))
(build-system perl-build-system)
(home-page "https://perltidy.sourceforge.net/")
(synopsis "Perl script tidier")
base-commit: df14cacca9b95d69fdd3b6191e42df36af266bcd
--
2.45.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [bug#72898] [PATCH 2/2] gnu: perltidy: Make the perltidy command available.
2024-08-31 2:39 [bug#72898] [PATCH 1/2] gnu: perltidy: Update to 20240511 gemmaro
@ 2024-08-31 2:39 ` gemmaro
0 siblings, 0 replies; 2+ messages in thread
From: gemmaro @ 2024-08-31 2:39 UTC (permalink / raw)
To: 72898; +Cc: gemmaro
* gnu/packages/perl.scm (perltidy)[arguments]<#:phases>: Add phases to wrap
the perltidy command and check it works.
[inputs]: Add bash-minimal for wrap-program.
Change-Id: Icef08919409afa508d0ad5a21a59af4a3ce63fbe
---
gnu/packages/perl.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 5428fd1211..8b22279b1d 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -11310,6 +11310,22 @@ (define-public perltidy
(base32
"1wk8aicxq5lwvhz4f4nrbx585x7kk8mz1r4w5pf46nlbx669xzs7"))))
(build-system perl-build-system)
+ (arguments
+ (list
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'install 'wrap-perltidy
+ (lambda _
+ (wrap-program (string-append #$output "/bin/perltidy")
+ (list "PERL5LIB" ":"
+ 'prefix
+ (list (string-append (getenv "PERL5LIB") ":"
+ #$output
+ "/lib/perl5/site_perl"))))))
+ (add-after 'wrap-perltidy 'check-perltidy
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke (string-append #$output "/bin/perltidy"))))))))
+ (inputs (list bash-minimal))
(home-page "https://perltidy.sourceforge.net/")
(synopsis "Perl script tidier")
(description "This package contains a Perl script which indents and
--
2.45.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-31 2:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-31 2:39 [bug#72898] [PATCH 1/2] gnu: perltidy: Update to 20240511 gemmaro
2024-08-31 2:39 ` [bug#72898] [PATCH 2/2] gnu: perltidy: Make the perltidy command available gemmaro
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).