Skip Menu |

This queue is for tickets about the File-Repl CPAN distribution.

Report information
The Basics
Id: 127088
Status: new
Priority: 0/
Queue: File-Repl

People
Owner: dave [...] herouville.biz
Requestors: mcgrath.martin [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.3
Fixed in: (no value)



Subject: [Patch] - Update Makefile.PL - fix installation for non Windows platforms
Hi, Thanks for your work on this module. Attached is an updated Makefile.PL, which only adds a Win32::API as a prerequisite on Windows and Cygwin platforms. This issue was raised here: https://perlmonks.org/?node_id=1221985
Subject: Makefile.PL
# File::Repl # # Version # $Source: d:/src/perl/File/Repl/RCS/Makefile.PL $ # $Revision: 1.4 $ # $State: Exp $ # # Start comments/code here - will not be processed into manual pages # # Copyright - Dave Roberts 2000,2001 # # Revision history: # $Log: Makefile.PL $ # Revision 1.4 2011/11/25 07:29:24 Dave.Roberts # added COMPRESS arguments # # Revision 1.3 2001/06/27 12:33:57 jj768 # Changes to ignore the RCS directory # # #****************************************************************************** use strict; use warnings; use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( 'NAME' => 'File::Repl', 'VERSION_FROM' => 'Repl.pm', 'PREREQ_PM' => { 'File::Find' => 0, 'File::HomeDir' => 0, 'File::Copy' => '2.03', 'File::Basename' => '2.6' }, 'dist' => { ZIP => 'wzzip.exe', ZIPFLAGS => '-P', COMPRESS => 'gzip --best --force', }, 'MAN3PODS' => { 'Repl.pm' => 'blib/man3/File::Repl.3', }, 'PM' => { 'Repl.pm' => '$(INST_LIBDIR)/Repl.pm', } ); if ( ( $^O eq 'MSWin32' ) or ( $^O eq 'cygwin' ) ) { $WriteMakefileArgs{PREREQ_PM}{'Win32::API'} = '0'; } WriteMakefile(%WriteMakefileArgs); package MY; sub postamble { <<"END_OF_POSTAMBLE"; pm_to_blib: README README: Repl.pm \tpod2text Repl.pm >README \tpod2html Repl.pm >Repl.html END_OF_POSTAMBLE } # Just to make it ignore editor backup files. sub libscan { $_ = $_[1]; if ( m/(RCS|CVS|SCCS)/i || m/[~%]$/ || m/\.(orig|rej)$/ ) { print " Ignoring $_\n"; return ''; } return $_; }