--- Makefile-orig.PL 2018-09-10 06:47:08.686476300 -0700 +++ Makefile.PL 2018-09-10 06:50:29.999858000 -0700 @@ -22,15 +22,24 @@ use ExtUtils::MakeMaker; -WriteMakefile( - 'NAME' => 'File::Repl', - 'VERSION_FROM' => 'Repl.pm', # finds $VERSION - 'PREREQ_PM' => { +my $prereq = { File::Find => 0, File::Copy => 2.03, File::Basename => 2.6, - Win32::API => 0, # 0.2000.07.08, - }, # e.g., Module::Name => 1.1 + File::HomeDir => 0, +# Win32::API => 0, # 0.2000.07.08, +}; +$prereq->{Win32::API} = 0 if $^O eq 'MSWin32'; + +WriteMakefile( + 'NAME' => 'File::Repl', + 'VERSION_FROM' => 'Repl.pm', # finds $VERSION + 'PREREQ_PM' => $prereq, #{ +# File::Find => 0, +# File::Copy => 2.03, +# File::Basename => 2.6, +# Win32::API => 0, # 0.2000.07.08, +# }, # e.g., Module::Name => 1.1 'dist' => { ZIP => 'wzzip.exe', ZIPFLAGS => "-P", #### cpanm --look File::Repl patch -u Makefile.PL ~/patchfile make make test make install