summaryrefslogtreecommitdiff
path: root/devel/p5-Perl-Tidy
diff options
context:
space:
mode:
authorsno <sno>2012-07-06 09:28:32 +0000
committersno <sno>2012-07-06 09:28:32 +0000
commit960669a6e88b03783ad8ffe2a908372f7cd1a8ea (patch)
treee12b46c8acc4eb9f893e771dc119d51a8b398418 /devel/p5-Perl-Tidy
parentfe0f312571ca41d7730ae4e5bebf7d197d9cd91a (diff)
downloadpkgsrc-960669a6e88b03783ad8ffe2a908372f7cd1a8ea.tar.gz
Updating package for Perl 5 module Perl::Tidy (including neat util perltidy)
in devel/p5-Perl-Tidy from 20101217 to 20120701. Upstream changes: 2012 07 01 - Corrected problem introduced by using a chomp on scalar references, RT #77978 - Added support for Perl 5.14 package block syntax, RT #78114. - A convergence test is made if three or more iterations are requested with the -it=n parameter to avoid wasting computer time. Several hundred Mb of code gleaned from the internet were searched with the results that: - It is unusual for two iterations to be required unless a major style change is being made. - Only one case has been found where three iterations were required. - No cases requiring four iterations have been found with this version. For the previous version several cases where found the results could oscillate between two semi-stable states. This version corrects this. So if it is important that the code be converged it is okay to set -it=4 with this version and it will probably stop after the second iteration. - Improved ability to identify and retain good line break points in the input stream, such as at commas and equals. You can always tell perltidy to ignore old breakpoints with -iob. - Fixed glitch in which a terminal closing hash brace followed by semicolon was not outdented back to the leading line depth like other closing tokens. Thanks to Keith Neargarder for noting this. OLD: my ( $pre, $post ) = @{ { "pp_anonlist" => [ "[", "]" ], "pp_anonhash" => [ "{", "}" ] }->{ $kid->ppaddr } }; # terminal brace NEW: my ( $pre, $post ) = @{ { "pp_anonlist" => [ "[", "]" ], "pp_anonhash" => [ "{", "}" ] }->{ $kid->ppaddr } }; # terminal brace - Removed extra indentation given to trailing 'if' and 'unless' clauses without parentheses because this occasionally produced undesirable results. This only applies where parens are not used after the if or unless. OLD: return undef unless my ( $who, $actions ) = $clause =~ /^($who_re)((?:$action_re)+)$/o; NEW: return undef unless my ( $who, $actions ) = $clause =~ /^($who_re)((?:$action_re)+)$/o;
Diffstat (limited to 'devel/p5-Perl-Tidy')
-rw-r--r--devel/p5-Perl-Tidy/Makefile4
-rw-r--r--devel/p5-Perl-Tidy/distinfo8
2 files changed, 6 insertions, 6 deletions
diff --git a/devel/p5-Perl-Tidy/Makefile b/devel/p5-Perl-Tidy/Makefile
index 15a32a8cc5c..0fbbf7c7111 100644
--- a/devel/p5-Perl-Tidy/Makefile
+++ b/devel/p5-Perl-Tidy/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.15 2011/08/16 23:04:17 wiz Exp $
+# $NetBSD: Makefile,v 1.16 2012/07/06 09:28:32 sno Exp $
#
-DISTNAME= Perl-Tidy-20101217
+DISTNAME= Perl-Tidy-20120701
PKGNAME= p5-${DISTNAME}
SVR4_PKGNAME= p5pt
CATEGORIES= devel perl5
diff --git a/devel/p5-Perl-Tidy/distinfo b/devel/p5-Perl-Tidy/distinfo
index 0deb2d5fed7..724f3a4fe9d 100644
--- a/devel/p5-Perl-Tidy/distinfo
+++ b/devel/p5-Perl-Tidy/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.8 2011/08/16 23:04:17 wiz Exp $
+$NetBSD: distinfo,v 1.9 2012/07/06 09:28:32 sno Exp $
-SHA1 (Perl-Tidy-20101217.tar.gz) = d9efd9bd29403fcda7d6f1667b0b0bdd62d8d744
-RMD160 (Perl-Tidy-20101217.tar.gz) = bd28763749424456598135e877890c97fdf594cc
-Size (Perl-Tidy-20101217.tar.gz) = 387834 bytes
+SHA1 (Perl-Tidy-20120701.tar.gz) = d19acc3912a3b210daff7719bc76f1204ddacead
+RMD160 (Perl-Tidy-20120701.tar.gz) = b410bfb0cb7138b4f497a316502e64bce17906bf
+Size (Perl-Tidy-20120701.tar.gz) = 400133 bytes