pkgsrc/devel/p5-Getopt-Long/Makefile

21 lines
553 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.16 2014/05/29 23:35:56 wiz Exp $
DISTNAME= Getopt-Long-2.42
PKGNAME= p5-${DISTNAME}
PKGREVISION= 1
CATEGORIES= devel perl5
2012-12-17 03:55:21 +01:00
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Getopt/}
MAINTAINER= pkgsrc-users@NetBSD.org
2012-12-17 03:55:21 +01:00
HOMEPAGE= http://search.cpan.org/dist/Getopt-Long/
COMMENT= Extended processing of command line options
LICENSE= ${PERL5_LICENSE}
PKG_INSTALLATION_TYPES= overwrite pkgviews
Update to version 2.37. While here mark this package as not requiring any compiler (empty USE_LANGUAGES variable). Changes since last packaged version (2.35): Changes in version 2.37 ----------------------- * Bugfix: With gnu_compat, --foo= will no longer trigger "Option requires an argument" but return the empty string. Changes in version 2.36 ----------------------- **************** WARNING -- EXPERIMENTAL CODE AHEAD **************** * Parsing options from an arbitrary array The entry point GetOptionsFromArray (exported on demand) can be used to parse command line options that are not passed in via @ARGV, but using an arbitrary array. use Getopt::Long qw(GetOptionsFromArray); $ret = GetOptionsFromArray(\@myopts, ...); * Parsing options from an arbitrary string The entry point GetOptionsFromString (exported on demand) can be used to parse command line options that are not passed in via @ARGV, but using an arbitrary string. use Getopt::Long qw(GetOptionsFromString); $ret = GetOptionsFromString($optstring, ...); Note that upon completion, no arguments may remain in the string. If arguments may remain, call it in list context: ($ret, $args) = GetOptionsFromString($optstring, ...); @$args will have the remaining arguments. **************** END EXPERIMENTAL CODE **************** * Number values for options may include underscores for readability (just like Perls numbers). * Bugfix for Ticket #19432 (found and fixed by khali). * Bugfix to make it cooperate with the bignum pragma. Thanks to Merijn and Yves. * Various small fixes to make the test suite run under 5.004_05. * More examples (skeletons).
2008-07-27 14:53:26 +02:00
USE_LANGUAGES= # empty
PERL5_PACKLIST= auto/Getopt/Long/.packlist
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"