-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.PL
69 lines (62 loc) · 2.42 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
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;
use ExtUtils::MakeMaker;
if ( $^O eq 'MSWin32' || $^O eq 'solaris' || $^O eq 'cygwin' ) {
print STDERR "OS unsupported: $^O\n";
exit( 255 );
}
my $package = 'Kafka::Producer::Avro';
my $path_to_package = 'lib/Kafka/Producer/Avro.pm';
`perldoc -uT $path_to_package | pod2text - README`;
`perldoc -uT $path_to_package | pod2markdown - README.md`; # useful for GitHub repo home
my %config = (
NAME => $package,
VERSION_FROM => $path_to_package, # finds $VERSION
MIN_PERL_VERSION => '5.010',
PREREQ_PM => { # more to the list $Module::CoreList::version{5.010}
'JSON::XS' => 'v4.30.0',
'Kafka::Producer' => 'v1.8.0',
'Avro::BinaryEncoder' => 'v1.10.1',
'Avro::Schema' => 'v1.10.1',
'Confluent::SchemaRegistry' => 'v1.0.0',
'Memoize' => '0'
},
TEST_REQUIRES => { # more to the list $Module::CoreList::version{5.010}
'Math::BigInt' => '1.89',
'Test::Exception' => '0.43',
'Time::HiRes' => '0'
},
META_MERGE => {
no_index => {
directory => [
't',
'inc',
]
},
'meta-spec' => { version => 2 },
resources => {
bugtracker => {
web => 'https://github.com/alivraghi/Kafka-Producer-Avro/issues',
},
homepage => 'https://github.com/alivraghi/Kafka-Producer-Avro',
repository => {
type => 'git',
url => 'git@github.com/Kafka-Producer-Avro.git',
web => 'https://github.com/alivraghi/Kafka-Producer-Avro.git',
},
},
},
( $] >= 5.005 ? ## Add these new keywords supported since 5.005
(
ABSTRACT => 'Avro message producer for Apache Kafka.',
AUTHOR => 'Alvaro Livraghi',
) : ()
),
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
realclean => { FILES => "inc Kafka-Producer-Avro-*.tar.gz" },
LICENSE => 'perl',
# NO_MYMETA => 1,
);
ExtUtils::MakeMaker::WriteMakefile( %config );