[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: Add perl-carp.
From: |
Roel Janssen |
Subject: |
01/01: gnu: Add perl-carp. |
Date: |
Tue, 3 Apr 2018 09:17:58 -0400 (EDT) |
roelj pushed a commit to branch master
in repository guix.
commit 7ba22308975f31c33d7a9cbb5c09be1837a74d2a
Author: Roel Janssen <address@hidden>
Date: Tue Apr 3 15:16:42 2018 +0200
gnu: Add perl-carp.
* gnu/packages/perl.scm (perl-carp): New variable.
---
gnu/packages/perl.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 78c15f3..8cb584c 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -722,6 +722,31 @@ is captured while being passed through to the original
file handles.")
to test the installed perl for compatibility with his modules.")
(license (package-license perl))))
+(define-public perl-carp
+ (package
+ (name "perl-carp")
+ (version "1.38")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/R/RJ/RJBS/Carp-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "00bijwwc0ix27h2ma3lvsf3b56biar96bl9dikxgx7cmpcycxad5"))))
+ (build-system perl-build-system)
+ (home-page "http://search.cpan.org/dist/Carp/")
+ (synopsis "Alternative warn and die for modules")
+ (description "The @code{Carp} routines are useful in your own modules
+because they act like @code{die()} or @code{warn()}, but with a message
+which is more likely to be useful to a user of your module. In the case
+of @code{cluck}, @code{confess}, and @code{longmess} that context is a
+summary of every call in the call-stack. For a shorter message you can use
address@hidden or @code{croak} which report the error as being from where your
+module was called. There is no guarantee that that is where the error was,
+but it is a good educated guess.")
+ (license (package-license perl))))
+
(define-public perl-carp-always
(package
(name "perl-carp-always")