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:   wiz
Date:           Tue Aug 16 23:04:17 UTC 2011

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

Log Message:
Update to 20101217:

  2010 12 17
     - added new flag -it=n or --iterations=n
       This flag causes perltidy to do n complete iterations.
       For most purposes the default of n=1 should be satisfactory.  However n=2
       can be useful when a major style change is being made, or when code is 
       beautified on check-in to a source code control system.  The run time 
will be
       approximately proportional to n, and it should seldom be necessary to 
use a
       value greater than n=2.  Thanks to Jonathan Swartz

     - A configuration file pathname begins with three dots, e.g.
       ".../.perltidyrc", indicates that the file should be searched for 
       in the current directory and working upwards. This makes it easier to 
       multiple projects each with their own .perltidyrc in their root 
       Thanks to Jonathan Swartz for this patch.

     - Added flag --notidy which disables all formatting and causes the input 
to be
       copied unchanged.  This can be useful in conjunction with hierarchical
       F<.perltidyrc> files to prevent unwanted tidying.
       Thanks to Jonathan Swartz for this patch.

     - Added prefilters and postfilters in the call to the module.
       Prefilters and postfilters. The prefilter is a code reference that
       will be applied to the source before tidying, and the postfilter
       is a code reference to the result before outputting.

       Thanks to Jonathan Swartz for this patch.  He writes:
       This is useful for all manner of customizations. For example, I use
       it to convert the 'method' keyword to 'sub' so that perltidy will work 
       Method::Signature::Simple code:

          prefilter => sub { $_ = $_[0]; s/^method (.*)/sub $1 \#__METHOD/gm; 
return $_ },
          postfilter => sub { $_ = $_[0]; s/^sub (.*?)\s* \#__METHOD/method 
$1/gm; return $_ }

     - The starting indentation level of sections of code entabbed with -et=n
       is correctly guessed if it was also produced with the same -et=n flag.  
       keeps the indentation stable on repeated formatting passes within an 
       Thanks to Sam Kington and Glenn.

     - Functions with prototype '&' had a space between the function and opening
       peren.  This space now only occurs if the flag --space-function-paren 
       is set.  Thanks to Zrajm Akfohg.

     - Patch to never put spaces around a bare word in braces beginning with ^ 
as in:
         my $before = ${^PREMATCH};
       even if requested with the -bt=0 flag because any spaces cause a syntax 
error in perl.
       Thanks to Fabrice Dulanoy.

To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/devel/p5-Perl-Tidy/Makefile
cvs rdiff -u -r1.7 -r1.8 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