File: Build.PL

package info (click to toggle)
libdatetime-timezone-perl 1:1.20-1+2010k
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,508 kB
  • ctags: 2,667
  • sloc: perl: 2,340; sh: 68; makefile: 5
file content (62 lines) | stat: -rw-r--r-- 1,581 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
60
61
62
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};

$requires{'DateTime::TimeZone::HPUX'} = '0'
    if $^O eq 'hpux';

Module::Build->new(
    module_name    => 'DateTime::TimeZone',
    dist_author    => 'Dave Rolsky <autarch@urth.org>',
    license        => 'perl',
    requires       => \%requires,
    build_requires => {
        'Module::Build' => '0',
        'Test::More'    => '0.88',
    },
    sign               => 1,
    create_makefile_pl => 'traditional',
    create_readme      => 1,
    dynamic_config     => 1,
    meta_merge         => {
        resources => {
            homepage => 'http://datetime.perl.org/',
            bugtracker =>
                'http://rt.cpan.org/NoAuth/Bugs.html?Dist=DateTime-TimeZone',
            repository => 'http://hg.urth.org/hg/DateTime-TimeZone',
        },
    },
)->create_build_script;