Thu Dec 18 23:22:21 2008 UTC ()
Update from version 20070508nb1 to 20071205.
Fixes PR#39557.
Pkgsrc changes:
o Add a commented-out HOMEPAGE using search.cpan.org
Upstream changes:
2007 12 05
-Improved support for perl 5.10: New quote modifier 'p', new
block type UNITCHECK, new keyword break, improved formatting
kof given/when.
-Corrected tokenization bug of something like $var{-q}.
-Numerous minor formatting improvements.
-Corrected list of operators controlled by -baao -bbao to include
. : ? && || and or err xor
-Corrected very minor error in log file involving incorrect comment
regarding need for upper case of labels.
-Fixed problem where perltidy could run for a very long time
when given certain non-perl text files.
-Line breaks in un-parenthesized lists now try to follow
line breaks in the input file rather than trying to fill
lines. This usually works better, but if this causes
trouble you can use -iob to ignore any old line breaks.
Example for the following input snippet:
print
"conformability (Not the same dimension)\n",
"\t", $have, " is ", text_unit($hu), "\n",
"\t", $want, " is ", text_unit($wu), "\n",
;
OLD:
print "conformability (Not the same dimension)\n", "\t", $have, " is ",
text_unit($hu), "\n", "\t", $want, " is ", text_unit($wu), "\n",;
NEW:
print "conformability (Not the same dimension)\n",
"\t", $have, " is ", text_unit($hu), "\n",
"\t", $want, " is ", text_unit($wu), "\n",
;
2007 08 01
-Added -fpsc option (--fixed-position-side-comment). Thanks
to Ueli Hugenschmidt. For example -fpsc=40 tells perltidy to
put side comments in column 40 if possible.
-Added -bbao and -baao options (--break-before-all-operators
and --break-after-all-operators) to simplify command lines
and configuration files. These define an initial preference
for breaking at operators which can be modified with -wba and
-wbb flags. For example to break before all operators except
an = one could use --bbao -wba='=' rather than listing every
single perl operator (except =) on a -wbb flag.
-Added -kis option (--keep-interior-semicolons). Use the B<-kis> flag
to prevent breaking at a semicolon if there was no break there in the
input file. To illustrate, consider the following input lines:
dbmclose(%verb_delim); undef %verb_delim;
dbmclose(%expanded); undef %expanded;
dbmclose(%global); undef %global;
Normally these would be broken into six lines, but
perltidy -kis gives:
dbmclose(%verb_delim); undef %verb_delim;
dbmclose(%expanded); undef %expanded;
dbmclose(%global); undef %global;
-Improved formatting of complex ternary statements, with indentation
of nested statements.
OLD:
return defined( $cw->{Selected} )
? (wantarray)
? @{ $cw->{Selected} }
: $cw->{Selected}[0]
: undef;
NEW:
return defined( $cw->{Selected} )
? (wantarray)
? @{ $cw->{Selected} }
: $cw->{Selected}[0]
: undef;
-Text following un-parenthesized if/unless/while/until statements get a
full level of indentation. Suggested by Jeff Armstorng and others.
OLD:
return $ship->chargeWeapons("phaser-canon")
if $encounter->description eq 'klingon'
and $ship->firepower >= $encounter->firepower
and $location->status ne 'neutral';
NEW:
return $ship->chargeWeapons("phaser-canon")
if $encounter->description eq 'klingon'
and $ship->firepower >= $encounter->firepower
and $location->status ne 'neutral';
(he)
diff -r1.10 -r1.11 pkgsrc/devel/p5-Perl-Tidy/Makefile
diff -r1.5 -r1.6 pkgsrc/devel/p5-Perl-Tidy/distinfo
--- pkgsrc/devel/p5-Perl-Tidy/Makefile 2008/10/19 19:17:58 1.10
+++ pkgsrc/devel/p5-Perl-Tidy/Makefile 2008/12/18 23:22:21 1.11
| @@ -1,21 +1,21 @@ | | | @@ -1,21 +1,21 @@ |
1 | # $NetBSD: Makefile,v 1.10 2008/10/19 19:17:58 he Exp $ | | 1 | # $NetBSD: Makefile,v 1.11 2008/12/18 23:22:21 he Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= Perl-Tidy-20070508 | | 4 | DISTNAME= Perl-Tidy-20071205 |
5 | PKGNAME= p5-${DISTNAME} | | 5 | PKGNAME= p5-${DISTNAME} |
6 | PKGREVISION= 1 | | | |
7 | SVR4_PKGNAME= p5pt | | 6 | SVR4_PKGNAME= p5pt |
8 | CATEGORIES= devel perl5 | | 7 | CATEGORIES= devel perl5 |
9 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=perltidy/} | | 8 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=perltidy/} |
10 | | | 9 | |
11 | MAINTAINER= adam@migus.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
12 | HOMEPAGE= http://perltidy.sourceforge.net/ | | 11 | HOMEPAGE= http://perltidy.sourceforge.net/ |
| | | 12 | #HOMEPAGE= http://search.cpan.org/dist/Perl-Tidy/ |
13 | COMMENT= Parses and beautifies perl source | | 13 | COMMENT= Parses and beautifies perl source |
14 | | | 14 | |
15 | PKG_INSTALLATION_TYPES= overwrite pkgviews | | 15 | PKG_INSTALLATION_TYPES= overwrite pkgviews |
16 | PKG_DESTDIR_SUPPORT= user-destdir | | 16 | PKG_DESTDIR_SUPPORT= user-destdir |
17 | | | 17 | |
18 | PERL5_PACKLIST= auto/Perl/Tidy/.packlist | | 18 | PERL5_PACKLIST= auto/Perl/Tidy/.packlist |
19 | | | 19 | |
20 | .include "../../lang/perl5/module.mk" | | 20 | .include "../../lang/perl5/module.mk" |
21 | .include "../../mk/bsd.pkg.mk" | | 21 | .include "../../mk/bsd.pkg.mk" |
--- pkgsrc/devel/p5-Perl-Tidy/distinfo 2007/06/10 08:42:10 1.5
+++ pkgsrc/devel/p5-Perl-Tidy/distinfo 2008/12/18 23:22:21 1.6
| @@ -1,5 +1,5 @@ | | | @@ -1,5 +1,5 @@ |
1 | $NetBSD: distinfo,v 1.5 2007/06/10 08:42:10 obache Exp $ | | 1 | $NetBSD: distinfo,v 1.6 2008/12/18 23:22:21 he Exp $ |
2 | | | 2 | |
3 | SHA1 (Perl-Tidy-20070508.tar.gz) = 9bbea2181e8dcf69744eca20bf5b7254de5c55e6 | | 3 | SHA1 (Perl-Tidy-20071205.tar.gz) = 833c30e436e1a1d091ccc518696843a28a284ae7 |
4 | RMD160 (Perl-Tidy-20070508.tar.gz) = 138b36b097cf6a4c669f1e9d92a9659a0e651f5e | | 4 | RMD160 (Perl-Tidy-20071205.tar.gz) = cb82efeae11d71b9651b5d315617ea3c48958843 |
5 | Size (Perl-Tidy-20070508.tar.gz) = 363515 bytes | | 5 | Size (Perl-Tidy-20071205.tar.gz) = 376719 bytes |