-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile.PL
62 lines (58 loc) · 2.56 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
use 5.016;
use strict;
use warnings;
use utf8;
use ExtUtils::MakeMaker;
my @DRIVER = $ENV{MOJO_MYSQL_PREFER_DRIVER} ? (split /=/, $ENV{MOJO_MYSQL_PREFER_DRIVER}) : ();
$DRIVER[0] ||= eval('use DBD::MariaDB 1.21;1') ? 'DBD::MariaDB' : 'DBD::mysql';
$DRIVER[1] ||= $DRIVER[0] eq 'DBD::mysql' ? '4.050' : $DRIVER[0] eq 'DBD::MariaDB' ? '1.21' : '0';
my $GITHUB_URL = 'https://github.com/jhthorsen/mojo-mysql';
my %WriteMakefileArgs = (
NAME => 'Mojo::mysql',
AUTHOR => 'Jan Henning Thorsen <[email protected]>',
LICENSE => 'artistic_2',
ABSTRACT_FROM => 'lib/Mojo/mysql.pm',
VERSION_FROM => 'lib/Mojo/mysql.pm',
TEST_REQUIRES => {'Test::More' => '0.90'},
PREREQ_PM => {@DRIVER, 'DBI' => '1.643', 'Mojolicious' => '8.03', 'SQL::Abstract' => '1.86'},
META_MERGE => {
'dynamic_config' => 0,
'meta-spec' => {version => 2},
'no_index' => {directory => [qw(examples t)]},
'prereqs' => {runtime => {requires => {perl => '5.016'}}},
'resources' => {
bugtracker => {web => "$GITHUB_URL/issues"},
homepage => $GITHUB_URL,
license => ['http://www.opensource.org/licenses/artistic-license-2.0'],
repository => {type => 'git', url => "$GITHUB_URL.git", web => $GITHUB_URL},
x_IRC => {url => 'irc://irc.libera.chat/#convos', web => 'https://web.libera.chat/#convos'},
},
'x_contributors' => [
'Adam Hopkins <[email protected]>',
'Alexander Karelas <[email protected]>',
'Curt Hochwender <[email protected]>',
'Dan Book <[email protected]>',
'Doug Bell <[email protected]>',
'Florian Heyer <[email protected]>',
'Hernan Lopes <[email protected]>',
'Jan Henning Thorsen <[email protected]>',
'Karl Rune Nilsen <[email protected]>',
'Larry Leszczynski <[email protected]>',
'Lucas Tiago de Moraes <[email protected]>',
'Matt S Trout <[email protected]>',
'Mike Magowan <[email protected]>',
'Mohammad S Anwar <[email protected]>',
'Rolf Stöckli <[email protected]>',
'Sebastian Riedel <[email protected]>',
'Svetoslav Naydenov <[email protected]>',
'Svetoslav Naydenov <[email protected]>',
'Tekki <[email protected]>',
],
},
test => {TESTS => (-e 'META.yml' ? 't/*.t' : 't/*.t xt/*.t')},
);
unless (eval { ExtUtils::MakeMaker->VERSION('6.63_03') }) {
my $test_requires = delete $WriteMakefileArgs{TEST_REQUIRES};
@{$WriteMakefileArgs{PREREQ_PM}}{keys %$test_requires} = values %$test_requires;
}
WriteMakefile(%WriteMakefileArgs);