'GD::Graph' => 'GDGraph',
'GD::Text::Align' => 'GDTextUtil',
'Mail::Mailer' => 'MailTools',
+ 'Template::Plugin::GD' => 'Template',
);
sub install_command {
print "\nThe following Perl modules are optional:\n" unless $silent;
my $gd = have_vers("GD","1.20");
+my $template_gd = have_vers('Template::Plugin::GD::Image', 0);
my $chartbase = have_vers("Chart::Base","1.0");
my $xmlparser = have_vers("XML::Parser",0);
my $gdgraph = have_vers("GD::Graph",0);
"the XML::Parser module by running (as $::root):\n\n",
" " . install_command("XML::Parser") . "\n\n";
}
-if ((!$gd || !$gdgraph || !$gdtextalign) && !$silent) {
+if ((!$gd || !$gdgraph || !$gdtextalign || !$template_gd) && !$silent) {
print "If you you want to see graphical bug reports (bar, pie and line ";
print "charts of \ncurrent data), you should install libgd and the ";
print "following Perl modules:\n\n";
if !$gdgraph;
print "GD::Text::Align: " . install_command("GD::Text::Align") . "\n"
if !$gdtextalign;
+ print "Template::Plugin::GD: " . install_command('Template::Plugin::GD')
+ . "\n" if !$template_gd;
print "\n";
}
if (!$patchreader && !$silent) {
</literallayout>
</para>
+ <para>
+ Template::Plugin::GD:
+ <literallayout>
+ CPAN Download Page: <ulink url="http://search.cpan.org/dist/Template-GD/" />
+ PPM Download Link: (Just install Template-Toolkit using the instructions below)
+ Documentation: <ulink url="http://www.template-toolkit.org/docs/aqua/Modules/index.html" />
+ </literallayout>
+ </para>
+
<para>
MIME::Parser (part of MIME-tools):
<literallayout>
print "TEST-FAILED Chart returned: $@\n";
}
}
+
+ eval 'use Template::Plugin::GD::Image';
+ if ($@) {
+ print "TEST-FAILED Template::Plugin::GD is not installed.\n";
+ }
+ else {
+ print "TEST-OK Template::Plugin::GD is installed.\n";
+ }
}
sub fetch {