Permalink
Browse files

* applied patch from Axel Gerstmair to fix File::Spec and File::Temp

  versions in Makefile.PL


git-svn-id: svn://svn.tt2.org/tt/Template2/trunk@650 d5a88997-0a34-4036-9ed2-92fb5d660d91
  • Loading branch information...
abw committed Apr 23, 2003
1 parent ad3a46e commit 5d8ad91ecbfd0832e6c7384bd9228dd53a779e78
Showing with 15 additions and 3 deletions.
  1. +15 −3 Makefile.PL
View
@@ -374,19 +374,31 @@ EOF
}
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:
http://search.cpan.org/search?dist=File-Spec
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
+ }
+}
#------------------------------------------------------------------------

0 comments on commit 5d8ad91

Please sign in to comment.