-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernizing Makefile.PL and other infrastructure.
- Loading branch information
Showing
5 changed files
with
24 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ); |