-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.PL
113 lines (103 loc) · 4.38 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
109
110
111
112
113
use strict;
use warnings;
use ExtUtils::MakeMaker;
ExtUtils::MakeMaker->VERSION('7.00') unless -f 'META.yml';
(do './maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
my %WriteMakefileArgs = (
NAME => 'Catalyst::View::TT',
VERSION_FROM => 'lib/Catalyst/View/TT.pm',
AUTHOR => 'Sebastian Riedel <sri@cpan.org>',
LICENSE => 'perl_5',
MIN_PERL_VERSION => 5.008001, # catalyst minimum
PREREQ_PM => {
'Catalyst' => '5.7',
'Template' => 0,
'Class::Accessor' => 0,
'Template::Timer' => 0,
'Path::Class' => 0,
'MRO::Compat' => 0,
'Data::Dump' => 0,
},
TEST_REQUIRES => {
'Test::More' => '0.88',
'File::Spec' => '0',
'List::Util' => '1.33',
},
META_MERGE => {
'meta-spec' => { version => 2 },
dynamic_config => 0,
resources => {
# r/w: catagits@git.shadowcat.co.uk:Catalyst-View-TT
# r/o: git://git.shadowcat.co.uk:catagits/Catalyst-View-TT
# web: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/Catalyst-View-TT.git
repository => {
url => 'https://github.com/perl-catalyst/Catalyst-View-TT.git',
web => 'https://github.com/perl-catalyst/Catalyst-View-TT',
type => 'git',
},
bugtracker => {
mailto => 'bug-Catalyst-View-TT@rt.cpan.org',
web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Catalyst-View-TT',
},
x_MailingList => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst',
x_IRC => 'irc://irc.perl.org/#catalyst',
x_contributors => [
'Alexander Hartmaier <abraxxa@cpan.org>',
'Andrew Ford <A.Ford@ford-mason.co.uk>',
'Andrew Rodland <arodland@cpan.org>',
'Andy Grundman <andy@hybridized.org>',
'Arthur Axel fREW Schmidt <frioux@gmail.com>',
'Brian Cassidy <bricas@cpan.org>',
'Caleb Cushing <xenoterracide@gmail.com>',
'Christian Hansen <chansen@cpan.org>',
'Christian Walde <walde.christian@googlemail.com>',
'Cory G Watson <gphat@onemogin.com>',
'Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>',
'Dan Dascalescu <bigbang7@gmail.com>',
'David E. Wheeler <david@justatheory.com>',
'David Kamholz <dkamholz@cpan.org>',
'David Steinbrunner <dsteinbrunner@pobox.com>',
'Florian Ragwitz <rafl@debian.org>',
'Graham Knop <haarg@haarg.org>',
'Hakim Cassimally <osfameron@cpan.org>',
'Jesse Sheidlower <jester@panix.com>',
'Jess Robinson <cpan@desert-island.me.uk>',
'John Napiorkowski <jjnapiork@cpan.org>',
'Justin Hunter <justin.d.hunter@gmail.com>',
'Karen Etheridge <ether@cpan.org>',
'Luke Saunders <luke.saunders@gmail.com>',
'Marcus Ramberg <marcus@nordaaker.com>',
'Matt S Trout <mst@shadowcat.co.uk>',
'Rafael Kitover <rkitover@io.com>',
'Robert Rothenberg <rrwo@cpan.org>',
'Tomas Doran <bobtfish@bobtfish.net>',
'Tom Hukins <tom@eborcom.com>',
'Yuval Kogman <nothingmuch@woobling.org>',
],
},
},
);
die 'need to do a merge with CPAN::Meta::Requirements!!'
if !-f 'META.yml' && exists $WriteMakefileArgs{BUILD_REQUIRES};
if (!eval { ExtUtils::MakeMaker->VERSION('6.6303') }) {
$WriteMakefileArgs{BUILD_REQUIRES} = $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{TEST_REQUIRES};
}
if (!eval { ExtUtils::MakeMaker->VERSION('6.5501') }) {
@{$WriteMakefileArgs{PREREQ_PM}}{ keys %{$WriteMakefileArgs{BUILD_REQUIRES}} } =
@{$WriteMakefileArgs{BUILD_REQUIRES}}{ keys %{$WriteMakefileArgs{BUILD_REQUIRES}} };
delete $WriteMakefileArgs{BUILD_REQUIRES};
}
my %mm_req = (
LICENCE => 6.31,
META_MERGE => 6.45,
META_ADD => 6.45,
MIN_PERL_VERSION => 6.48,
);
for (keys %mm_req) {
unless (eval { ExtUtils::MakeMaker->VERSION($mm_req{$_}) }) {
warn "$_ $@" if not -f 'Makefile.PL';
delete $WriteMakefileArgs{$_};
}
}
WriteMakefile(%WriteMakefileArgs);