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 = { |
b6bc5a5d |
16 | 'Spreadsheet::WriteExcel' => 0.42, |
dee1f239 |
17 | 'Test::More' => 0.01, |
a8441e01 |
18 | 'XML::Parser' => 0.01, |
37513eae |
19 | 'IO::Scalar' => 0.01, |
a8441e01 |
20 | 'File::Basename' => 0.01, |
a8441e01 |
21 | }; |
22 | |
b6bc5a5d |
23 | # The assumption is Perl 5.8.0 and greater doesn't need Unicode::String. |
24 | |
a8441e01 |
25 | if ($] < 5.008) |
26 | { |
8c63e224 |
27 | eval { require Unicode::String; }; |
28 | if ($@) |
a8441e01 |
29 | { |
8c63e224 |
30 | print "Note: If you want to work with Unicode, you will need to install"; |
31 | print "the optional module Unicode::String and set USE_UNICODE to true."; |
a8441e01 |
32 | } |
33 | } |
34 | |
d0eafc11 |
35 | WriteMakefile( |
36 | NAME => 'Excel::Template', |
37 | VERSION_FROM => 'lib/Excel/Template.pm', # finds $VERSION |
d0eafc11 |
38 | ABSTRACT => 'Excel::Template', |
a8441e01 |
39 | PREREQ_PM => $prereqs, |
9d172425 |
40 | ($] >= 5.005 ? |
41 | (ABSTRACT_FROM => 'lib/Excel/Template.pm', |
42 | AUTHOR => 'Rob Kinyon (rob.kinyon@gmail.com)') : ()), |
d0eafc11 |
43 | ); |