b235a9c294
## 2020 01 10 - This release adds a flag to control the feature RT#130394 (allow short nested blocks) introduced in the previous release. Unfortunately that feature breaks RPerl installations, so a control flag has been introduced and that feature is now off by default. The flag is: --one-line-block-nesting=n, or -olbn=n, where n is an integer as follows: -olbn=0 break nested one-line blocks into multiple lines [new DEFAULT] -olbn=1 stable; keep existing nested-one line blocks intact [previous DEFAULT] For example, consider this input line: foreach (@list) { if ($_ eq $asked_for) { last } ++$found } The new default behavior (-olbn=0), and behavior prior to version 20191203, is to break it into multiple lines: foreach (@list) { if ( $_ eq $asked_for ) { last } ++$found; } To keep nested one-line blocks such as this on a single line you can add the parameter -olbn=1. - Fixed issue RT#131288: parse error for un-prototyped constant function without parenthesized call parameters followed by ternary. - Fixed issue RT#131360, installation documentation. Added a note that the binary 'perltidy' comes with the Perl::Tidy module. They can both normally be installed with 'cpanm Perl::Tidy'
16 lines
439 B
Makefile
16 lines
439 B
Makefile
# $NetBSD: Makefile,v 1.41 2020/03/25 11:18:31 nia Exp $
|
|
|
|
DISTNAME= Perl-Tidy-20200110
|
|
PKGNAME= p5-${DISTNAME}
|
|
CATEGORIES= devel perl5
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Perl/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://metacpan.org/pod/Perl::Tidy
|
|
COMMENT= Parses and beautifies perl source
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
PERL5_PACKLIST= auto/Perl/Tidy/.packlist
|
|
|
|
.include "../../lang/perl5/module.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|