-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile.PL
108 lines (93 loc) · 4.13 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
108
use strict;
use warnings;
# NOTE: Module::Install's Makefile.PL needs this "use lib 'lib'" to
# bootstrap itself. Other module distributions using Module::Install
# do not need it. It causes inc::Module::Install to load from the
# (unique to this distribution) file ./lib/inc/Module/Install.pm instead
# of the system inc::Module::Install or the bundled ./inc/Module/Install.pm
use lib 'lib';
use inc::Module::Install;
name 'Module-Install';
author 'Adam Kennedy <[email protected]>';
perl_version '5.006';
all_from 'lib/Module/Install.pm';
requires 'Devel::PPPort' => '3.16';
requires 'ExtUtils::Install' => '1.52';
requires 'ExtUtils::MakeMaker' => '6.59';
requires 'ExtUtils::ParseXS' => '2.19';
requires 'File::Path' => 0; #needs version
requires 'File::Remove' => '1.42';
requires 'File::Spec' => '3.28';
requires 'Module::Build' => '0.29';
requires 'Module::CoreList' => '2.17';
requires 'Module::ScanDeps' => '1.09'; #detects prereqs better
requires 'Parse::CPAN::Meta' => '1.4413';
requires 'Win32::UTCFileTime' => '1.56' if win32;
requires 'YAML::Tiny' => '1.38';
test_requires 'Test::Harness' => '3.13';
test_requires 'Test::More' => '0.86';
test_requires 'autodie' => '0';
recommends 'Archive::Zip' => '1.37';
recommends 'File::HomeDir' => '1';
recommends 'JSON' => '2.9';
recommends 'LWP::Simple' => '6.00';
recommends 'LWP::UserAgent' => '6.05';
recommends 'PAR::Dist' => '0.29';
# Remove some extra test files
clean_files( qw{ t/Foo } );
# Test configure_requires support (also needed by WriteMyMeta)
configure_requires 'YAML::Tiny' => '1.33';
# Makes the recursive test script run
# (to test recursive test support)
tests_recursive;
# This is a normal CPAN module
install_as_cpan;
# Normally this shouldn't be done in here, it should be done
# by release automation. This is mostly for testing reasons.
repository 'https://github.com/Perl-Toolchain-Gang/Module-Install.git';
# All of our dependencies are the same on all platforms
dynamic_config 0;
add_metadata x_contributors => [ # manually added, from git shortlog -e -s -n
'Adam Kennedy <[email protected]>',
'Kenichi Ishigaki <[email protected]>',
'Alexandr Ciornii <[email protected]>',
'Chris \'BinGOs\' Williams <[email protected]>',
'Karen Etheridge <[email protected]>',
'Paul Fenwick <[email protected]>',
'bowtie <[email protected]>',
'Matt S Trout <[email protected]>',
'Dan Book <[email protected]>',
'Alberto Simoes <[email protected]>',
'Christian Walde <[email protected]>',
'Ricardo Signes <[email protected]>',
'Ingy <[email protected]>', # 'Ingy döt Net <[email protected]>',
'Hans Dieter Pearcey <[email protected]>',
'Avar Arnfjord Bjarmason <[email protected]>', # 'Ævar Arnfjörð Bjarmason <[email protected]>',
'Curtis Jewell <[email protected]>',
'Graham Knop <[email protected]>',
'Olivier Mengue <[email protected]>', # 'Olivier Mengué <[email protected]>',
'Rafael Kitover <[email protected]>',
'gregor herrmann <[email protected]>',
'Alex Vandiver <[email protected]>',
'Ash Berlin <[email protected]>',
'Craig A. Berry <[email protected]>',
'Dan Brook <[email protected]>',
'David Golden <[email protected]>',
'Gabor Szabo <[email protected]>',
'Graham Ollis <[email protected]>',
'Joshua ben Jore <[email protected]>',
'Kang-min Liu <[email protected]>',
'Kent Fredric <[email protected]>',
'Leo Lapworth <[email protected]>',
'Marcel Grunauer <[email protected]>', # 'Marcel Grünauer <[email protected]>',
'Peter Rabbitson <[email protected]>',
'Thomas Sibley <[email protected]>',
'Tokuhiro Matsuno <[email protected]>',
'Tom Wyant <[email protected]>',
];
add_metadata x_deprecated => 1;
WriteAll;
my $readme_from = 'lib/Module/Install.pod';
# pod2text is in https://metacpan.org/release/podlators
system("pod2text $readme_from > README")
if -f '.gitignore' and (not -e 'README' or (stat('README'))[9] < (stat($readme_from))[9]);