Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
f1912867
Commit
f1912867
authored
Jul 25, 2006
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 345389: Template-Toolkit 2.15 moved Template::Plugin::GD into a separate package
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
parent
01939a3d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
2 deletions
+33
-2
Requirements.pm
Bugzilla/Install/Requirements.pm
+10
-1
checksetup.pl
checksetup.pl
+5
-1
modules.xml
docs/xml/modules.xml
+10
-0
testserver.pl
testserver.pl
+8
-0
No files found.
Bugzilla/Install/Requirements.pm
View file @
f1912867
...
...
@@ -98,6 +98,12 @@ use constant OPTIONAL_MODULES => [
version
=>
'1.20'
},
{
# This module tells us whether or not Template-GD is installed
# on Template-Toolkits after 2.14, and still works with 2.14 and lower.
name
=>
'Template::Plugin::GD::Image'
,
version
=>
0
},
{
name
=>
'Chart::Base'
,
version
=>
'1.0'
},
...
...
@@ -162,10 +168,13 @@ use constant WIN32_MODULE_NAMES => {
'GD::Graph'
=>
'GDGraph'
,
'GD::Text::Align'
=>
'GDTextUtil'
,
'Mail::Mailer'
=>
'MailTools'
,
# We provide Template 2.14 or lower for Win32, so it still includes
# the GD plugin.
'Template::Plugin::GD'
=>
'Template'
,
};
# This was originally clipped from the libnet Makefile.PL, adapted here to
# use the
above
vers_cmp routine for accurate version checking.
# use the
below
vers_cmp routine for accurate version checking.
sub
have_vers
{
my
(
$pkg
,
$wanted
,
$silent
)
=
@_
;
my
(
$msg
,
$vnum
,
$vstr
);
...
...
checksetup.pl
View file @
f1912867
...
...
@@ -296,7 +296,9 @@ if (!$have_mod{'Image::Magick'} && !$silent) {
}
if
(
(
!
$have_mod
{
'GD'
}
||
!
$have_mod
{
'GD::Graph'
}
||
!
$have_mod
{
'GD::Text::Align'
})
&&
!
$silent
)
||
!
$have_mod
{
'GD::Text::Align'
}
||
!
$have_mod
{
'Template::Plugin::GD::Image'
})
&&
!
$silent
)
{
print
"If you want to see graphical bug reports (bar, pie and line "
;
print
"charts of \ncurrent data), you should install libgd and the "
;
...
...
@@ -306,6 +308,8 @@ if ( (!$have_mod{'GD'} || !$have_mod{'GD::Graph'}
if
!
$have_mod
{
'GD::Graph'
};
print
"GD::Text::Align: "
.
install_command
(
"GD::Text::Align"
)
.
"\n"
if
!
$have_mod
{
'GD::Text::Align'
};
print
"Template::Plugin::GD: "
.
install_command
(
'Template::Plugin::GD'
)
.
"\n"
if
!
$have_mod
{
'Template::Plugin::GD::Image'
};
print
"\n"
;
}
if
(
!
$have_mod
{
'PatchReader'
}
&&
!
$silent
)
{
...
...
docs/xml/modules.xml
View file @
f1912867
...
...
@@ -149,6 +149,16 @@
</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::Base64:
<literallayout>
CPAN Download Page:
<ulink
url=
"http://search.cpan.org/dist/MIME-Base64/"
/>
...
...
testserver.pl
View file @
f1912867
...
...
@@ -203,6 +203,14 @@ if ($@ eq '') {
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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment