Skip to content

Commit

Permalink
AVRO-1461: Distribute Perl API on CPAN
Browse files Browse the repository at this point in the history
Fix Makefile.PL so that PAUSE can identify Avro packages and corresponding files
  • Loading branch information
sekikn authored and iemejia committed Jul 2, 2020
1 parent d9fae92 commit 98c29fb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lang/perl/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,18 @@ unless ($Config{use64bitint}) {
}
auto_set_repository();

my %packages = (
'Avro' => 'lib/Avro.pm',
'Avro::BinaryDecoder' => 'lib/Avro/BinaryDecoder.pm',
'Avro::BinaryEncoder' => 'lib/Avro/BinaryEncoder.pm',
'Avro::DataFile' => 'lib/Avro/DataFile.pm',
'Avro::DataFileReader' => 'lib/Avro/DataFileReader.pm',
'Avro::DataFileWriter' => 'lib/Avro/DataFileWriter.pm',
'Avro::Protocol' => 'lib/Avro/Protocol.pm',
'Avro::Protocol::Message' => 'lib/Avro/Protocol/Message.pm',
'Avro::Schema' => 'lib/Avro/Schema.pm',
);
my %provides = map { $_ => { file => $packages{$_}, version => $version } } keys %packages;
provides(%provides);

WriteMakefile(PM_FILTER => "sed -e 's/\+\+MODULE_VERSION\+\+/$version/'");

0 comments on commit 98c29fb

Please sign in to comment.