-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
36 lines (26 loc) · 1.22 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
use inc::Module::Install;
name 'CHI-Driver-HandlerSocket';
abstract 'Use MySQL HandleSocket for cache';
all_from 'lib/CHI/Driver/HandlerSocket.pm';
author 'Scott Walters <scott@slowass.net>';
perl_version '5.006';
build_requires 'Test::Class' => 0;
build_requires 'Test::Most' => 0;
repository 'https://github.com/scrottie/CHI-Driver-HandlerSocket';
bugtracker 'https://github.com/scrottie/CHI-Driver-HandlerSocket/issues';
requires 'CHI' => '0.241';
requires 'DBI' => '1.26';
requires 'Net::HandlerSocket' => undef;
license 'perl';
my $database = prompt("MySQL database name to test with (a table called 'chi_Default' will be created and then left) ?");
my $user = $database ? prompt("MySQL database username to test with (will be inserted into t/CHIDriverTests-MySQLHandlerSocket.t) ? ") : '';
my $pass = $user ? prompt("MySQL database password to test with (will be inserted into t/CHIDriverTests-MySQLHandlerSocket.t) ? ") : '';
if( $database and $user and $pass ) {
open my $fh, '>>', 't/CHIDriverTests-MySQLHandlerSocket.t' or warn "oops, couldn't append database login info to the test script: $!";
if( $fh ) {
print $fh "database=$database\nuser=$user\npass=$pass\n";
close $fh;
}
}
auto_install;
WriteAll;