diff options
author | sno <sno> | 2010-07-31 10:58:07 +0000 |
---|---|---|
committer | sno <sno> | 2010-07-31 10:58:07 +0000 |
commit | 7638b20a0dd5e9e61e17fcdf75a6fd5f52f5917d (patch) | |
tree | 8e63f2fe85d49186310bc46b340a035eba4b5896 /devel/p5-Perl-Critic | |
parent | 302a6ae7d8f0cd66bef10b567346add92ee79971 (diff) | |
download | pkgsrc-7638b20a0dd5e9e61e17fcdf75a6fd5f52f5917d.tar.gz |
Updating devel/p5-Perl-Critic from 1.106 to 1.108
pkgsrc changes:
- adjust dependencies
Upstream changes:
[1.108] Released on 2010-06-22
This is the "Give Shawn Moore what we promised him a year ago and hurry up
and get this out before Brad Oaks gives his YAPC::NA talk" release.
New Policies:
* Documentation::RequirePodLinksIncludeText
* Subroutines::ProhibitUnusedPrivateSubroutines
New Features:
* There is a new global configuration item, 'program-extensions', which
configures Perl::Critic's idea of which file name extensions represent
programs. The desired extensions are specified as a space-separated list,
with leading '.' on each if that is desired. Files whose names end in
'.PL' will always be considered programs. This can be overridden by
command option --programs-extensions, which can be specified multiple
times.
* There is now a perlcritic --allow-unsafe switch. Without this switch,
Perl::Critic will silently refuse to load any Policy that is marked
unsafe. Unsafe Policies are usually ones that may compile or execute
untrusted code (see Perl::Critic::DynamicPolicy for an example); Policy
authors can mark their policies as unsafe by overriding the is_safe()
method.
* The framework that we use to test Perl::Critic Policies has been
packaged into a convenient module that you can use to test your own
Policies. See Test::Perl::Critic::Policy and Perl::Critic::TestUtils
for details.
Policy Changes
* BuiltInFunctions::ProhibitLvalueSubstr no longer complains when there
is a low-precedence operator between the substr() and the assignment
operator.
* CodeLayout::ProhibitParensWithBuiltins now allows 'state ($foo)'. RT
#52029
* ErrorHandling::RequireCarping now has an
allow_in_main_if_not_in_subroutine option to allow "die" directly in
the default namespace.
* InputOutput::RequireBriefOpen now recognizes CORE::open(),
CORE::close(), CORE::GLOBAL::open(), and CORE::GLOBAL::close(). RT
#52391
* Modules::ProhibitEvilModules now complains by default about the modules
deprecated by the Perl 5 Porters in 5.12.
* Modules::RequireVersionVar documentation updated to make clear that "my
$VERSION" does not work as a module version declaration. RT #56667
* The RegularExpressions::* policies have been converted from using
Regexp::Parser to using PPIx::Regexp for their heavy lifting.
* RegularExpressions::ProhibitCaptureWithoutTest now allows capture
variables inside when() {}. RT #36081.
* RegularExpressions::ProhibitUnusedCapture now checks for unused named
captures.
* Subroutines::ProhibitManyArgs revised to count only characters in the
prototype that represent arguments. RT #56627
* Subroutines::ProhibitNestedSubs no longer complains about scheduled
blocks (BEGIN, etc.) inside subroutines and vice versa.
* Subroutines::RequireFinalReturn should now understand a final given/when
statement, and declare an error if there is no 'default' block or if any
branch does not return.
* TestingAndDebugging::RequireUseStrict now accepts 'use 5.011' or greater
as equivalent to 'use strict'.
* ValuesAndExpressions::ProhibitMismatchedOperators false positive with
"'foo' x 15 . 'bar'". RT #54524
* Variables::ProhibitPunctuationVars gave false positives on qr// regexp's
ending in '$'. RT #55604
Bug Fixes:
* The "## no critic" annotations now respect #line directives.
* Annotations on statements spanning more than one line (e.g.
my $foo =
'$bar'; ## no critic (RequireInterpolationOfMetachars)
) are now handled as single-line annotations, not block annotations.
* All instances of L<Foo> in the POD have been changed to L<Foo|Foo>.
L</bar> and L<Foo/bar> were allowed to stand. RT #37485
* Spaces are now allowed immediately inside the enclosing parentheses in
"## no critic ( Foo )". RT #52038
* With the introduction of PPIx::Regexp, Perl::Critic no longer dies
when it encounters a Perl 5.010 regexp. RT #49442.
* DEVELOPER.pod typo in link to
ValuesAndExpressions::ProhibitConstantPragma policy. RT #57818
* Spelling errors in documentation. RT #57375
* "die" used instead of "croak". RT #56619
* Fixed regex test that caused test failures on every Perl 5.11
(credit Tom Wyant).
* t/20_policy_pod_spelling.t now works (or at least no longer fails)
in non-English locales (again). RT #43291 and RT #48986.
* Perldoc hae broken link for McCabe score definition. RT #53219
* RT #33935 and #49679 were fixed by upgrading to PPI 1.208
Other Changes:
* Perl::Critic::Utils::is_unchecked_call() updated to include chmod in the
set of things covered by autodie (this happened in autodie v2.08). The
primary effect of this is on InputOutput::RequireCheckedSyscalls.
* Now depends upon Task::Weaken to ensure that we only install with perls
where Scalar::Util::weaken() works.
* Email::Address was optional, but is now required. So everyone
gets the optimal behavior from RequireInterpolationOfMetachars.
* Some infrastructure has been extracted to the new PPIx-Utilities
distro. It is also a required dependency here. Over time a good
portion of Perl::Critic::Utils* will be migrated to this distribution.
* Perl::Critic::Utils::PPI::get_constant_name_element_from_declaring_statement()
is deprecated because it doesn't handle multiple constants being
declared within a single "use constant" statement. Use
PPIx::Utilities::Statement::get_constant_name_elements_from_declaring_statement()
instead.
* Removed all uses of Perl::Critic::Utils::PPIRegep. Since the
PPIx::Regexp update, Perl::Critic only used get_match_string() and
friends, which were superseded by the corresponding PPI methods.
Perl::Critic now depends on PPI-1.208 or newer.
* Moved Perl::Critic::Utils::PPIRegexp to the Perl-Critic-Deprecated.
* The PolicySummary.pod file is now generated when the distribution
is created, rather than when you install it. This ensures the file
will be available on http://search.cpan.org. Thanks to Bear Longyear
for bringing this to our attention.
[1.107_001] Released on 2010-06-20
Changes summarized into 1.108 above. For exact details, see Changes on
BackPAN.
Diffstat (limited to 'devel/p5-Perl-Critic')
-rw-r--r-- | devel/p5-Perl-Critic/Makefile | 11 | ||||
-rw-r--r-- | devel/p5-Perl-Critic/distinfo | 8 |
2 files changed, 11 insertions, 8 deletions
diff --git a/devel/p5-Perl-Critic/Makefile b/devel/p5-Perl-Critic/Makefile index 344e87a58fd..9d9cda61854 100644 --- a/devel/p5-Perl-Critic/Makefile +++ b/devel/p5-Perl-Critic/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.13 2010/06/13 21:38:38 seb Exp $ +# $NetBSD: Makefile,v 1.14 2010/07/31 10:58:07 sno Exp $ # -DISTNAME= Perl-Critic-1.106 +DISTNAME= Perl-Critic-1.108 PKGNAME= p5-${DISTNAME} #PKGNAME= p5-${DISTNAME:C/0[0-9][0-9]$/.&/} CATEGORIES= devel perl5 @@ -17,20 +17,23 @@ PKG_DESTDIR_SUPPORT= user-destdir DEPENDS+= p5-B-Keywords>=1.05:../../devel/p5-B-Keywords DEPENDS+= p5-Config-Tiny>=2:../../devel/p5-Config-Tiny DEPENDS+= p5-Exception-Class>=1.23:../../devel/p5-Exception-Class +DEPENDS+= p5-Email-Address>=1.889:../../mail/p5-Email-Address DEPENDS+= p5-IO-String-[0-9]*:../../devel/p5-IO-String DEPENDS+= p5-List-MoreUtils>=0.19:../../devel/p5-List-MoreUtils -DEPENDS+= p5-PPI>=1.205:../../devel/p5-PPI +DEPENDS+= p5-PPI>=1.208:../../devel/p5-PPI +DEPENDS+= p5-PPIx-Utilities>=1.000:../../devel/p5-PPIx-Utilities DEPENDS+= p5-Readonly>=1.03:../../devel/p5-Readonly DEPENDS+= p5-String-Format>=1.13:../../devel/p5-String-Format +DEPENDS+= p5-Task-Weaken-[0-9]*:../../devel/p5-Task-Weaken # Recommended dependencies DEPENDS+= p5-File-HomeDir>=0:../../devel/p5-File-HomeDir DEPENDS+= p5-File-Which>=0:../../devel/p5-File-Which DEPENDS+= p5-Perl-Tidy>=0:../../devel/p5-Perl-Tidy +DEPENDS+= p5-PPIx-Regexp-[0-9]*:../../devel/p5-PPIx-Regexp DEPENDS+= p5-Pod-Spell>=1:../../textproc/p5-Pod-Spell DEPENDS+= p5-Readonly-XS>=0:../../devel/p5-Readonly-XS DEPENDS+= p5-Regexp-Parser>=0.20:../../devel/p5-Regexp-Parser -DEPENDS+= p5-Email-Address>=1.889:../../mail/p5-Email-Address USE_LANGUAGES= # empty PERL5_PACKLIST= auto/Perl/Critic/.packlist diff --git a/devel/p5-Perl-Critic/distinfo b/devel/p5-Perl-Critic/distinfo index db481b25314..b3eadc64788 100644 --- a/devel/p5-Perl-Critic/distinfo +++ b/devel/p5-Perl-Critic/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.10 2010/06/13 21:38:38 seb Exp $ +$NetBSD: distinfo,v 1.11 2010/07/31 10:58:07 sno Exp $ -SHA1 (Perl-Critic-1.106.tar.gz) = 571f97eed9436cfbd4d2bfee3677844eac11f42f -RMD160 (Perl-Critic-1.106.tar.gz) = 2121b9bf64d1d19ecc0290c036fb44867b166777 -Size (Perl-Critic-1.106.tar.gz) = 565392 bytes +SHA1 (Perl-Critic-1.108.tar.gz) = bd8d22881be40653fb815bf9cd33247a81177c59 +RMD160 (Perl-Critic-1.108.tar.gz) = a6c71404a69e97aae74c018cf81ed606f4fb77c5 +Size (Perl-Critic-1.108.tar.gz) = 607529 bytes |