pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/p5-Perl-Tidy Update to 20211029



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c4d52efdc0b0
branches:  trunk
changeset: 769037:c4d52efdc0b0
user:      wen <wen%pkgsrc.org@localhost>
date:      Sun Nov 07 00:15:13 2021 +0000

description:
Update to 20211029

Upstream changes:
## 2021 10 29

    - No significant bugs have been found since the last release, but several
      minor issues have been fixed.  Vertical alignment has been improved for
      lists of call args which are not contained within parens (next item).

    - Vertical alignment of function calls without parens has been improved with
      the goal of making vertical alignment essentially the same with or
      without parens around the call args.  Some examples:

        # OLD
        mkTextConfig $c, $x, $y, -anchor => 'se', $color;
        mkTextConfig $c, $x + 30, $y, -anchor => 's',  $color;
        mkTextConfig $c, $x + 60, $y, -anchor => 'sw', $color;
        mkTextConfig $c, $x, $y + 30, -anchor => 'e', $color;

        # NEW
        mkTextConfig $c, $x,      $y,      -anchor => 'se', $color;
        mkTextConfig $c, $x + 30, $y,      -anchor => 's',  $color;
        mkTextConfig $c, $x + 60, $y,      -anchor => 'sw', $color;
        mkTextConfig $c, $x,      $y + 30, -anchor => 'e',  $color;

        # OLD
        is id_2obj($id), undef, "unregistered object not retrieved";
        is scalar keys %$ob_reg, 0, "object registry empty";
        is register($obj), $obj, "object returned by register";
        is scalar keys %$ob_reg, 1, "object registry nonempty";
        is id_2obj($id), $obj, "registered object retrieved";

        # NEW
        is id_2obj($id),         undef, "unregistered object not retrieved";
        is scalar keys %$ob_reg, 0,     "object registry empty";
        is register($obj),       $obj,  "object returned by register";
        is scalar keys %$ob_reg, 1,     "object registry nonempty";
        is id_2obj($id),         $obj,  "registered object retrieved";

      This will cause some changes in alignment, hopefully for the better,
      particularly in test code which often uses numerous parenless function
      calls with functions like 'ok', 'is', 'is_deeply', ....

    - Two new parameters were added to control the block types to which the
      -bl (--opening-brace-on-new-line) flag applies.  The new parameters are
      -block-left-list=s, or -bll=s, and --block-left-exclusion-list=s,
      or -blxl=s.  Previously the -bl flag was 'hardwired' to apply to
      nearly all blocks. The default values of the new parameters
      retain the the old default behavior but allow it to be changed.

    - The default behavior of the -bli (-brace-left-and-indent) flag has changed
      slightly.  Previously, if you set -bli, then the -bl flag would also
      automatically be set.  Consequently, block types which were not included
      in the default list for -bli would get -bl formatting.  This is no longer done,
      and these two styles are now controlled independently.  The manual describes
      the controls.  If you want to recover the exact previous default behavior of
      the -bli then add the -bl flag.

    - A partial fix was made for issue for git #74. The -lp formatting style was
      being lost when a one-line anonymous sub was followed by a closing brace.

    - Fixed issue git #73, in which the -nfpva flag was not working correctly.
      Some unwanted vertical alignments of spaced function perens
      were being made.

    - Updated the man pages to clarify the flags -valign and -novalign
      for turning vertical alignment on and off (issue git #72).
      Added parameters -vc -vsc -vbc for separately turning off vertical
      alignment of code, side comments and block comments.

    - Fixed issue git #68, where a blank line following a closing code-skipping
      comment, '#>>V', could be lost.

    - This version runs 10 to 15 percent faster on large files than the
      previous release due to optimizations made with the help of NYTProf.

    - This version of perltidy was stress-tested for many cpu hours with
      random input parameters. No instabilities,  internal fault checks,
      undefined variable references or other irregularities were seen.

    - Numerous minor fixes have been made, mostly very rare formatting instabilities
      found in random testing. An effort has been made to minimize changes to
      existing formatting that these fixes produce, but occasional changes
      may occur. Many of these updates are listed at:

           https://github.com/perltidy/perltidy/blob/master/local-docs/BugLog.pod

diffstat:

 devel/p5-Perl-Tidy/Makefile |  4 ++--
 devel/p5-Perl-Tidy/distinfo |  8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (25 lines):

diff -r 87843ab37e2a -r c4d52efdc0b0 devel/p5-Perl-Tidy/Makefile
--- a/devel/p5-Perl-Tidy/Makefile       Sat Nov 06 23:58:52 2021 +0000
+++ b/devel/p5-Perl-Tidy/Makefile       Sun Nov 07 00:15:13 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.46 2021/08/20 23:58:06 wen Exp $
+# $NetBSD: Makefile,v 1.47 2021/11/07 00:15:13 wen Exp $
 
-DISTNAME=      Perl-Tidy-20210717
+DISTNAME=      Perl-Tidy-20211029
 PKGNAME=       p5-${DISTNAME}
 CATEGORIES=    devel perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=Perl/}
diff -r 87843ab37e2a -r c4d52efdc0b0 devel/p5-Perl-Tidy/distinfo
--- a/devel/p5-Perl-Tidy/distinfo       Sat Nov 06 23:58:52 2021 +0000
+++ b/devel/p5-Perl-Tidy/distinfo       Sun Nov 07 00:15:13 2021 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.29 2021/10/26 10:17:19 nia Exp $
+$NetBSD: distinfo,v 1.30 2021/11/07 00:15:13 wen Exp $
 
-BLAKE2s (Perl-Tidy-20210717.tar.gz) = e38cdb07b0c5de8921f2533c57590782ff51dd6a92f5b8c0fa206929dd4e425f
-SHA512 (Perl-Tidy-20210717.tar.gz) = ccc090cb6ffbd803fbaddde3a99391bd07a97fb47d20515c3f3e58c69a1404824a5bb9aa3cbfea6b2119f7140552fde3bc2361d3ea8904a875973817446578b1
-Size (Perl-Tidy-20210717.tar.gz) = 814449 bytes
+BLAKE2s (Perl-Tidy-20211029.tar.gz) = 4054255d5600a9dcb64c85f2274d22c469ae7c1cc52dbe9bce7ae27def19b7ca
+SHA512 (Perl-Tidy-20211029.tar.gz) = a164a986b840be19090ed661b94179dfb1acf36ac95e30e886fc28f93fa0a418d83c99cec7ee7443b2bf276fe517018df53847b2045490cc8dfb0640d702d8ba
+Size (Perl-Tidy-20211029.tar.gz) = 850004 bytes



Home | Main Index | Thread Index | Old Index