You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by ie...@apache.org on 2020/07/02 09:06:00 UTC
[avro] branch master updated: AVRO-1461: Distribute Perl API on CPAN
This is an automated email from the ASF dual-hosted git repository.
iemejia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/master by this push:
new 98c29fb AVRO-1461: Distribute Perl API on CPAN
98c29fb is described below
commit 98c29fbf866302c6215cca7762c47e65ff062fb7
Author: Kengo Seki <se...@apache.org>
AuthorDate: Thu Jul 2 13:41:55 2020 +0900
AVRO-1461: Distribute Perl API on CPAN
Fix Makefile.PL so that PAUSE can identify Avro packages and corresponding files
---
lang/perl/Makefile.PL | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/lang/perl/Makefile.PL b/lang/perl/Makefile.PL
index 751fc33..69447e5 100644
--- a/lang/perl/Makefile.PL
+++ b/lang/perl/Makefile.PL
@@ -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/'");