File: Build.PL

package info (click to toggle)
libdata-util-perl 0.66-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 564 kB
  • ctags: 164
  • sloc: perl: 2,958; ansic: 416; makefile: 8
file content (82 lines) | stat: -rw-r--r-- 1,926 bytes parent folder | download | duplicates (2)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# =========================================================================
# THIS FILE IS AUTOMATICALLY GENERATED BY MINILLA.
# DO NOT EDIT DIRECTLY.
# =========================================================================

use 5.008_001;

use strict;
use warnings;
use utf8;

use Module::Build::XSUtil;
use File::Basename;
use File::Spec;

my %args = (
    license              => 'perl_5',
    dynamic_config       => 0,

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

    requires => {
        'XSLoader' => '0.02',
        'perl' => '5.010',
    },

    recommends => {
    },

    suggests => {
    },

    build_requires => {
        'Devel::PPPort' => '3.19',
        'ExtUtils::MakeMaker' => '6.59',
        'ExtUtils::ParseXS' => '3.18',
        'Hash::Util::FieldHash::Compat' => '0',
        'Scope::Guard' => '0',
        'Test::Exception' => '0.27',
        'Test::More' => '0.62',
    },

    test_requires => {
    },

    name            => 'Data-Util',
    module_name     => 'Data::Util',
    allow_pureperl => 1,

    script_files => [glob('script/*'), glob('bin/*')],
    c_source     => [qw(xs-src)],
    PL_files => {},

    test_files           => ((-d '.git' || $ENV{RELEASE_TESTING}) && -d 'xt') ? 't/ xt/' : 't/',
    recursive_test_files => 1,


    needs_compiler_c99 => 1,
    needs_compiler_cpp => 0,
    generate_ppport_h => 'xs-src/ppport.h',
    generate_xshelper_h => 'xs-src/xshelper.h',
    cc_warnings => 0,
);
if (-d 'share') {
    $args{share_dir} = 'share';
}

my $builder = Module::Build::XSUtil->subclass(
    class => 'MyBuilder',
    code => q{
        sub ACTION_distmeta {
            die "Do not run distmeta. Install Minilla and `minil install` instead.\n";
        }
        sub ACTION_installdeps {
            die "Do not run installdeps. Run `cpanm --installdeps .` instead.\n";
        }
    }
)->new(%args);
$builder->create_build_script();