]> git.donarmstrong.com Git - deb_pkgs/libhtml-calendarmonth-perl.git/blob - Makefile.PL
c293ba754543953e913bd644a4b1d31e59ef3437
[deb_pkgs/libhtml-calendarmonth-perl.git] / Makefile.PL
1 # Check for non-standard modules used by this module.
2 use ExtUtils::MakeMaker;
3
4 $DISTNAME = "HTML-CalendarMonth";
5 $NAME = "HTML::CalendarMonth";
6
7 $| = 1;
8
9 print "Checking for DateTime, Date::Calc or Date::Manip ... ";
10 unless (eval "require DateTime"  ||
11         eval "require Date::Calc" ||
12         eval "require Date::Manip") {
13   print " failed\n";
14   print <<EOT;
15 Could not locate DateTime, Date::Calc, or Date::Manip (don't worry).
16
17 The presence of One of these modules is only required if you want to use
18 week-of- year numbering, or if you plan on manipulating dates that
19 exceed the ability of localtime() (Prior to Jan 1, 1970 or after 2038).
20
21 You can obtain any of these modules from CPAN:
22     http://search.cpan.org/search?dist=DateTime
23     http://search.cpan.org/search?dist=Date-Calc
24     http://search.cpan.org/search?dist=DateManip
25
26 EOT
27   sleep(2);  # Don't hurry too much
28 }
29 else {
30   ++$found_date_mods;
31 }
32 print " ok\n" if $found_date_mods;
33
34 # Time to make a makefile
35
36 use ExtUtils::MakeMaker;
37
38 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
39 # the contents of the Makefile that is written.
40 WriteMakefile(
41               DISTNAME     => $DISTNAME,
42               NAME         => $NAME,
43               VERSION_FROM => 'lib/HTML/CalendarMonth.pm',
44               PREREQ_PM    => {
45                                Time::Local        => 0,
46                                HTML::ElementTable => 1.15,
47                                DateTime::Locale   => 0,
48                                Class::Accessor    => 0,
49                                File::Spec         => 0,
50                               },
51               dist         => {
52                                COMPRESS => 'gzip -9f',
53                                SUFFIX => 'gz',
54                               },
55              );