File: Makefile.PL

package info (click to toggle)
libunicode-utf8-perl 0.62-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 492 kB
  • sloc: perl: 2,365; sh: 6; makefile: 3
file content (52 lines) | stat: -rw-r--r-- 1,200 bytes parent folder | download | duplicates (3)
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
use lib '.';
use strict;

("\t" eq "\x09")
  or die("OS unsupported\n");

BEGIN {
    unshift @INC, 'inc';

    my @required = (
        'inc::Module::Install'           => '1.00',
        '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           'Unicode-UTF8';
perl_version   '5.008001';
all_from       'lib/Unicode/UTF8.pm';
repository     'http://github.com/chansen/p5-unicode-utf8';
readme_from    'lib/Unicode/UTF8.pod';

requires       'Carp'        => '0';
requires       'Exporter'    => '0';
requires       'XSLoader'    => '0';

test_requires  'Test::More'  => '0.47';
test_requires  'Test::Fatal' => '0.006';
test_requires  'Encode'      => '1.9801';
makemaker_args INC => '-I.';

tests 't/*.t t/*/*.t';

ppport;
requires_external_cc;

WriteAll;