-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile.PL
82 lines (73 loc) · 2.06 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
# This Makefile.PL for Pod-Usage was generated by
# Dist::Zilla::Plugin::MakeMaker::Awesome 0.48.
# Don't edit it but the dist.ini and plugins used to construct it.
use strict;
use warnings;
use ExtUtils::MakeMaker;
my %WriteMakefileArgs = (
"ABSTRACT" => "extracts POD documentation and shows usage information",
"AUTHOR" => "Marek Rouchal <marekr\@cpan.org>",
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => 0
},
"DISTNAME" => "Pod-Usage",
"LICENSE" => "perl",
"NAME" => "Pod::Usage",
"PREREQ_PM" => {
"Cwd" => 0,
"File::Basename" => 0,
"File::Spec" => "0.82",
"Pod::Perldoc" => "3.28",
"Pod::Simple" => "3.40",
"Pod::Text" => "4.00"
},
"TEST_REQUIRES" => {
"ExtUtils::MakeMaker" => 0,
"File::Spec" => "0.82",
"Test::More" => "0.60",
"blib" => 0
},
"VERSION" => "2.04",
"test" => {
"TESTS" => "t/*.t t/pod/*.t"
}
);
%WriteMakefileArgs = (
%WriteMakefileArgs,
EXE_FILES => MY::exe(),
PL_FILES => { MY::pod2usage() . '.PL', MY::pod2usage() },
INSTALLDIRS => ($] < 5.012 ? 'perl' : 'site'),
clean => { FILES => join( ' ', @{MY::exe()}) },
);
my %FallbackPrereqs = (
"Cwd" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Basename" => 0,
"File::Spec" => "0.82",
"Pod::Perldoc" => "3.28",
"Pod::Simple" => "3.40",
"Pod::Text" => "4.00",
"Test::More" => "0.60",
"blib" => 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);
# <custom footer>
package MY; use strict; use warnings;
use File::Spec ();
sub SCRIPTS { qw( pod2usage ) }
sub script { File::Spec->catfile ('scripts', @_) }
sub pod2usage { MY::exe()->[0] or die "pod2usage failed" }
sub exe {
if ( $^O eq 'VMS' ) {
return [ map { script("$_.com") } SCRIPTS() ];
}
return [ map { script($_) } SCRIPTS() ];
}
# </custom footer>