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:07:33 UTC
[avro] 02/02: 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 branch-1.10
in repository https://gitbox.apache.org/repos/asf/avro.git
commit 5eda26b266e0c74e99767b33b9baa5b79f250d1a
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/'");