File: Makefile.PL

package info (click to toggle)
libexcel-writer-xlsx-perl 1.09-1
  • links: PTS
  • area: main
  • in suites: bookworm, sid
  • size: 16,912 kB
  • sloc: perl: 21,564; makefile: 40
file content (59 lines) | stat: -rw-r--r-- 1,564 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
58
59
#!/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://jmcnamara.github.com/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,
    'dist'          => { COMPRESS => 'gzip --best', SUFFIX => 'gz' },
    'PREREQ_PM'     => \%deps,
    'EXE_FILES'     => ['bin/extract_vba'],
    'test'          => { TESTS => 't/*/*.t t/*/*/*.t' }

);

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 -Mblib 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"
}