-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile.PL
98 lines (90 loc) · 3.3 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
use 5.010;
use strict;
use warnings;
if ( $^O eq 'MSWin32' ) {
print STDERR "OS unsupported: $^O\n";
exit( 255 );
}
use File::Basename;
use ExtUtils::MakeMaker qw( prompt );
my %config = (
NAME => 'Redis::JobQueue',
VERSION_FROM => 'lib/Redis/JobQueue.pm',
MIN_PERL_VERSION => '5.010',
# more to the list $Module::CoreList::version{5.010}
PREREQ_PM => {
'Data::UUID' => 1.217,
'Digest::SHA1' => 2.13,
'List::MoreUtils' => 0.33,
'Mouse' => 0,
'Params::Util' => 1.07,
'Redis' => 1.976,
'Storable' => 2.18,
'Try::Tiny' => 0.18,
},
TEST_REQUIRES => {
'Test::Deep' => 0.109,
'Test::Exception' => 0.31,
'Test::NoWarnings' => 1.04,
'Test::RedisServer' => 0.04,
'Test::TCP' => 2.11,
},
META_MERGE => {
no_index => {
directory => [
# 't',
# 'inc',
'xt',
'ex',
]
},
provides => {
'Redis::JobQueue' => {
file => 'lib/Redis/JobQueue.pm',
version => '1.19'
},
'Redis::JobQueue::Job' => {
file => 'lib/Redis/JobQueue/Job.pm',
version => '1.19'
},
'Redis::JobQueue::Util' => {
file => 'lib/Redis/JobQueue/Util.pm',
version => '1.19'
},
},
'meta-spec' => { version => 2 },
resources => {
bugtracker => {
web => 'https://github.com/TrackingSoft/Redis-JobQueue/issues',
},
homepage => 'https://github.com/TrackingSoft/Redis-JobQueue',
repository => {
type => 'git',
url => 'git://github.com/TrackingSoft/Redis-JobQueue.git',
web => 'http://github.com/TrackingSoft/Redis-JobQueue',
},
},
},
( $] >= 5.005 ?
(
ABSTRACT => 'Redis::JobQueue simple job queue with Redis server capabilities.',
AUTHOR => 'TrackingSoft LLC <[email protected]>'
) : ()
),
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => "Debian_CPANTS.txt Redis-*.tar.gz" },
LICENSE => 'perl',
# NO_MYMETA => 1,
);
my @patterns = qw( t/*.t t/*/*.t );
$config{test} = { TESTS => join ' ', map { glob } @patterns };
if( $ENV{AUTHOR_TESTS} ) {
@patterns = qw( xt/author/*.t xt/author/*/*.t );
$config{test}->{TESTS} .= ' '.join ' ', map { glob } @patterns;
}
if( $ENV{RELEASE_TESTS} ) {
@patterns = qw( xt/release/*.t xt/release/*/*.t );
$config{test}->{TESTS} .= ' '.join ' ', map { glob } @patterns;
}
mkdir 'inc' unless -d 'inc';
ExtUtils::MakeMaker::WriteMakefile( %config );