all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: gemmaro <gemmaro.dev@gmail.com>
To: 72101@debbugs.gnu.org
Cc: gemmaro <gemmaro.dev@gmail.com>, gemmaro <gemmaro.dev@gmail.com>,
	Nicolas Graves <ngraves@ngraves.fr>
Subject: [bug#72101] [PATCH v2 2/2] gnu: Add perl-minimumversion.
Date: Wed, 21 Aug 2024 20:59:26 +0900	[thread overview]
Message-ID: <d28396fa5bac8803b946f294c39ffa563db791d9.1724241566.git.gemmaro.dev@gmail.com> (raw)
In-Reply-To: <077ad9cf0e6ccfc44dffaacb7f949902aa715ac8.1724241566.git.gemmaro.dev@gmail.com>

* gnu/packages/perl.scm (perl-minimumversion): New variable.

Change-Id: Iad3c22936c07b7430525ad9827b6703d4ea9ce9c
---
I added "Perl Parsing Interface"[1] in the description to make it clearer.

[1] https://metacpan.org/pod/PPI#What-Does-PPI-Stand-For?

 gnu/packages/perl.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 46de612234..816aca2d59 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 the @samp{PPI}
+(Perl Parsing Interface), it can do this without loading 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





  reply	other threads:[~2024-08-21 12:06 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 ` [bug#72101] [PATCH 2/2] gnu: Add perl-minimumversion gemmaro
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   ` gemmaro [this message]
2024-08-21 17:00   ` bug#72101: " 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=d28396fa5bac8803b946f294c39ffa563db791d9.1724241566.git.gemmaro.dev@gmail.com \
    --to=gemmaro.dev@gmail.com \
    --cc=72101@debbugs.gnu.org \
    --cc=ngraves@ngraves.fr \
    /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.