forked from miyagawa/cpanminus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.PL
62 lines (50 loc) · 1.4 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
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.010.
use strict;
use warnings;
use 5.008001;
use ExtUtils::MakeMaker;
# perl Makefile.PL (from git repo) copies 'cpanm' -> 'bin/cpanm'
if (-e 'cpanm') {
for my $file ("bin/cpanm") {
print STDERR "Generating $file from cpanm\n";
open my $in, "<cpanm" or die $!;
open my $out, ">$file" or die $!;
while (<$in>) {
s|^#!/usr/bin/env perl|#!perl|; # so MakeMaker can fix it
print $out $_;
}
}
}
my %WriteMakefileArgs = (
"ABSTRACT" => "get, unpack, build and install modules from CPAN",
"AUTHOR" => "- Tatsuhiko Miyagawa",
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => 0
},
"DISTNAME" => "App-cpanminus",
"EXE_FILES" => [
"bin/cpanm"
],
"LICENSE" => "perl",
"MIN_PERL_VERSION" => "5.008001",
"NAME" => "App::cpanminus",
"PREREQ_PM" => {},
"TEST_REQUIRES" => {
"Test::More" => 0
},
"VERSION" => "1.7039.7",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
"Test::More" => 0
);
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);