Don't index Clownfish::Test in PAUSE
Since 0.40_11, setting the Module::Build property `no_index` directly
suppresses the `provides` section in `META.json`. This seems to be the
most reliable way to stop PAUSE from indexing packages.
diff --git a/runtime/perl/Build.PL b/runtime/perl/Build.PL
index 2fa15ac..51d588c 100644
--- a/runtime/perl/Build.PL
+++ b/runtime/perl/Build.PL
@@ -38,6 +38,10 @@
'Devel::PPPort' => 3.14,
'Clownfish::CFC' => 0.006000,
},
+ no_index => {
+ directory => [qw( buildlib )],
+ package => [qw( Clownfish::Test )],
+ },
meta_merge => { keywords => [qw( clownfish )], },
meta_add => {
resources => {
@@ -45,9 +49,6 @@
repository => 'https://git-wip-us.apache.org/repos/asf/lucy-clownfish.git',
bugtracker => 'https://issues.apache.org/jira/browse/CLOWNFISH',
},
- no_index => {
- directory => [qw( buildlib )],
- },
},
add_to_cleanup => [
qw(
diff --git a/runtime/perl/buildlib/Clownfish/Build.pm b/runtime/perl/buildlib/Clownfish/Build.pm
index 78a5459..0dbdf2c 100644
--- a/runtime/perl/buildlib/Clownfish/Build.pm
+++ b/runtime/perl/buildlib/Clownfish/Build.pm
@@ -311,6 +311,9 @@
sub ACTION_dist {
my $self = shift;
+ die("Module::Build 0.40_11 is required for ./Build dist")
+ if $Module::Build::VERSION < 0.40_11;
+
# Create POD.
$self->depends_on('clownfish');
rmtree("autogen");