-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.PL
88 lines (77 loc) · 1.98 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
use strict;
use warnings;
use ExtUtils::MakeMaker;
my %WriteMakefileArgs = (
"ABSTRACT" => "Easy installation of the GSL library",
"AUTHOR" => "Joel A. Berger <joel.a.berger\@gmail.com>",
"BUILD_REQUIRES" => {
"Alien::Build" => "2.21",
"Alien::Build::MM" => "2.21",
"ExtUtils::MakeMaker" => "6.52"
},
"CONFIGURE_REQUIRES" => {
"Alien::Build" => "2.21",
"Alien::Build::MM" => "2.21",
"ExtUtils::MakeMaker" => "6.52"
},
"DISTNAME" => "Alien-GSL",
"LICENSE" => "perl",
"NAME" => "Alien::GSL",
"PREREQ_PM" => {
"Alien::Base" => "2.21",
},
"TEST_REQUIRES" => {
"ExtUtils::MakeMaker" => "6.52",
"Test2::V0" => 0,
"Test::Alien" => 0,
"Test::Alien::Diag" => 0,
},
"VERSION_FROM" => "lib/Alien/GSL.pm",
"test" => {
"TESTS" => "t/*.t"
},
META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
bugtracker => {
web => 'https://github.com/PerlAlien/Alien-GSL/issues',
},
homepage => 'https://metacpan.org/pod/Alien::GSL',
repository => {
type => 'git',
url => 'https://github.com/PerlAlien/Alien-GSL.git',
web => 'https://github.com/PerlAlien/Alien-GSL',
},
x_IRC => "irc://irc.perl.org/#native",
},
},
);
my %FallbackPrereqs = (
"Alien::Base" => "2.21",
"Alien::Build" => "2.21",
"Alien::Build::MM" => "2.21",
"ExtUtils::MakeMaker" => "6.52",
"File::Spec" => 0,
"Sort::Versions" => 0,
"Test::More" => 0
);
use Alien::Build::MM;
my $abmm = Alien::Build::MM->new;
%WriteMakefileArgs = $abmm->mm_args(%WriteMakefileArgs);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
WriteMakefile(%WriteMakefileArgs);
{ package
MY;
sub postamble {
$abmm->mm_postamble(@_);
}
sub install {
$abmm->can('mm_install')
? $abmm->mm_install(@_)
: shift->SUPER::install(@_);
}
}