Hi ports, 

Here is an update for perltidy. Our current port doesn't support new
features that our new Perl 5.28 has brought, like indented 
here-docs [1], generating poorly formatted source code.

It also means that currently some author tests results may be wrong,
it's often fairly harmless though.

What's new upstream (partial, see [2]): 

- licence marker was wrong, it's gpl_2
- support newer Perl version additions
- supporting modules have been split from Tidy.pm. 

What's new in the port:

- docs are now provided in HTML format
- changed our own licence marker to GPLv2 only

Testing: 

- 'make test' passes
- There is 1 direct consumer, devel/p5-Perl-Critic and it has no
  regressions.
- There are 466 other consumers depending on Perl::Critic as
  TEST_DEPENDS only, 287 have been tested (it has been halted
  by mistake), and nothing to report as well.


Comments/feedback are welcome!


Charlène.


[1] https://perldoc.perl.org/perl5260delta.html#Indented-Here-documents
[2] https://metacpan.org/changes/release/SHANCOCK/Perl-Tidy-20181120


Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/perltidy/Makefile,v
retrieving revision 1.21
diff -u -p -u -p -r1.21 Makefile
--- Makefile    25 May 2017 00:05:06 -0000      1.21
+++ Makefile    5 Mar 2019 17:25:04 -0000
@@ -2,7 +2,7 @@
 
 COMMENT =      tool to indent and reformat perl scripts
 
-V =            20170521
+V =            20181120
 DISTNAME =     Perl-Tidy-$V
 PKGNAME =      perltidy-$V
 CATEGORIES =   devel
@@ -11,14 +11,14 @@ MASTER_SITES =      ${MASTER_SITE_SOURCEFORGE
 
 HOMEPAGE =     http://perltidy.sourceforge.net/
 
-# GPLv2+
+# GPLv2
 PERMIT_PACKAGE_CDROM = Yes
 
 CONFIGURE_STYLE =      perl
 
 PKG_ARCH =     *
 
-DOCS =         tutorial.pod testfile.pl stylekey.pod
+DOCS =         tutorial.html stylekey.html
 
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/perltidy
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/perltidy/distinfo,v
retrieving revision 1.17
diff -u -p -u -p -r1.17 distinfo
--- distinfo    25 May 2017 00:05:06 -0000      1.17
+++ distinfo    5 Mar 2019 17:25:04 -0000
@@ -1,2 +1,2 @@
-SHA256 (Perl-Tidy-20170521.tar.gz) = 
AbPxeME6wkFUoO4qYtPOPynPzGsyewswIQlOADCepNo=
-SIZE (Perl-Tidy-20170521.tar.gz) = 432394
+SHA256 (Perl-Tidy-20181120.tar.gz) = 
fbDut2U1piy7Tmm2VY4HBRYtR2plSnpexHKqhGuMRWk=
+SIZE (Perl-Tidy-20181120.tar.gz) = 566087
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/perltidy/pkg/PLIST,v
retrieving revision 1.11
diff -u -p -u -p -r1.11 PLIST
--- pkg/PLIST   25 May 2017 00:05:06 -0000      1.11
+++ pkg/PLIST   5 Mar 2019 17:25:04 -0000
@@ -1,14 +1,33 @@
 @comment $OpenBSD: PLIST,v 1.11 2017/05/25 00:05:06 sthen Exp $
 bin/perltidy
 ${P5SITE}/Perl/
+${P5SITE}/Perl/Tidy/
 ${P5SITE}/Perl/Tidy.pm
 ${P5SITE}/Perl/Tidy.pod
+${P5SITE}/Perl/Tidy/Debugger.pm
+${P5SITE}/Perl/Tidy/DevNull.pm
+${P5SITE}/Perl/Tidy/Diagnostics.pm
+${P5SITE}/Perl/Tidy/FileWriter.pm
+${P5SITE}/Perl/Tidy/Formatter.pm
+${P5SITE}/Perl/Tidy/HtmlWriter.pm
+${P5SITE}/Perl/Tidy/IOScalar.pm
+${P5SITE}/Perl/Tidy/IOScalarArray.pm
+${P5SITE}/Perl/Tidy/IndentationItem.pm
+${P5SITE}/Perl/Tidy/LineBuffer.pm
+${P5SITE}/Perl/Tidy/LineSink.pm
+${P5SITE}/Perl/Tidy/LineSource.pm
+${P5SITE}/Perl/Tidy/Logger.pm
+${P5SITE}/Perl/Tidy/Tokenizer.pm
+${P5SITE}/Perl/Tidy/VerticalAligner/
+${P5SITE}/Perl/Tidy/VerticalAligner.pm
+${P5SITE}/Perl/Tidy/VerticalAligner/Alignment.pm
+${P5SITE}/Perl/Tidy/VerticalAligner/Line.pm
 @man man/man1/perltidy.1
 @man man/man3p/Perl::Tidy.3p
+@man man/man3p/Perl::Tidy::Formatter.3p
 share/doc/perltidy/
-share/doc/perltidy/stylekey.pod
-share/doc/perltidy/testfile.pl
-share/doc/perltidy/tutorial.pod
+share/doc/perltidy/stylekey.html
+share/doc/perltidy/tutorial.html
 share/examples/perltidy/
 share/examples/perltidy/README
 share/examples/perltidy/bbtidy.pl

Reply via email to