]> git.donarmstrong.com Git - deb_pkgs/libhtml-calendarmonth-perl.git/blobdiff - Makefile.PL
prepare to release 1.26
[deb_pkgs/libhtml-calendarmonth-perl.git] / Makefile.PL
index c293ba754543953e913bd644a4b1d31e59ef3437..a682cfc8dff4fdfb508b54e0971326378f4abd49 100644 (file)
@@ -1,55 +1,68 @@
-# 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 <<EOT;
-Could not locate DateTime, Date::Calc, or Date::Manip (don't worry).
 
-The presence of One of these modules is only required if you want to use
-week-of- year numbering, or if you plan on manipulating dates that
-exceed the ability of localtime() (Prior to Jan 1, 1970 or after 2038).
+use ExtUtils::MakeMaker 6.30;
 
-You can obtain any of these modules from CPAN:
-    http://search.cpan.org/search?dist=DateTime
-    http://search.cpan.org/search?dist=Date-Calc
-    http://search.cpan.org/search?dist=DateManip
 
-EOT
-  sleep(2);  # Don't hurry too much
-}
-else {
-  ++$found_date_mods;
+
+my %WriteMakefileArgs = (
+  "ABSTRACT" => "Generate and manipulate HTML calendar months",
+  "AUTHOR" => "Matthew P. Sisk <msisk\@cpan.org>",
+  "BUILD_REQUIRES" => {
+    "Cwd" => 0,
+    "English" => 0,
+    "Exporter" => 0,
+    "File::Spec" => 0,
+    "FindBin" => 0,
+    "Test::More" => 0,
+    "vars" => 0
+  },
+  "CONFIGURE_REQUIRES" => {
+    "ExtUtils::MakeMaker" => "6.30"
+  },
+  "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,
+    "base" => 0,
+    "constant" => 0,
+    "strict" => 0,
+    "warnings" => 0
+  },
+  "VERSION" => "1.26",
+  "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.15,
-                               DateTime::Locale   => 0,
-                               Class::Accessor    => 0,
-                               File::Spec         => 0,
-                              },
-              dist         => {
-                               COMPRESS => 'gzip -9f',
-                               SUFFIX => 'gz',
-                              },
-             );
+
+delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
+  unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
+
+WriteMakefile(%WriteMakefileArgs);
+
+
+