From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Sassmannshausen Subject: [PATCH] gnu: Add perl-getopt-long. Date: Wed, 2 Nov 2016 13:55:02 +0100 Message-ID: <20161102125502.6909-2-alex@pompo.co> References: <20161102125502.6909-1-alex@pompo.co> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1v4c-0007UY-Dt for guix-devel@gnu.org; Wed, 02 Nov 2016 08:55:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1v4Z-00055y-47 for guix-devel@gnu.org; Wed, 02 Nov 2016 08:55:22 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:34408) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c1v4Y-000552-TK for guix-devel@gnu.org; Wed, 02 Nov 2016 08:55:19 -0400 Received: by mail-wm0-x243.google.com with SMTP id p190so2950930wmp.1 for ; Wed, 02 Nov 2016 05:55:18 -0700 (PDT) In-Reply-To: <20161102125502.6909-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 Cc: Alex Sassmannshausen * gnu/packages/perl.scm (perl-getopt-long): New variable. --- gnu/packages/perl.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index 6b12b34..c5e8fe3 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -2685,6 +2685,35 @@ functionality; it returns a list of file names that match the given pattern. For instance, it supports the @code{**/*.pm} form.") (license (package-license perl)))) +(define-public perl-getopt-long + (package + (name "perl-getopt-long") + (version "v2.49.1") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/J/JV/JV/" + "Getopt-Long-" (substring version 1) ".tar.gz")) + (sha256 + (base32 + "0bw8gbhj8s5gmkqvs3m7pk9arqhgqssrby4yimh29ah9alix9ylq")))) + (build-system perl-build-system) + (home-page + "http://search.cpan.org/dist/Getopt-Long") + (synopsis + "Module to handle parsing command line options") + (description "The @code{Getopt::Long} module implements an extended getopt +function called @code{GetOptions()}. It parses the command line from +@code{ARGV}, recognizing and removing specified options and their possible +values. + +This function adheres to the POSIX syntax for command line options, with GNU +extensions. In general, this means that options have long names instead of +single letters, and are introduced with a double dash \"--\". Support for +bundling of command line options, as was the case with the more traditional +single-letter approach, is provided but not enabled by default.") + (license (package-license perl)))) + (define-public perl-getopt-long-descriptive (package (name "perl-getopt-long-descriptive") -- 2.10.1