forked from jmcnamara/spreadsheet-writeexcel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
47 lines (39 loc) · 1.34 KB
/
Makefile.PL
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
#!/usr/bin/perl -w
use ExtUtils::MakeMaker;
use strict;
# perl >= 5.005 is required for qr() support in Parse::RecDescent.
# There are also some 4 arg substr()'s in WriteExcel.
#
require 5.005;
my %deps = (
'Parse::RecDescent' => 0,
'File::Temp' => 0,
'OLE::Storage_Lite' => 0.19,
);
my %resources = (
repository => 'http://github.com/jmcnamara/spreadsheet-writeexcel',
MailingList => 'http://groups.google.com/group/spreadsheet-writeexcel',
);
my %params = (
'AUTHOR' => 'John McNamara (jmcnamara@cpan.org)',
'ABSTRACT' => 'Write to a cross platform Excel binary file',
'NAME' => 'Spreadsheet::WriteExcel',
'VERSION_FROM' => 'lib/Spreadsheet/WriteExcel.pm',
'NEEDS_LINKING' => 0,
'dist' => { COMPRESS => 'gzip --best', SUFFIX => 'gz' },
'EXE_FILES' => ['bin/chartex'],
'LICENSE' => 'perl',
'PREREQ_PM' => \%deps,
);
if ( $ExtUtils::MakeMaker::VERSION ge '6.46' ) {
$params{META_MERGE} = { resources => \%resources };
}
WriteMakefile(%params);
sub MY::postamble {
"mydocs:\n"
. "\tperl examples/gen_examples_pod.pl examples "
. "> lib/Spreadsheet/WriteExcel/Examples.pm\n"
. "\tpod2cpanhtml lib/Spreadsheet/WriteExcel.pm "
. qq{ | perl -ne 'print unless /\\s+under Perl v[\\d.]+\\s/' }
. "> docs/WriteExcel.html";
}