Skip to content

Commit 0323ebf

Browse files
committed
Add a .perltidyrc to use going forward. Update the META info to point to this repo. Tidy the Makefile.PL
1 parent 46bef90 commit 0323ebf

File tree

3 files changed

+37
-25
lines changed

3 files changed

+37
-25
lines changed

.perltidyrc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-pbp # Start with Perl Best Practices
2+
-nst # undo -st from -pbp, to allow for command line use
3+
-w # Show all warnings
4+
-iob # Ignore old breakpoints
5+
-l=80 # 80 characters per line
6+
-mbl=2 # No more than 2 blank lines
7+
-i=4 # Indentation is 4 columns
8+
-ci=4 # Continuation indentation is 4 columns
9+
-vt=0 # Less vertical tightness
10+
-pt=2 # High parenthesis tightness
11+
-bt=2 # High brace tightness
12+
-sbt=2 # High square bracket tightness
13+
-isbc # Don't indent comments without leading space

Changes

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Change history for HTML-Parser
55
* Added a .mailmap file to organize contributions accurately.
66
* Ensure all versions are equal and on the current version
77
* Add the .mailmap to the MANIFEST
8+
* Change the META information to point to the new GH repository
9+
* Add a .perltidyrc to use going forward
810

911
2016-01-19 3.72
1012
* Avoid more clang casting warnings

Makefile.PL

+22-25
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,33 @@ use strict;
22
use ExtUtils::MakeMaker;
33

44
WriteMakefile(
5-
NAME => 'HTML::Parser',
6-
VERSION_FROM => 'Parser.pm',
5+
NAME => 'HTML::Parser',
6+
VERSION_FROM => 'Parser.pm',
77
ABSTRACT_FROM => 'Parser.pm',
8-
AUTHOR => 'Gisle Aas <[email protected]>',
9-
LICENSE => 'perl',
8+
AUTHOR => 'Gisle Aas <[email protected]>',
9+
LICENSE => 'perl',
1010

1111
MIN_PERL_VERSION => 5.008,
12-
PREREQ_PM => {
13-
'HTML::Tagset' => 3,
14-
'XSLoader' => 0,
15-
},
16-
META_MERGE => {
17-
build_requires => { 'Test::More' => 0 },
18-
recommends => { 'HTTP::Headers' => 0 },
19-
resources => {
20-
repository => 'http://github.com/gisle/html-parser',
21-
MailingList => 'mailto:[email protected]',
12+
PREREQ_PM => {'HTML::Tagset' => 3, 'XSLoader' => 0,},
13+
META_MERGE => {
14+
build_requires => {'Test::More' => 0},
15+
recommends => {'HTTP::Headers' => 0},
16+
resources => {
17+
repository => 'https://github.com/libwww-perl/HTML-Parser',
18+
MailingList => 'mailto:[email protected]',
2219
}
2320
},
2421

25-
DEFINE => "-DMARKED_SECTION",
26-
H => [ "hparser.h", "hctype.h", "tokenpos.h", "pfunc.h",
27-
"hparser.c", "util.c",
28-
],
29-
clean => { FILES => 'hctype.h pfunc.h' },
22+
DEFINE => "-DMARKED_SECTION",
23+
H => [
24+
"hparser.h", "hctype.h", "tokenpos.h", "pfunc.h",
25+
"hparser.c", "util.c",
26+
],
27+
clean => {FILES => 'hctype.h pfunc.h'},
3028
);
3129

3230

33-
sub MY::postamble
34-
{
31+
sub MY::postamble {
3532
'
3633
pfunc.h : mkpfunc
3734
$(PERLRUN) mkpfunc >pfunc.h
@@ -44,10 +41,10 @@ hctype.h : mkhctype
4441
BEGIN {
4542
# compatibility with older versions of MakeMaker
4643
my $developer = -f "MANIFEST.SKIP";
47-
my %mm_req = (
48-
LICENCE => 6.31,
49-
META_MERGE => 6.45,
50-
META_ADD => 6.45,
44+
my %mm_req = (
45+
LICENCE => 6.31,
46+
META_MERGE => 6.45,
47+
META_ADD => 6.45,
5148
MIN_PERL_VERSION => 6.48,
5249
);
5350
undef(*WriteMakefile);

0 commit comments

Comments
 (0)