X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Makefile.PL;h=dbaf014ee391d54a57ce04023ccbb93245bd7244;hb=fa4cb58747381672d8367c541fa1cfc3d68e66de;hp=0d0efd3a1aae34a439bcaf0d9f2d9e0b25766a91;hpb=50065656489ae7e83457ab2c12b6d174186339d7;p=deb_pkgs%2Flibhtml-calendarmonth-perl.git diff --git a/Makefile.PL b/Makefile.PL index 0d0efd3..dbaf014 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,53 +1,65 @@ -# Check for non-standard modules used by this module. -use ExtUtils::MakeMaker; -$DISTNAME = "HTML-CalendarMonth"; -$NAME = "HTML::CalendarMonth"; +use strict; +use warnings; -$| = 1; -print "Checking for DateTime, Date::Calc or Date::Manip ... "; -unless (eval "require DateTime" || - eval "require Date::Calc" || - eval "require Date::Manip") { - print " failed\n"; - print < 'Generate and manipulate HTML calendar months', + 'AUTHOR' => 'Matthew P. Sisk ', + 'BUILD_REQUIRES' => { + 'Cwd' => '0', + 'English' => '0', + 'Exporter' => '0', + 'File::Spec' => '0', + 'FindBin' => '0', + 'Test::More' => '0', + 'vars' => '0' + }, + 'CONFIGURE_REQUIRES' => { + 'ExtUtils::MakeMaker' => '6.31' + }, + 'DISTNAME' => 'HTML-CalendarMonth', + 'EXE_FILES' => [], + 'LICENSE' => 'perl', + 'NAME' => 'HTML::CalendarMonth', + 'PREREQ_PM' => { + 'Carp' => '0', + 'Class::Accessor' => '0', + 'DateTime::Locale' => '0.45', + 'File::Which' => '0', + 'HTML::ElementTable' => '1.18', + 'Time::Local' => '0', + 'constant' => '0' + }, + 'VERSION' => '1.25', + 'test' => { + 'TESTS' => 't/*.t' + } +); + + +unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) { + my $br = delete $WriteMakefileArgs{BUILD_REQUIRES}; + my $pp = $WriteMakefileArgs{PREREQ_PM}; + for my $mod ( keys %$br ) { + if ( exists $pp->{$mod} ) { + $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod}; + } + else { + $pp->{$mod} = $br->{$mod}; + } + } } -print " ok\n" if $found_date_mods; - -# Time to make a makefile - -use ExtUtils::MakeMaker; - -# See lib/ExtUtils/MakeMaker.pm for details of how to influence -# the contents of the Makefile that is written. -WriteMakefile( - DISTNAME => $DISTNAME, - NAME => $NAME, - VERSION_FROM => 'lib/HTML/CalendarMonth.pm', - PREREQ_PM => { - Time::Local => 0, - HTML::ElementTable => 1.13, - DateTime::Locale => 0, - }, - dist => { - COMPRESS => 'gzip -9f', - SUFFIX => 'gz', - }, - ); + +delete $WriteMakefileArgs{CONFIGURE_REQUIRES} + unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; + +WriteMakefile(%WriteMakefileArgs); + + +