From 994fad660c8e8dc318878d338eca33de3e98bae8 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Fri, 13 Mar 2015 09:21:41 -0500 Subject: gnu: Add Class-Accessor-Chained. * gnu/packages/perl.scm (perl-class-accessor-chained): New variable. --- gnu/packages/perl.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index d5e7629ccb..c2c07569af 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -302,6 +302,29 @@ the Carp.pm module doesn't help.") your class.") (license (package-license perl)))) +(define-public perl-class-accessor-chained + (package + (name "perl-class-accessor-chained") + (version "0.01") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/R/RC/RCLAMP/" + "Class-Accessor-Chained-" version ".tar.gz")) + (sha256 + (base32 + "1lilrjy1s0q5hyr0888kf0ifxjyl2iyk4vxil4jsv0sgh39lkgx5")))) + (build-system perl-build-system) + (propagated-inputs + `(("perl-class-accessor" ,perl-class-accessor))) + (home-page "http://search.cpan.org/dist/Class-Accessor-Chained") + (synopsis "Faster, but less expandable, chained accessors") + (description "A chained accessor is one that always returns the object +when called with parameters (to set), and the value of the field when called +with no arguments. This module subclasses Class::Accessor in order to provide +the same mk_accessors interface.") + (license (package-license perl)))) + (define-public perl-class-accessor-grouped (package (name "perl-class-accessor-grouped") -- cgit v1.2.3