You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2016/11/23 16:26:00 UTC

[4/9] lucy-clownfish git commit: Don't index Clownfish::Test in PAUSE

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.


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/1d7af027
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/1d7af027
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/1d7af027

Branch: refs/heads/master
Commit: 1d7af027d31de7137b7ec99a21d66326f189a6e9
Parents: cdbf4ad
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Tue Oct 4 15:46:10 2016 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sun Oct 9 13:27:16 2016 +0200

----------------------------------------------------------------------
 runtime/perl/Build.PL                    | 7 ++++---
 runtime/perl/buildlib/Clownfish/Build.pm | 3 +++
 2 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/1d7af027/runtime/perl/Build.PL
----------------------------------------------------------------------
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 @@ my $builder = Clownfish::Build->new(
         '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 @@ my $builder = Clownfish::Build->new(
             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(

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/1d7af027/runtime/perl/buildlib/Clownfish/Build.pm
----------------------------------------------------------------------
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_clean {
 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");