File: Build.PL

package info (click to toggle)
libdatetime-timezone-perl 1%3A0.77.01-1%2B2008c
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 4,208 kB
  • ctags: 2,636
  • sloc: perl: 3,691; sh: 56
file content (45 lines) | stat: -rw-r--r-- 1,326 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
use 5.006;

use strict;
use warnings;

use Module::Build;
use File::Spec;

unless ( -e File::Spec->catfile( qw( lib DateTime TimeZone America Chicago.pm ) ) )
{
    warn <<'EOF';

It looks like you haven't run tools/parse_olson to generate the time
zone modules yet.

This script needs the Olson database files to run, which can be found
at ftp://elsie.nci.nih.gov/pub/ in a file called tzdata*.tar.gz.

Once you've run this script you will be able to test and install this
distribution.

EOF

    exit;
}

my %requires = ( 'Class::Singleton' => 1.03,
                 'Cwd'              => 3,
                 'Params::Validate' => 0.72,
                 'Pod::Man'         => 1.14,
               );

my %IsWin32 = map { $_ => 1 } qw( MSWin32 NetWare symbian );
$requires{'Win32::TieRegistry'} = 0
    if $IsWin32{ $^O };

Module::Build->new( module_name        => 'DateTime::TimeZone',
                    dist_author        => 'Dave Rolsky <autarch@urth.org>',
                    license            => 'perl',
                    requires           => \%requires,
                    build_requires     => { 'Module::Build' => 0 },
                    sign               => 1,
                    create_makefile_pl => 'traditional',
                    create_readme      => 1,
                  )->create_build_script;