File: Makefile.PL

package info (click to toggle)
libtime-moment-perl 0.41-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,024 kB
  • ctags: 1,354
  • sloc: perl: 6,312; ansic: 2,936; makefile: 3
file content (53 lines) | stat: -rw-r--r-- 1,367 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
use strict;
use warnings;

BEGIN {
    unshift @INC, 'inc';

    my @required = (
        'inc::Module::Install'           => '1.00',
        'Module::Install::XSUtil'        => '0.36',
        'Module::Install::ReadmeFromPod' => '0',
    );

    my @missing;
    while(my($module, $version) = splice(@required, 0, 2)) {
        eval qq{use $module $version (); 1}
          or push @missing, $module;
    }

    if(@missing) {
        print qq{# The following modules are not available.\n};
        print qq{# `perl $0 | cpanm` will install them:\n};
        s/\A inc:: //x for @missing;
        print $_, "\n" for @missing;
        exit 1;
     }
}

use inc::Module::Install;

name           'Time-Moment';
perl_version   '5.008001';
all_from       'lib/Time/Moment.pm';
repository     'https://github.com/chansen/p5-time-moment';
bugtracker     'https://github.com/chansen/p5-time-moment/issues';
readme_from    'lib/Time/Moment.pod';

requires       'Carp'                => '0';
requires       'XSLoader'            => '0';
requires       'Time::HiRes'         => '0';

test_requires  'Test::More'          => '0.88';
test_requires  'Test::Fatal'         => '0.006';
test_requires  'Test::Requires'      => '0';
test_requires  'Test::Number::Delta' => '1.06';

cc_warnings;
cc_include_paths 'src';
cc_src_paths     '.';

ppport;
requires_external_cc;

WriteAll;