ports/devel/p5-Data-FormValidator/patches/patch-Makefile_PL

30 lines
691 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
- Prevent the installation of README.Pod in an inappropriate place.
- Don't install Data::Readme.3p, the content is similar to
Data::FormValidator.3p.
Taken from:
https://metacpan.org/source/BDFOY/Test-File-1.43//Makefile.PL
Upstream bug report:
https://rt.cpan.org/Public/Bug/Display.html?id=128187
Index: Makefile.PL
--- Makefile.PL.orig
+++ Makefile.PL
@@ -37,3 +37,18 @@ WriteMakefile(
: ()
),
);
+
+
+BEGIN {
+ use ExtUtils::MM_Unix;
+ package ExtUtils::MM_Unix;
+
+ my $original = \&ExtUtils::MM_Unix::init_dirscan;
+ no warnings 'redefine';
+
+ *init_dirscan = sub {
+ &$original;
+ delete $_[0]{PM}{'README.pod'};
+ $_[0];
+ };
+}