[Templates] PATCH Makefile.PL and mandatory modules
Axel Gerstmair
Axel Gerstmair <anthill@web.de>
Wed, 23 Apr 2003 11:27:35 +0200
Hi all,
I've just created a patch for Makefile.PL that adds a check for the
File::Temp module in order to prevent errors at a later time, since
this is a common installation problem. Additionally, I've changed the
required version of File::Spec accordingly.
Best regards,
Axel
Index: Makefile.PL
===================================================================
RCS file: /template-toolkit/Template2/Makefile.PL,v
retrieving revision 2.36
diff -u -w -b -r2.36 Makefile.PL
--- Makefile.PL 2002/11/07 15:26:12 2.36
+++ Makefile.PL 2003/04/23 09:15:02
@@ -374,10 +374,10 @@
}
eval "use File::Spec";
- if ($@ or $File::Spec::VERSION < 0.6) {
+ if ($@ or $File::Spec::VERSION < 0.8) {
warn(<<EOF);
-The Template Toolkit requires that the File::Spec module (version 0.6
+The Template Toolkit requires that the File::Spec module (version 0.8
or later) first be installed. This is used by the File plugin. It is
available from CPAN:
@@ -385,6 +385,19 @@
EOF
}
+
+ eval "use File::Temp";
+ if ($@ or $File::Temp::VERSION < 0.12) {
+ warn(<<EOF);
+
+The Template Toolkit requires that the File::Temp module (version 0.12
+or later) first be installed. This is used by the Template::Document
+class for storing compiled templates. It is available from CPAN:
+
+ http://search.cpan.org/search?dist=File-Temp
+
+EOF
+ }
}