Subject: CVS commit: pkgsrc/devel/p5-Perl-Tidy
From: Jens Rehsack
Date: 2012-07-06 11:28:32
Message id: 20120706092832.99BAE175DD@cvs.netbsd.org

Log Message:
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;

Files:
RevisionActionfile
1.16modifypkgsrc/devel/p5-Perl-Tidy/Makefile
1.9modifypkgsrc/devel/p5-Perl-Tidy/distinfo