File: Makefile.PL

package info (click to toggle)
libunicode-collate-perl 1.27-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,396 kB
  • sloc: perl: 28,241; makefile: 3
file content (31 lines) | stat: -rw-r--r-- 997 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
require 5.006001;
use ExtUtils::MakeMaker;

my $clean = {};

if (-f "Collate.xs") {
    print "Making header files for XS...\n";
    # Should $mkh be File::Spec->catfile(File::Spec->curdir(), 'mkheader') ?
    my $mkh = './mkheader';
    do $mkh or die $@ || "mkheader: $!";
    $clean = { FILES => 'ucatbl.h' };
}

WriteMakefile(
    'AUTHOR'            => 'SADAHIRO Tomoyuki <SADAHIRO@cpan.org>',
    'ABSTRACT'          => 'Unicode Collation Algorithm',
    'INSTALLDIRS'       => ($] >= 5.007002 && $] < 5.011) ? 'perl' : 'site',
                            # see perl5110delta, @INC reorganization
    'LICENSE'           => 'perl',
    'NAME'              => 'Unicode::Collate',
    'VERSION_FROM'      => 'Collate.pm', # finds $VERSION
    'clean'             => $clean,
    'PREREQ_PM'         => {
        Carp            => 0,
        File::Spec      => 0,
        XSLoader        => 0,
        constant        => 0,
        strict          => 0,
        warnings        => 0,
    },
);