~ruther/guix-local

410c85f40003dd1209822a930ff54e5ed90fb872 — gemmaro 1 year, 11 months ago 0ecc0a1
gnu: Add perl-minimumversion.

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

Change-Id: Iad3c22936c07b7430525ad9827b6703d4ea9ce9c
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
1 files changed, 40 insertions(+), 0 deletions(-)

M gnu/packages/perl.scm
M gnu/packages/perl.scm => gnu/packages/perl.scm +40 -0
@@ 6877,6 6877,46 @@ from various sources.  For instance, it contains all IANA types and the
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")