gnu: Add perl-io-pager.

* gnu/packages/perl.scm (perl-io-pager): New variable.
This commit is contained in:
Christopher Baines 2019-03-24 18:04:51 +00:00
parent 54a51789fd
commit f73d4b1fdc
No known key found for this signature in database
GPG Key ID: 5E28A33B0B84F577
1 changed files with 36 additions and 0 deletions

View File

@ -49,6 +49,7 @@
#:use-module (gnu packages base)
#:use-module (gnu packages compression)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages less)
#:use-module (gnu packages perl-check)
#:use-module (gnu packages perl-compression)
#:use-module (gnu packages perl-web)
@ -4306,6 +4307,41 @@ easier to develop interactive applications: is_interactive(), interactive(),
and busy().")
(license (package-license perl))))
(define-public perl-io-pager
(package
(name "perl-io-pager")
(version "0.4")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://cpan/authors/id/J/JP/JPIERCE/IO-Pager-"
version
"0.tgz"))
(sha256
(base32
"1vzdypsr7vkj8nnda9ccrksci6pqj5awwmi89l7x3mbpq36gad87"))))
(build-system perl-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-less
(lambda _
(substitute* "lib/IO/Pager.pm"
(("/usr/local/bin/less', '/usr/bin/less")
(which "less")))
#t)))))
(propagated-inputs
`(("perl-file-which" ,perl-file-which)))
(inputs
`(("less" ,less)))
(home-page "https://metacpan.org/release/IO-Pager")
(synopsis "Select a pager and pipe text to it")
(description
"@code{IO::Pager} can be used to locate an available pager and use it to
display output if a TTY is in use.")
(license (package-license perl))))
(define-public perl-io-string
(package
(name "perl-io-string")