skip Distar directory in libscan, allowing us to restore the Makefile.PL
Graham Knop [Fri, 1 May 2020 20:21:57 +0000 (22:21 +0200)]
Makefile.PL [moved from Makefile.PL.disabled with 100% similarity]
lib/Distar.pm

similarity index 100%
rename from Makefile.PL.disabled
rename to Makefile.PL
index eee8188..97dda68 100644 (file)
@@ -161,6 +161,19 @@ sub write_manifest_skip {
     $out;
   }
 
+  sub libscan {
+    my $self = shift;
+    my ($path) = @_;
+
+    # default setup for Distar involves checking it out as a subdirectory at
+    # the top of the dist.  Without NORECURS, EUMM would try to include
+    # Distar's Makefile.PL.  Prevent EUMM from looking inside.
+    return ''
+      if $path eq 'Distar';
+
+    $self->SUPER::libscan(@_);
+  }
+
   sub tarfile_target {
     my $self = shift;
     my $out = $self->SUPER::tarfile_target(@_);