Skip to content

Commit 2ad51bb

Browse files
committed
Modernizing Makefile.PL and other infrastructure.
1 parent e78197d commit 2ad51bb

File tree

5 files changed

+24
-46
lines changed

5 files changed

+24
-46
lines changed

Changes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
Revision history for Perl extension HTML::Tagset
22

3+
NEXT
4+
5+
* Release 3.22
6+
7+
HTML::Tagset now requires Perl 5.10.1. It might run on earlier
8+
Perls but I don't have the infrastructure to test them.
9+
310
2008-02-29 Andy Lester
411

512
* Release 3.20 -- Added <div> to the list of p_closure_barriers.

MANIFEST

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ Changes
22
lib/HTML/Tagset.pm
33
Makefile.PL
44
MANIFEST
5-
MANIFEST.SKIP
65
README.md
76
t/00_about_verbose.t
87
t/01_old_junk.t
98
t/pod.t
10-
META.yml Module meta-data (added by MakeMaker)

MANIFEST.SKIP

Lines changed: 0 additions & 7 deletions
This file was deleted.

META.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

Makefile.PL

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,28 @@
1-
# This -*-perl-*- program writes the Makefile for installing this distribution.
2-
#
3-
# See "perldoc perlmodinstall" or "perldoc ExtUtils::MakeMaker" for
4-
# info on how to control how the installation goes.
1+
package main;
52

6-
require 5.004;
7-
use strict;
8-
use ExtUtils::MakeMaker;
3+
use 5.010;
94

10-
my $parms = {
11-
NAME => 'HTML::Tagset',
12-
AUTHOR => 'Andy Lester <andy@petdance.com>',
13-
VERSION_FROM => 'lib/HTML/Tagset.pm',
14-
ABSTRACT_FROM => 'lib/HTML/Tagset.pm',
15-
PMLIBDIRS => [qw(lib/)],
16-
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
17-
clean => { FILES => 'HTML-Tagset-*' },
18-
};
5+
use strict;
196

20-
if ( $ExtUtils::MakeMaker::VERSION =~ /^\d\.\d\d$/ and $ExtUtils::MakeMaker::VERSION > 6.30 ) {
21-
$parms->{LICENSE} = 'artistic_2';
22-
}
7+
use ExtUtils::MakeMaker 7.00;
238

24-
if ( $ExtUtils::MakeMaker::VERSION ge '6.46' ) {
25-
$parms->{META_MERGE} = {
9+
my %parms = (
10+
NAME => 'HTML::Tagset',
11+
AUTHOR => 'Andy Lester <andy@petdance.com>',
12+
ABSTRACT => 'Data tables useful in parsing HTML',
13+
VERSION_FROM => 'lib/HTML/Tagset.pm',
14+
LICENSE => 'artistic_2',
15+
MIN_PERL_VERSION => 5.010001,
16+
META_MERGE => {
2617
resources => {
2718
license => 'https://opensource.org/licenses/artistic-license-2.0',
2819
homepage => 'https://github.com/petdance/html-tagset',
2920
bugtracker => 'https://github.com/petdance/html-tagset/issues',
3021
repository => 'https://github.com/petdance/html-tagset',
3122
}
32-
};
33-
}
23+
},
24+
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
25+
clean => { FILES => 'HTML-Tagset-*' },
26+
);
3427

35-
WriteMakefile( %{$parms} );
28+
WriteMakefile( %parms );

0 commit comments

Comments
 (0)