File: Build.PL

package info (click to toggle)
libtime-y2038-perl 20100403-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 168 kB
  • sloc: ansic: 811; perl: 497; makefile: 4
file content (40 lines) | stat: -r--r--r-- 1,047 bytes parent folder | download | duplicates (5)
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
#!/usr/bin/perl -w

use Config;
unless( defined $Config{quadtype} and length $Config{quadtype} ) {
    warn "Time::y2038 needs \$Config{quadtype} set to work.\n";
    die "OS Unsupported\n";
}


use lib 'inc';
use Local::Module::Build;

my $build = Local::Module::Build->new(
    module_name         => 'Time::y2038',
    license             => 'perl',

    include_dirs        => ['y2038'],
    c_source            => 'y2038',

#    extra_compiler_flags => "-g -Wall -ansi -pedantic -Wno-long-long -Wextra -Wdeclaration-after-statement -Wendif-labels -Wconversion",

    build_requires      => {
        'Module::Build'         => '0.36',
        'Test::Warn'            => '0.11',
        'Test::Exception'       => '0.27',
        'Test::More'            => 0.82,
        'ExtUtils::CBuilder'    => 0.24,
        'JSON'                  => 2.17,
    },

    configure_requires => {
        'Module::Build'         => '0.36'
    },

    requires            => {
        perl                    => '5.6.1'
    },
);

$build->create_build_script;