Commit | Line | Data |
9d172425 |
1 | use strict; |
2 | |
d0eafc11 |
3 | use ExtUtils::MakeMaker; |
9d172425 |
4 | { |
5 | no strict 'refs'; |
a8441e01 |
6 | |
9d172425 |
7 | my $libscan = \&{"ExtUtils::MM_Any::libscan"}; |
8 | *{"ExtUtils::MM_Any::libscan"} = sub { |
9 | return '' unless $libscan->(@_); |
10 | return '' if $_[1] =~ /\.swp$/; |
11 | return $_[1]; |
12 | }; |
13 | } |
a8441e01 |
14 | |
15 | my $prereqs = { |
dee1f239 |
16 | 'Test::More' => 0.01, |
a8441e01 |
17 | 'XML::Parser' => 0.01, |
37513eae |
18 | 'IO::Scalar' => 0.01, |
a8441e01 |
19 | 'File::Basename' => 0.01, |
d01e4722 |
20 | 'Spreadsheet::WriteExcel' => 0.42, |
21 | 'Spreadsheet::WriteExcel::Utility' => 0.01, |
a8441e01 |
22 | }; |
23 | |
b6bc5a5d |
24 | # The assumption is Perl 5.8.0 and greater doesn't need Unicode::String. |
25 | |
a8441e01 |
26 | if ($] < 5.008) |
27 | { |
8c63e224 |
28 | eval { require Unicode::String; }; |
29 | if ($@) |
a8441e01 |
30 | { |
8c63e224 |
31 | print "Note: If you want to work with Unicode, you will need to install"; |
32 | print "the optional module Unicode::String and set USE_UNICODE to true."; |
a8441e01 |
33 | } |
34 | } |
35 | |
d0eafc11 |
36 | WriteMakefile( |
37 | NAME => 'Excel::Template', |
38 | VERSION_FROM => 'lib/Excel/Template.pm', # finds $VERSION |
d0eafc11 |
39 | ABSTRACT => 'Excel::Template', |
a8441e01 |
40 | PREREQ_PM => $prereqs, |
9d172425 |
41 | ($] >= 5.005 ? |
42 | (ABSTRACT_FROM => 'lib/Excel/Template.pm', |
43 | AUTHOR => 'Rob Kinyon (rob.kinyon@gmail.com)') : ()), |
d0eafc11 |
44 | ); |