File: Makefile.PL

package info (click to toggle)
libhtml-calendarmonth-perl 1.09-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 152 kB
  • ctags: 68
  • sloc: perl: 755; makefile: 38
file content (57 lines) | stat: -rw-r--r-- 1,372 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Check for non-standard modules used by this module.
use ExtUtils::MakeMaker;

$DISTNAME = "HTML-CalendarMonth";
$NAME = "HTML::CalendarMonth";

$| = 1;

print "Checking for Date::Calc or Date::Manip ... ";
eval {
    require Date::Calc;
};
if ($@) {
    eval {
        require Date::Manip;
    };
    if ($@) {
       print " failed\n";
       print <<EOT;
$@
Date::Calc or Date::Manip are only needed 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 either of these modules from CPAN:
    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;
    }
}
else {
    ++$found_date_mods;
}
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    => {
			       HTML::ElementTable => 0,
			      },
	      dist         => {
			       COMPRESS => 'gzip -9f',
			       SUFFIX => 'gz',
			      },
	     );