File: Build.PL

package info (click to toggle)
libparams-validate-perl 1.29-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 996 kB
  • ctags: 879
  • sloc: perl: 2,362; makefile: 3
file content (92 lines) | stat: -rw-r--r-- 1,974 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
83
84
85
86
87
88
89
90
91
92

# This file was automatically generated by inc::MyModuleBuild v(dev).
use strict;
use warnings;

use Module::Build 0.28;


my %module_build_args = (
  "build_requires" => {
    "Module::Build" => "0.28"
  },
  "c_source" => "c",
  "configure_requires" => {
    "Module::Build" => "0.28"
  },
  "dist_abstract" => "Validate method/function parameters",
  "dist_author" => [
    "Dave Rolsky <autarch\@urth.org>",
    "Ilya Martynov <ilya\@martynov.org>"
  ],
  "dist_name" => "Params-Validate",
  "dist_version" => "1.29",
  "license" => "artistic_2",
  "module_name" => "Params::Validate",
  "recursive_test_files" => 1,
  "requires" => {
    "Carp" => 0,
    "Exporter" => 0,
    "Module::Implementation" => 0,
    "Scalar::Util" => "1.10",
    "XSLoader" => 0,
    "perl" => "5.008001",
    "strict" => 0,
    "vars" => 0,
    "warnings" => 0
  },
  "test_requires" => {
    "Devel::Peek" => 0,
    "ExtUtils::MakeMaker" => 0,
    "File::Spec" => 0,
    "File::Temp" => 0,
    "Test::Fatal" => 0,
    "Test::More" => "0.96",
    "Test::Requires" => 0,
    "Tie::Array" => 0,
    "Tie::Hash" => 0,
    "base" => 0,
    "lib" => 0,
    "overload" => 0
  }
);


my %fallback_build_requires = (
  "Devel::Peek" => 0,
  "ExtUtils::MakeMaker" => 0,
  "File::Spec" => 0,
  "File::Temp" => 0,
  "Module::Build" => "0.28",
  "Test::Fatal" => 0,
  "Test::More" => "0.96",
  "Test::Requires" => 0,
  "Tie::Array" => 0,
  "Tie::Hash" => 0,
  "base" => 0,
  "lib" => 0,
  "overload" => 0
);


unless ( eval { Module::Build->VERSION(0.4004) } ) {
  delete $module_build_args{test_requires};
  $module_build_args{build_requires} = \%fallback_build_requires;
}

my $build = Module::Build->new(%module_build_args);


my $skip_xs;
if ( grep { $_ eq '--pp' } @ARGV ) {
    $skip_xs = 1;
}
elsif ( ! $build->have_c_compiler() ) {
    $skip_xs = 1;
}

if ($skip_xs) {
    $build->build_elements(
        [ grep { $_ ne 'xs' } @{ $build->build_elements() } ] );
}
$build->create_build_script;