From: Graham Knop Date: Fri, 1 May 2020 20:21:57 +0000 (+0200) Subject: skip Distar directory in libscan, allowing us to restore the Makefile.PL X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=24612483d31a48f26d3a153c560ddcdbcf5af9c3;p=p5sagit%2FDistar.git skip Distar directory in libscan, allowing us to restore the Makefile.PL --- diff --git a/Makefile.PL.disabled b/Makefile.PL similarity index 100% rename from Makefile.PL.disabled rename to Makefile.PL diff --git a/lib/Distar.pm b/lib/Distar.pm index eee8188..97dda68 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -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(@_);