gnu: Add Try-Tiny.

* gnu/packages/perl.scm (perl-try-tiny): New variable.
This commit is contained in:
Eric Bavier 2015-03-05 15:19:38 -06:00
parent a77ed67def
commit 90ae6151cf
1 changed files with 20 additions and 0 deletions

View File

@ -640,6 +640,26 @@ a minimum of effort.")
;; "Under the same license as Perl itself" ;; "Under the same license as Perl itself"
(license (package-license perl)))) (license (package-license perl))))
(define-public perl-try-tiny
(package
(name "perl-try-tiny")
(version "0.22")
(source
(origin
(method url-fetch)
(uri (string-append "mirror://cpan/authors/id/D/DO/DOY/"
"Try-Tiny-" version ".tar.gz"))
(sha256
(base32
"068vdbpacfawc3lkfs0b82xxl27h3l0gj14iada3vlwk8rps9yv0"))))
(build-system perl-build-system)
(home-page "http://search.cpan.org/dist/Try-Tiny")
(synopsis "Minimal try/catch with proper preservation of $@")
(description "This module provides bare bones try/catch/finally statements
that are designed to minimize common mistakes with eval blocks, and nothing
else.")
(license x11)))
;;; Some packaged modules need versions of core modules that are newer than ;;; Some packaged modules need versions of core modules that are newer than
;;; those in our perl 5.16.1. ;;; those in our perl 5.16.1.