Skip to content

Commit

Permalink
Modernizing Makefile.PL and other infrastructure.
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Mar 9, 2024
1 parent e78197d commit 2ad51bb
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 46 deletions.
7 changes: 7 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
Revision history for Perl extension HTML::Tagset

NEXT

* Release 3.22

HTML::Tagset now requires Perl 5.10.1. It might run on earlier
Perls but I don't have the infrastructure to test them.

2008-02-29 Andy Lester

* Release 3.20 -- Added <div> to the list of p_closure_barriers.
Expand Down
2 changes: 0 additions & 2 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ Changes
lib/HTML/Tagset.pm
Makefile.PL
MANIFEST
MANIFEST.SKIP
README.md
t/00_about_verbose.t
t/01_old_junk.t
t/pod.t
META.yml Module meta-data (added by MakeMaker)
7 changes: 0 additions & 7 deletions MANIFEST.SKIP

This file was deleted.

13 changes: 0 additions & 13 deletions META.yml

This file was deleted.

41 changes: 17 additions & 24 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,35 +1,28 @@
# This -*-perl-*- program writes the Makefile for installing this distribution.
#
# See "perldoc perlmodinstall" or "perldoc ExtUtils::MakeMaker" for
# info on how to control how the installation goes.
package main;

require 5.004;
use strict;
use ExtUtils::MakeMaker;
use 5.010;

my $parms = {
NAME => 'HTML::Tagset',
AUTHOR => 'Andy Lester <andy@petdance.com>',
VERSION_FROM => 'lib/HTML/Tagset.pm',
ABSTRACT_FROM => 'lib/HTML/Tagset.pm',
PMLIBDIRS => [qw(lib/)],
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'HTML-Tagset-*' },
};
use strict;

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

if ( $ExtUtils::MakeMaker::VERSION ge '6.46' ) {
$parms->{META_MERGE} = {
my %parms = (
NAME => 'HTML::Tagset',
AUTHOR => 'Andy Lester <andy@petdance.com>',
ABSTRACT => 'Data tables useful in parsing HTML',
VERSION_FROM => 'lib/HTML/Tagset.pm',
LICENSE => 'artistic_2',
MIN_PERL_VERSION => 5.010001,
META_MERGE => {
resources => {
license => 'https://opensource.org/licenses/artistic-license-2.0',
homepage => 'https://github.com/petdance/html-tagset',
bugtracker => 'https://github.com/petdance/html-tagset/issues',
repository => 'https://github.com/petdance/html-tagset',
}
};
}
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'HTML-Tagset-*' },
);

WriteMakefile( %{$parms} );
WriteMakefile( %parms );

0 comments on commit 2ad51bb

Please sign in to comment.