From: gemmaro <gemmaro.dev@gmail.com>
To: 72101@debbugs.gnu.org
Cc: gemmaro <gemmaro.dev@gmail.com>
Subject: [bug#72101] [PATCH 2/2] gnu: Add perl-minimumversion.
Date: Sun, 14 Jul 2024 12:10:16 +0900 [thread overview]
Message-ID: <9df71471e436e654ee2793ecc6e64c53bba9ab25.1720925376.git.gemmaro.dev@gmail.com> (raw)
In-Reply-To: <cover.1720925376.git.gemmaro.dev@gmail.com>
* gnu/packages/perl.scm (perl-minimumversion): New variable.
Change-Id: I731567f257d8415b4cf834ab22c7e64699a8b28f
---
gnu/packages/perl.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index fe75ffa4c4..bbc06d320c 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -6877,6 +6877,46 @@ (define-public perl-mime-types
knowledge of Apache.")
(license (package-license perl))))
+(define-public perl-minimumversion
+ (package
+ (name "perl-minimumversion")
+ (version "1.40")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/D/DB/DBOOK/Perl-MinimumVersion-"
+ version ".tar.gz"))
+ (sha256
+ (base32 "145yl4qv14xcrr74w1qvdb6s0h5lj8smnfawfnj0rmv0rdwab2bm"))))
+ (build-system perl-build-system)
+ (arguments
+ (list
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'install 'wrap-programs
+ (lambda _
+ (wrap-program (string-append #$output "/bin/perlver")
+ (list "PERL5LIB" ":"
+ 'prefix
+ (list (string-append (getenv "PERL5LIB") ":"
+ #$output
+ "/lib/perl5/site_perl")))))))))
+ (inputs (list bash-minimal))
+ (propagated-inputs (list perl-file-find-rule
+ perl-file-find-rule-perl
+ perl-params-util
+ perl-ppi
+ perl-ppix-regexp
+ perl-ppix-utils))
+ (home-page "https://metacpan.org/release/Perl-MinimumVersion")
+ (synopsis "Find a minimum required version of perl for Perl code")
+ (description
+ "@samp{Perl::MinimumVersion} takes Perl source code and calculates the
+minimum version of perl required to be able to run it. Because it is
+based on @samp{PPI}, it can do this without having to actually load
+the code. The distribution comes with a script called @samp{perlver}.")
+ (license license:perl-license)))
+
(define-public perl-mixin-linewise
(package
(name "perl-mixin-linewise")
--
2.45.2
next prev parent reply other threads:[~2024-07-14 3:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-14 2:57 [bug#72101] [PATCH 0/2] Add perl-minimumversion gemmaro
2024-07-14 3:10 ` [bug#72101] [PATCH 1/2] gnu: Add perl-ppix-utils gemmaro
2024-07-14 3:10 ` gemmaro [this message]
2024-08-15 13:48 ` [bug#72101] QA review for 72101 Nicolas Graves via Guix-patches via
2024-08-21 11:59 ` [bug#72101] [PATCH v2 1/2] gnu: Add perl-ppix-utils gemmaro
2024-08-21 11:59 ` [bug#72101] [PATCH v2 2/2] gnu: Add perl-minimumversion gemmaro
2024-08-21 17:00 ` bug#72101: [PATCH v2 1/2] gnu: Add perl-ppix-utils Ludovic Courtès
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=9df71471e436e654ee2793ecc6e64c53bba9ab25.1720925376.git.gemmaro.dev@gmail.com \
--to=gemmaro.dev@gmail.com \
--cc=72101@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.