forked from jmcnamara/excel-writer-xlsx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
60 lines (50 loc) · 1.58 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
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/perl
use ExtUtils::MakeMaker;
use strict;
use warnings;
require 5.008002;
my %deps = (
'Archive::Zip' => 1.30,
'IO::File' => 1.14,
'File::Temp' => 0.19,
);
my %resources = (
homepage => 'http://github.com/jmcnamara/excel-writer-xlsx',
repository => 'http://github.com/jmcnamara/excel-writer-xlsx',
bugtracker => 'http://github.com/jmcnamara/excel-writer-xlsx/issues',
);
my %params = (
'AUTHOR' => 'John McNamara (jmcnamara@cpan.org)',
'ABSTRACT' => 'Create a new file in the Excel 2007+ XLSX format.',
'NAME' => 'Excel::Writer::XLSX',
'VERSION_FROM' => 'lib/Excel/Writer/XLSX.pm',
'NEEDS_LINKING' => 0,
'PREREQ_PM' => \%deps,
'EXE_FILES' => ['bin/extract_vba'],
'test' => { TESTS => 't/*/*.t t/*/*/*.t' },
'dist' => {
TAR => 'gtar',
COMPRESS => 'gzip --best',
SUFFIX => 'gz'
},
);
if ( $ExtUtils::MakeMaker::VERSION ge '6.46' ) {
$params{META_MERGE} = { resources => \%resources };
}
if ( $ExtUtils::MakeMaker::VERSION ge '6.30_01' ) {
$params{LICENSE} = 'perl';
}
WriteMakefile( %params );
###############################################################################
#
# Additional target for Excel::Writer::XLSX:
# mydocs: make the Examples.pm doc.
#
sub MY::postamble {
"mydocs:\n"
. "\tperl -Mlib=lib examples/gen_examples_pod.pl ./examples "
. "> lib/Excel/Writer/XLSX/Examples.pm\n\n"
. "tags:\n"
. "\trm -f TAGS\n"
. "\tetags lib/Excel/Writer/XLSX/*.pm lib/Excel/Writer/XLSX/Package/*.pm\n";
}