Permalink
Browse files

* applied patch from Axel to use variables for dependent module versi…

…on numbers

git-svn-id: svn://svn.tt2.org/tt/Template2/trunk@741 d5a88997-0a34-4036-9ed2-92fb5d660d91
  • Loading branch information...
1 parent 8dd40eb commit 8d30d52fd2bd6e9c133155cecab098ef83b6ee2a @abw committed Oct 9, 2003
Showing with 18 additions and 12 deletions.
  1. +18 −12 Makefile.PL
View
30 Makefile.PL
@@ -166,6 +166,12 @@ my $SPLASH_STYLES = {
};
+# define version numbers of required modules
+my $TT_APPCONFIG_VERSION = '1.55';
+my $TT_FILE_SPEC_VERSION = '0.8';
+my $TT_FILE_TEMP_VERSION = '0.12';
+
+
#========================================================================
welcome_message();
@@ -243,9 +249,9 @@ my %opts = (
'PMLIBDIRS' => [ 'lib' ],
'DIR' => [ ],
'PREREQ_PM' => {
- 'AppConfig' => 1.55,
- 'File::Spec' => 0.8,
- 'File::Temp' => 0.12,
+ 'AppConfig' => $TT_APPCONFIG_VERSION,
+ 'File::Spec' => $TT_FILE_SPEC_VERSION,
+ 'File::Temp' => $TT_FILE_TEMP_VERSION,
},
'dist' => {
'COMPRESS' => 'gzip',
@@ -360,24 +366,24 @@ EOF
sub mandatory_modules {
eval "use AppConfig";
- if ($@ or $AppConfig::VERSION < 1.52) {
+ if ($@ or $AppConfig::VERSION < $TT_APPCONFIG_VERSION) {
warn(<<EOF);
-The Template Toolkit requires that the AppConfig module (version 1.52
-or later) first be installed. This is used by the 'ttree' program for
-reading command line options and configuration files. It is available
-from CPAN:
+The Template Toolkit requires that the AppConfig module (version $TT_APPCONFIG_VERSION
+or later) first be installed. This is used by
+the 'ttree' program for reading command line options and configuration
+files. It is available from CPAN:
http://www.cpan.org/authors/Andy_Wardley/
EOF
}
eval "use File::Spec";
- if ($@ or $File::Spec::VERSION < 0.8) {
+ if ($@ or $File::Spec::VERSION < $TT_FILE_SPEC_VERSION) {
warn(<<EOF);
-The Template Toolkit requires that the File::Spec module (version 0.8
+The Template Toolkit requires that the File::Spec module (version $TT_FILE_SPEC_VERSION
or later) first be installed. This is used by the File plugin. It is
available from CPAN:
@@ -387,10 +393,10 @@ EOF
}
eval "use File::Temp";
- if ($@ or $File::Temp::VERSION < 0.12) {
+ if ($@ or $File::Temp::VERSION < $TT_FILE_TEMP_VERSION) {
warn(<<EOF);
-The Template Toolkit requires that the File::Temp module (version 0.12
+The Template Toolkit requires that the File::Temp module (version $TT_FILE_TEMP_VERSION
or later) first be installed. This is used by the Template::Document
class for storing compiled templates. It is available from CPAN:

0 comments on commit 8d30d52

Please sign in to comment.