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;
|