pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/p5-Perl-Tidy



Module Name:    pkgsrc
Committed By:   sno
Date:           Fri Jul  6 09:28:32 UTC 2012

Modified Files:
        pkgsrc/devel/p5-Perl-Tidy: Makefile distinfo

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;


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/devel/p5-Perl-Tidy/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/p5-Perl-Tidy/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index