From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Sassmannshausen Subject: [PATCH 3/3] gnu: Add perl-list-someutils. Date: Sat, 2 Jul 2016 20:34:54 +0200 Message-ID: <20160702183454.29006-4-alex@pompo.co> References: <20160702183454.29006-1-alex@pompo.co> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJPl7-0003OT-T8 for guix-devel@gnu.org; Sat, 02 Jul 2016 14:35:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJPl3-00012t-GH for guix-devel@gnu.org; Sat, 02 Jul 2016 14:35:17 -0400 Received: from mail.pompo.co ([87.243.223.35]:35580 helo=ronja.pompo.co) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJPl3-00012k-8A for guix-devel@gnu.org; Sat, 02 Jul 2016 14:35:13 -0400 In-Reply-To: <20160702183454.29006-1-alex@pompo.co> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/perl.scm (perl-list-someutils): New variable. --- gnu/packages/perl.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index f169a13..c171af4 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -3059,6 +3059,39 @@ intersections, unions, unique elements, complements and many more.") functionality on lists which is not going to go into List::Util.") (license (package-license perl)))) +(define-public perl-list-someutils + (package + (name "perl-list-someutils") + (version "0.52") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/D/DR/DROLSKY/List-SomeUtils-" + version + ".tar.gz")) + (sha256 + (base32 + "1b450jyxaa6q2yl0cdhknr3c2a5s7b9b18ccnwac625c681r130y")))) + (build-system perl-build-system) + (native-inputs + `(("perl-test-leaktrace" ,perl-test-leaktrace))) + (inputs + `(("perl-exporter-tiny" ,perl-exporter-tiny) + ("perl-module-implementation" + ,perl-module-implementation))) + (home-page "http://search.cpan.org/dist/List-SomeUtils") + (synopsis "Provide the stuff missing in List::Util") + (description "@code{List::SomeUtils} provides some trivial but commonly +needed functionality on lists which is not going to go into @code{List::Util}. + +All of the below functions are implementable in only a couple of lines of Perl +code. Using the functions from this module however should give slightly +better performance as everything is implemented in C. The pure-Perl +implementation of these functions only serves as a fallback in case the C +portions of this module couldn't be compiled on this machine.") + (license (package-license perl)))) + (define-public perl-memoize-expirelru (package (name "perl-memoize-expirelru") -- 2.8.4