]> git.donarmstrong.com Git - deb_pkgs/libhtml-calendarmonth-perl.git/blobdiff - Makefile.PL
switch to 3.0 quilt format
[deb_pkgs/libhtml-calendarmonth-perl.git] / Makefile.PL
index 0d0efd3a1aae34a439bcaf0d9f2d9e0b25766a91..a31e06a9c2130122769332936bda9c0baa713796 100644 (file)
@@ -1,53 +1,18 @@
-# Check for non-standard modules used by this module.
-use ExtUtils::MakeMaker;
-
-$DISTNAME = "HTML-CalendarMonth";
-$NAME = "HTML::CalendarMonth";
-
-$| = 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).
-
-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;
-}
-print " ok\n" if $found_date_mods;
-
-# Time to make a makefile
+use strict;
+use warnings;
 
 use ExtUtils::MakeMaker;
 
-# See lib/ExtUtils/MakeMaker.pm for details of how to influence
-# the contents of the Makefile that is written.
+my %prereq_pm = (
+    "Class::Accessor"    => 0,
+    "DateTime::Locale"   => "0.45",
+    "File::Which"        => 0,
+    "HTML::ElementTable" => "1.18",
+    "Time::Local"        => 0,
+);
+
 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',
-                              },
-             );
+  NAME         => 'HTML-CalendarMonth',
+  VERSION_FROM => 'lib/HTML/CalendarMonth.pm',
+  PREREQ_PM    => \%prereq_pm,
+);