From 47f28e5536f124f331e39243c771a91fcce0ed9a Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 6 Dec 2022 10:43:05 +0200 Subject: gnu: Add perl-getopt-argvfile. * gnu/packages/perl.scm (perl-getopt-argvfile): New variable. --- gnu/packages/perl.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'gnu/packages/perl.scm') diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index 0e21176751..26d20e4593 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -5206,6 +5206,27 @@ (define-public perl-filesys-notify-simple back to a full directory scan if none of these are available.") (license license:perl-license))) +(define-public perl-getopt-argvfile + (package + (name "perl-getopt-argvfile") + (version "1.11") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/J/JS/JSTENZEL/Getopt-ArgvFile-" + version + ".tar.gz")) + (sha256 + (base32 + "08jvhfqcjlsn013x96qa6paif0095x6y60jslp8p3zg67i8sl29p")))) + (build-system perl-build-system) + (home-page "https://metacpan.org/release/Getopt-ArgvFile") + (synopsis "Perl module for reading script options and parameters from files") + (description "This module simply interpolates option file hints in @code{@@ARGV} +by the contents of the pointed files. This enables option reading from files instead +of or additional to the usual reading from the command line.") + (license license:artistic2.0))) + (define-public perl-getopt-long (package (name "perl-getopt-long") -- cgit v1.2.3 From 14ca72226b5319dd138a71df40555d6e90629c81 Mon Sep 17 00:00:00 2001 From: Evgeny Pisemsky Date: Sun, 23 Oct 2022 17:23:11 +0300 Subject: gnu: perl-lingua-translit: Wrap translit program. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/perl.scm (perl-lingua-translit)[arguments]: Add “wrap-translit” phase. [inputs]: Add bash-minimal. Signed-off-by: Liliana Marie Prikler --- gnu/packages/perl.scm | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gnu/packages/perl.scm') diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index 26d20e4593..f80d84eaa5 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -32,6 +32,7 @@ ;;; Copyright © 2021 Xinglu Chen ;;; Copyright © 2021 Raghav Gururajan ;;; Copyright © 2021 Maxime Devos +;;; Copyright © 2022 Evgeny Pisemsky ;;; ;;; This file is part of GNU Guix. ;;; @@ -6269,6 +6270,18 @@ (define-public perl-lingua-translit (base32 "1qgap0j0ixmif309dvbqca7sy8xha9xgnj9s2lvh8qrczkc92gqi")))) (build-system perl-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'wrap-translit + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (wrap-program (string-append out "/bin/translit") + `("PERL5LIB" ":" prefix + (,(getenv "PERL5LIB") + ,(string-append out "/lib/perl5/site_perl")))))))))) + (inputs (list bash-minimal)) (home-page "https://metacpan.org/release/Lingua-Translit") (synopsis "Transliterate text between writing systems") (description "@code{Lingua::Translit} can be used to convert text from one -- cgit v1.2.3