-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
108 lines (94 loc) · 2.3 KB
/
Makefile.PL
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.030.
use strict;
use warnings;
use 5.020000;
use ExtUtils::MakeMaker;
my %WriteMakefileArgs = (
"ABSTRACT" => "FFI binding for C libyaml",
"AUTHOR" => "Tina M\x{fc}ller <tinita\@cpan.org>",
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => 0,
"FFI::Build::MM" => "0.83"
},
"DISTNAME" => "LibYAML-FFI",
"LICENSE" => "mit",
"MIN_PERL_VERSION" => "5.020000",
"NAME" => "LibYAML::FFI",
"PREREQ_PM" => {
"Exporter" => 0,
"FFI::C" => 0,
"FFI::Platypus" => "2.00",
"YAML::PP" => 0,
"YAML::PP::Common" => 0,
"YAML::PP::Parser" => 0,
"base" => 0,
"experimental" => 0,
"overload" => 0,
"strict" => 0,
"warnings" => 0
},
"TEST_REQUIRES" => {
"File::Spec" => 0,
"FindBin" => 0,
"IO::Handle" => 0,
"IPC::Open3" => 0,
"Test2::V0" => 0,
"Test::More" => "0.98"
},
"VERSION" => "v0.0.1",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
"Exporter" => 0,
"FFI::C" => 0,
"FFI::Platypus" => "2.00",
"File::Spec" => 0,
"FindBin" => 0,
"IO::Handle" => 0,
"IPC::Open3" => 0,
"Test2::V0" => 0,
"Test::More" => "0.98",
"YAML::PP" => 0,
"YAML::PP::Common" => 0,
"YAML::PP::Parser" => 0,
"base" => 0,
"experimental" => 0,
"overload" => 0,
"strict" => 0,
"warnings" => 0
);
# BEGIN code inserted by Dist::Zilla::Plugin::FFI::Build
use FFI::Build::MM 0.83;
my $fbmm = FFI::Build::MM->new;
%WriteMakefileArgs = $fbmm->mm_args(%WriteMakefileArgs);
# END code inserted by Dist::Zilla::Plugin::FFI::Build
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
WriteMakefile(%WriteMakefileArgs);
# BEGIN code inserted by Dist::Zilla::Plugin::FFI::Build
BEGIN {
# append to any existing postamble.
if(my $old = MY->can('postamble'))
{
no warnings 'redefine';
*MY::postamble = sub {
$old->(@_) .
"\n" .
$fbmm->mm_postamble;
};
}
else
{
*MY::postamble = sub {
$fbmm->mm_postamble;
};
}
}
# END code inserted by Dist::Zilla::Plugin::FFI::Build