Makefile.PL (Mail-Mbox-MessageParser-1.5110) | : | Makefile.PL (Mail-Mbox-MessageParser-1.5111) | ||
---|---|---|---|---|
#!/usr/bin/perl | #!/usr/bin/perl | |||
use strict; | use strict; | |||
# For PRIVATE Module::Install extensions | # For PRIVATE Module::Install extensions | |||
use lib 'private-lib'; | use lib 'private-lib'; | |||
use lib '.'; | use lib '.'; | |||
use inc::Module::Install; | use inc::Module::Install; | |||
use Module::Install::GetProgramLocations; | use Module::Install::GetProgramLocations; | |||
use File::Slurper; | ||||
BEGIN { | BEGIN { | |||
my $commands = q{$(CP) t/mailboxes/*\\ * $(DISTVNAME)/t/mailboxes; $(CP) t/res ults/*\\ * $(DISTVNAME)/t/results}; | my $commands = q{$(CP) t/mailboxes/*\\ * $(DISTVNAME)/t/mailboxes; $(CP) t/res ults/*\\ * $(DISTVNAME)/t/results}; | |||
makemaker_args( | makemaker_args( | |||
# To prevent MakeMaker from processing our old directory | # To prevent MakeMaker from processing our old directory | |||
NORECURS => 1, | NORECURS => 1, | |||
# Copy files that have spaces in them. | # Copy files that have spaces in them. | |||
dist => { PREOP => q{$(PERL) -I. "-MModule::Install::Admin" -e "dist_preop(q ($(DISTVNAME)))"; } . $commands }, | dist => { PREOP => q{$(PERL) -I. "-MModule::Install::Admin" -e "dist_preop(q ($(DISTVNAME)))"; } . $commands }, | |||
) | ) | |||
} | } | |||
all_from('lib/Mail/Mbox/MessageParser.pm'); | all_from('lib/Mail/Mbox/MessageParser.pm'); | |||
auto_set_bugtracker; | auto_set_bugtracker; | |||
githubmeta; | githubmeta; | |||
# Perl 5.6 doesn't work with URI::Escape. We get an error about Exporter not exp | ||||
orting "import" | ||||
perl_version '5.008'; | ||||
configure_requires( | configure_requires( | |||
'File::Slurper' => 0, | ||||
# Module::Install::Bugtracker needs this | # Module::Install::Bugtracker needs this | |||
'URI::Escape' => 0, | 'URI::Escape' => 0, | |||
); | ); | |||
requires( | requires( | |||
'FileHandle::Unget' => 0, | 'FileHandle::Unget' => 0, | |||
'Storable' => 0, | 'Storable' => 0, | |||
); | ); | |||
test_requires( | test_requires( | |||
skipping to change at line 56 | skipping to change at line 57 | |||
); | ); | |||
check_optional('Benchmark::Timer' => '0.7100', | check_optional('Benchmark::Timer' => '0.7100', | |||
"Install Benchmark::Timer if you want to run \"make testspeed\"\n"); | "Install Benchmark::Timer if you want to run \"make testspeed\"\n"); | |||
Add_Test_Target('testspeed', 't/speed.pl'); | Add_Test_Target('testspeed', 't/speed.pl'); | |||
configure_programs(); | configure_programs(); | |||
license 'gpl2'; | license 'gpl2'; | |||
use_standard_tests; | ||||
auto_license(holder => 'David Coppit'); | auto_license(holder => 'David Coppit'); | |||
no_index 'directory' => 'private-lib'; | no_index 'directory' => 'private-lib'; | |||
enable_verbose_cpan_testing(); | enable_verbose_cpan_testing(); | |||
WriteAll(); | realclean_files('inc'); | |||
WriteAll; | ||||
# ---- Workaround for broken module ---- | # ---- Workaround for broken module ---- | |||
# https://rt.cpan.org/Ticket/Display.html?id=125772 | # https://rt.cpan.org/Ticket/Display.html?id=125772 | |||
{ | { | |||
package Module::Install::StandardTests; | package Module::Install::StandardTests; | |||
sub write_standard_test_compile { | sub write_standard_test_compile { | |||
my $self = shift; | my $self = shift; | |||
$self->write_test_file('000_standard__compile.t', q/ | $self->write_test_file('000_standard__compile.t', q/ | |||
BEGIN { | BEGIN { | |||
skipping to change at line 90 | skipping to change at line 96 | |||
eval "use Test::Compile"; | eval "use Test::Compile"; | |||
Test::More->builder->BAIL_OUT( | Test::More->builder->BAIL_OUT( | |||
"Test::Compile required for testing compilation") if $@; | "Test::Compile required for testing compilation") if $@; | |||
all_pm_files_ok(); | all_pm_files_ok(); | |||
} | } | |||
} | } | |||
/); | /); | |||
} | } | |||
} | } | |||
use_standard_tests; | ||||
fix_sort_versions('inc/Sort/Versions.pm'); | fix_sort_versions('inc/Sort/Versions.pm'); | |||
End of changes. 6 change blocks. | ||||
5 lines changed or deleted | 10 lines changed or added |