|
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; |
5 | 2 |
|
6 | | -require 5.004; |
7 | | -use strict; |
8 | | -use ExtUtils::MakeMaker; |
| 3 | +use 5.010; |
9 | 4 |
|
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; |
19 | 6 |
|
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; |
23 | 8 |
|
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 => { |
26 | 17 | resources => { |
27 | 18 | license => 'https://opensource.org/licenses/artistic-license-2.0', |
28 | 19 | homepage => 'https://github.com/petdance/html-tagset', |
29 | 20 | bugtracker => 'https://github.com/petdance/html-tagset/issues', |
30 | 21 | repository => 'https://github.com/petdance/html-tagset', |
31 | 22 | } |
32 | | - }; |
33 | | -} |
| 23 | + }, |
| 24 | + dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, |
| 25 | + clean => { FILES => 'HTML-Tagset-*' }, |
| 26 | +); |
34 | 27 |
|
35 | | -WriteMakefile( %{$parms} ); |
| 28 | +WriteMakefile( %parms ); |
0 commit comments