-
Notifications
You must be signed in to change notification settings - Fork 30
/
Makefile.PL
72 lines (60 loc) · 2.28 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
#!/usr/bin/env perl
use 5.010;
use strict;
use warnings;
# "Son, when you participate in sporting events,
# it's not whether you win or lose, it's how drunk you get."
use ExtUtils::MakeMaker;
my ($mm) = $ExtUtils::MakeMaker::VERSION =~ /^([^_]+)/;
# We only use core modules, so you shouldn't have to install anything besides
# Perl 5.8.7!
WriteMakefile(
NAME => 'Mojolicious Boilerplate',
VERSION => '0.1',
ABSTRACT => 'The Web In A Box!',
AUTHOR => 'Tudor Constantin',
($mm < 6.3002 ? () : ('LICENSE' => 'artistic_2')),
( $mm < 6.46
? ()
: (
META_MERGE => {
requires => {perl => '5.008007'},
resources => {
homepage => 'http://github.com/tudorconstantin/Mojolicious-Boilerplate',
license => 'http://dev.perl.org/licenses/',
repository => 'http://github.com/tudorconstantin/Mojolicious-Boilerplate',
bugtracker => 'http://github.com/tudorconstantin/Mojolicious-Boilerplate/issues'
},
no_index => {directory => [qw/t/]}
},
META_ADD => {
build_requires => {},
configure_requires => {},
},
)
),
EXE_FILES => ['script/boilerplate'],
PREREQ_PM => {
'Mojolicious' => '2.57',
'Mojolicious::Plugin::YamlConfig' => '0.1.3',
'YAML' => 0,
'YAML::XS' => 0,
'File::Find' => 0,
'Test::BDD::Cucumber' => 0,
'FindBin::libs' => 0,
},
test => {TESTS => 't/*.t t/*/*.t'}
);
# Using Perl 5.8.x is a bad idea though
warn <<'EOF' unless $] >= 5.010;
*******************************************************************************
You are using Perl 5.8, a version that has reached the end of its life a few
years ago and which is no longer getting updated by the community.
It contains very serious flaws, especially around the regular expression
engine, that will never get fixed and are likely to put your applications at
risk.
While your operating system vendor might keep it compiling on their platform,
they will not fix these issues.
Therefore we highly recommend that you upgrade as soon as possible!
*******************************************************************************
EOF