Subject: | Important fix for Makefile.PL |
CGI::FormBuilder dist should depend on Task::Weaken, other fixes.
--
Alexandr Ciornii, http://chorny.net
Subject: | Makefile.PL.patch |
--- Makefile.PL.dist 2007-03-02 19:13:02.000000000 +0200
+++ Makefile.PL 2008-10-06 14:31:20.703125000 +0300
@@ -1,9 +1,10 @@
+use 5.006;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
-use vars qw($real);
+our $real;
sub modcheck () {
# check to see if our template modules are present, as they're optional
@@ -50,10 +51,12 @@
WriteMakefile(
NAME => 'CGI::FormBuilder',
VERSION_FROM => 'lib/CGI/FormBuilder/Util.pm', # finds $VERSION
- PREREQ_PM => { CGI => 0 },
+ PREREQ_PM => { CGI => 0,'File::Spec'=>0,'Task::Weaken'=>0, },
+ #Task::Weaken ensures that Scalar::Util has weaken support
+ #some OS has perl without Scalar::Util::weaken
CONFIGURE => \&modcheck,
- ($] >= 5.005 ?
- (ABSTRACT_FROM => 'lib/CGI/FormBuilder.pod', # abstract from POD
- AUTHOR => 'Nathan Wiger (nate@wiger.org)') : ()
- ),
+ ABSTRACT_FROM => 'lib/CGI/FormBuilder.pod', # abstract from POD
+ AUTHOR => 'Nathan Wiger (nate@wiger.org)',
+ ($ExtUtils::MakeMaker::VERSION ge '6.31'?
+ ('LICENSE' => 'perl', ) : ()),
);