forked from TrackingSoft/Kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
172 lines (163 loc) · 6.6 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
#!/usr/bin/perl -w
use strict;
use warnings;
use 5.010;
if ( $^O eq 'MSWin32' || $^O eq 'solaris' || $^O eq 'cygwin' ) {
print STDERR "OS unsupported: $^O\n";
exit( 255 );
}
use ExtUtils::MakeMaker qw(
prompt
);
use File::Spec::Functions qw(
catdir
);
my %config = (
NAME => 'Kafka',
VERSION_FROM => 'lib/Kafka.pm', # finds $VERSION
MIN_PERL_VERSION => '5.010',
PREREQ_PM => { # more to the list $Module::CoreList::version{5.010}
'Carp' => '1.08',
'Compress::Snappy' => '0.23',
'Compress::LZ4Frame' => '0.012001',
'Const::Fast' => '0.014',
'Data::Compare' => '1.24',
'Data::HexDump::Range' => 0,
'Data::Validate::Domain' => '0.11',
'Data::Validate::IP' => '0.24',
'Exception::Class' => '1.37',
'Exporter' => '5.62',
'Gzip::Faster' => '0.19',
'IO::Select' => '1.17',
'List::Util' => '1.19',
'Params::Util' => '1.07',
'Scalar::Util' => '1.19',
'Scalar::Util::Numeric' => '0.22',
'Socket' => '1.80',
'String::CRC32' => '1.5',
'Sys::SigAction' => '0.21',
'Time::HiRes' => '1.9711',
'Try::Tiny' => '0.21',
},
TEST_REQUIRES => { # more to the list $Module::CoreList::version{5.010}
'Capture::Tiny' => '0.24',
'Carp' => '1.08',
'Clone' => '0.36',
'Config::IniFiles' => '2.83',
'Const::Fast' => '0.014',
'Cwd' => '3.2501',
'Data::Dumper' => '2.121_14',
'Exporter' => '5.62',
'File::HomeDir' => '1.00',
'File::Path' => '2.04',
'File::Spec' => '3.2501',
'File::Spec::Functions' => '3.2501',
'IO::File' => '1.14',
'IO::Socket::INET' => '1.31',
'IO::Socket::IP' => '0.37',
'List::Util' => '1.19',
'Net::EmptyPort' => 0, # does not have version so any version
'Params::Util' => '1.07',
'Proc::Daemon' => '0.14',
'Proc::ProcessTable' => '0.51',
'Scalar::Util' => '1.19',
'Scalar::Util::Numeric' => '0.22',
'Socket' => '1.80',
'Sub::Install' => '0.927',
'Sys::SigAction' => '0.21',
'Test::Deep' => '0.119',
'Test::Exception' => '0.32',
'Test::More' => '0.72',
'Test::NoWarnings' => '1.04',
'Test::TCP' => '2.08',
'Time::HiRes' => '1.9711',
'Try::Tiny' => '0.21',
},
META_MERGE => {
no_index => {
directory => [
# 't',
# 'inc',
'xt',
'tools',
]
},
provides => {
'Kafka' => {
file => 'lib/Kafka.pm',
version => '1.07'
},
'Kafka::Connection' => {
file => 'lib/Kafka/Connection.pm',
version => '1.07'
},
'Kafka::Consumer' => {
file => 'lib/Kafka/Consumer.pm',
version => '1.07'
},
'Kafka::Exceptions' => {
file => 'lib/Kafka/Exceptions.pm',
version => '1.07'
},
'Kafka::IO' => {
file => 'lib/Kafka/IO.pm',
version => '1.07'
},
'Kafka::Int64' => {
file => 'lib/Kafka/Int64.pm',
version => '1.07'
},
'Kafka::Internals' => {
file => 'lib/Kafka/Internals.pm',
version => '1.07'
},
'Kafka::Message' => {
file => 'lib/Kafka/Message.pm',
version => '1.07'
},
'Kafka::Producer' => {
file => 'lib/Kafka/Producer.pm',
version => '1.07'
},
'Kafka::Protocol' => {
file => 'lib/Kafka/Protocol.pm',
version => '1.07'
},
},
'meta-spec' => { version => 2 },
resources => {
bugtracker => {
web => 'https://github.com/TrackingSoft/Kafka/issues',
},
homepage => 'https://github.com/TrackingSoft/Kafka',
repository => {
type => 'git',
url => 'git://github.com/TrackingSoft/Kafka.git',
web => 'http://github.com/TrackingSoft/Kafka',
},
},
},
( $] >= 5.005 ? ## Add these new keywords supported since 5.005
(
ABSTRACT => 'Apache Kafka low-level synchronous API, which does not use Zookeeper.',
AUTHOR => 'Sergey Gladkov',
) : ()
),
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => "Debian_CPANTS.txt Kafka-*.tar.gz" },
LICENSE => 'perl',
# NO_MYMETA => 1,
);
my @patterns = qw( t/*.t );
$config{test} = { TESTS => join ' ', map { glob } @patterns };
if ( $ENV{AUTHOR_TESTS} ) {
@patterns = qw( xt/author/*.t );
$config{test}->{TESTS} .= ' '.join ' ', map { glob } @patterns;
}
if ( $ENV{RELEASE_TESTS} ) {
@patterns = qw( xt/release/*.t );
$config{test}->{TESTS} .= ' '.join ' ', map { glob } @patterns;
}
mkdir 't/data' unless -d 't/data';
mkdir 'inc' unless -d 'inc';
ExtUtils::MakeMaker::WriteMakefile( %config );