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: wen
Date: Sun Nov 16 02:07:55 UTC 2025
Modified Files:
pkgsrc/devel/p5-Perl-Tidy: Makefile distinfo
Log Message:
Update to 20250912
Upstream changes:
## 2025 09 12
- Fix git #191, where a new check to escape whitespace in a qw() quote
in perl-5.43.2 caused Perl::Tidy to emit unwanted warning messages.
- A new output field for the --dump-block-summary command gives
the number of lines of comments and pod in a block. For subs and
anonymous subs, the existence of header comments is also indicated.
- Added --dump-nested-ternaries, --warn-nested-ternaries, and
--nested-ternary-maximum-depth=n. These can be used to locate
nested ternary statements in a script.
- For the --line-up-parentheses option, a line length tolerance was
adjusted by 1 character to help keep table formatting unchanged when
adding and deleting trailing commas. This can occasionally change
formatting of some small lists when formatted with -lp.
- In hash key lists which have side comments after sub blocks,
long lines which were previously broken before a comma may now
be broken after a previous '=>'. This change was made to
fix a very rare stability problem. For example:
OLD:
'+' => sub { $turtle->turn( $changes->{"dtheta"} ); }
, # Turn clockwise
NEW:
'+' =>
sub { $turtle->turn( $changes->{"dtheta"} ); }, # Turn clockwise
- Fixed undefined variable reference when --dump-block-summary was
run with --dump-block-types='package'. The dump was okay, but
an error message like the following was emitted:
Use of uninitialized value $seqno in hash element ...
- The parameter --integer-range-check no longer accepts a 0 value, which
allowed integer range checks to be skipped. This option was included
temporarily when new range-checking code was added to provide a
workaround in case problems arose with the new logic. No problems have
been encountered, so this has been removed.
## 2025 07 11
- Update for issue git #187: add vertical alignment of colons
used as attribute separators. These colons have token type 'A',
and this vertical alignment will be on by default (since all
vertical alignments occur by default). For example:
# old default
field $tile_size : param;
field $bar : reader : writer;
# new default with alignment of token type 'A'
field $tile_size : param;
field $bar : reader : writer;
This alignment can be turned off to recover the previous formatting
with --valign-exclusion-list='A', or -vxl='A'.
- Update for issue git #186: if a closing format skipping comment
'#>>>' is encountered before any '#<<<' is seen, then format
skipping is assumed to start with the first line of the file.
Use --nodetect-format-skipping-from-start or -ndfsfs to prevent
this check.
- Added option --code-skipping-from-start, or -csfs. This causes
code-skipping to begin from the start of a file even though there
is no starting marker comment, '#<<V'.
- Fixed a bug involving the --format-skipping option. If a line in
the skipped code had trailing blanks, then the newline at the end
of that line was lost.
- Added a check to insure that format skipping begin and end markers
strictly alternate along the lines of a file. If these markers
do not alternate, a warning occurs and formatting is skipped.
This is intended to help catch errors.
- For lists which contain here docs and which are formatted with
the --line-up-parentheses option, the formatting may in some
cases change to more closely follow the -lp style.
## 2025 06 16
- Added support for the assigning logical xor ^^= operator
- For input parameters which allow a paren type to be selected, the
selection 'f' (function call) now includes functions called with
a direct arrow before the paren, '->('. This was an oversight which
has been corrected.
- A new parameter --break-at-old-comma-types=s, or -boct=s, allows the
parameter --break-at-old-comma-breakpoints (-boc) to be limited to
selected container types. For example, -boc -boct='f(' means break
at old commas but only if they are function call lists.
- A new parameter --cuddled-paren-brace-weld, or -cpbw, has been added to
handle issue git #184. This modifies --cuddled-paren-brace by
preventing a paren and following brace from getting separated in
certain situations. The difference is illustrated here:
# perltidy -cpb alone has no effect for this short snippet:
if ( $Kouter_opening == $Kfirst
&& $has_tight_paren{$type_prev} )
{
$Kref = $Kprev;
}
# perltidy -cpb -cpbw keeps the closing paren next to the opening brace:
if (
$Kouter_opening == $Kfirst
&& $has_tight_paren{$type_prev}
) {
$Kref = $Kprev;
}
- The parameter --maximum-fields-per-table, or -mft, now accepts a string
input which can limit its application to certain containers. For
example, -mft='f(1' means that function call lists should be formatted
with just 1 item per line. It has no effect on other tables. The
manual has further information.
- Add option --break-open-compact-parens=s, discussed in git #78.
This changes the default formatting for lists which would normally
be displayed compactly on two lines. It causes them to be formatted
in the same way as long lists, with line breaks at the opening and
closing parentheses.
- Add option --skip-formatting-except-id=NAME, or -sfei=NAME, discussed
in git #183. This allows formatting to apply only to lines tagged
with #<<< id=NAME, where NAME is a user-defined tag. The special
variation -sfei='-' can be used to run perltidy with full checking
but without any formatting changes.
- A relatively rare problem with the formatting combination -xci and -lp or
-xlp has been fixed. Some lines had more leading spaces that intended.
- New option -m added to --dump-mismatched-returns and
--warn-mismatched-returns. This checks for multiple array
return sizes. A warning occurs when a sub has multiple returns
of finite lists with different counts greater than 1, and
not all of them are matched with calls.
- Improved support for Object::Pad, see git #182.
- A limitation on the treatment of lexical subs has been fixed. Previously,
a lexical sub with the same name as a quote operator would produce a warning,
and might cause a tokenization error.
- Here targets in quotes are now located and handled correctly.
To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 pkgsrc/devel/p5-Perl-Tidy/Makefile
cvs rdiff -u -r1.38 -r1.39 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.
Modified files:
Index: pkgsrc/devel/p5-Perl-Tidy/Makefile
diff -u pkgsrc/devel/p5-Perl-Tidy/Makefile:1.59 pkgsrc/devel/p5-Perl-Tidy/Makefile:1.60
--- pkgsrc/devel/p5-Perl-Tidy/Makefile:1.59 Fri Jul 4 08:46:27 2025
+++ pkgsrc/devel/p5-Perl-Tidy/Makefile Sun Nov 16 02:07:55 2025
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.59 2025/07/04 08:46:27 wiz Exp $
+# $NetBSD: Makefile,v 1.60 2025/11/16 02:07:55 wen Exp $
-DISTNAME= Perl-Tidy-20250311
+DISTNAME= Perl-Tidy-20250912
PKGNAME= p5-${DISTNAME}
-PKGREVISION= 1
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Perl/}
Index: pkgsrc/devel/p5-Perl-Tidy/distinfo
diff -u pkgsrc/devel/p5-Perl-Tidy/distinfo:1.38 pkgsrc/devel/p5-Perl-Tidy/distinfo:1.39
--- pkgsrc/devel/p5-Perl-Tidy/distinfo:1.38 Sat Apr 19 12:31:02 2025
+++ pkgsrc/devel/p5-Perl-Tidy/distinfo Sun Nov 16 02:07:55 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.38 2025/04/19 12:31:02 wen Exp $
+$NetBSD: distinfo,v 1.39 2025/11/16 02:07:55 wen Exp $
-BLAKE2s (Perl-Tidy-20250311.tar.gz) = d1a8546beba05063b04e02ca02668c97cdb7a538bf3bd3c17af2755bc5387283
-SHA512 (Perl-Tidy-20250311.tar.gz) = 684b6a8b56dbe9cdfa146acc13e37cf0c4ed50cf6e4ad617b82ef38d2177fc840e1152ee7e7bd701d155a770777702b429567782b2edeeac4ba133d3d6823db0
-Size (Perl-Tidy-20250311.tar.gz) = 1178345 bytes
+BLAKE2s (Perl-Tidy-20250912.tar.gz) = 9ec7484e772a84482e09b27673c07cfe5bf896cc0b6f6c102767b1b28e462725
+SHA512 (Perl-Tidy-20250912.tar.gz) = 8027051a4fda6c17b691fa452086745d437822c5b758292d7a777c4b9dae9a55e13b2c3005be750e241f88ab65c655f40bf92fffb92da46636f52a989953aa71
+Size (Perl-Tidy-20250912.tar.gz) = 1212139 bytes
Home |
Main Index |
Thread Index |
Old Index