[25/30] Fixing up the installer to check for new optional dependencies
This commit is contained in:
parent
358d10765e
commit
48dc1cb4b0
3 changed files with 31 additions and 18 deletions
|
@ -556,9 +556,9 @@ WriteMakefile(
|
|||
'Digest::SHA' => 5.43,
|
||||
'Email::Date' => 1.103,
|
||||
'File::Temp' => 0.16,
|
||||
'GD' => 2.39, #optional
|
||||
'GD' => 2.39, #optional, used for patron image feature
|
||||
'GD::Barcode::UPCE' => 1.1,
|
||||
'Graphics::Magick' => 1.37
|
||||
'Graphics::Magick' => 1.3.7, #optional, used for patron cards creator
|
||||
'Getopt::Long' => 2.35,
|
||||
'Getopt::Std' => 1.05,
|
||||
'HTML::Template::Pro' => 0.69,
|
||||
|
|
|
@ -131,6 +131,18 @@ if ( $step && $step == 1 ) {
|
|||
{ name => "GD::Barcode", usagebarcode => 1, usagespine => 1 };
|
||||
}
|
||||
}
|
||||
unless ( eval { require GD } ) {
|
||||
if ( $#missing >= 0 ) { # only when $#missing >= 0 so this isn't fatal
|
||||
push @missing,
|
||||
{ name => "GD", usagepatronimages => 1 };
|
||||
}
|
||||
}
|
||||
unless ( eval { require Graphics::Magick } ) {
|
||||
if ( $#missing >= 0 ) { # only when $#missing >= 0 so this isn't fatal
|
||||
push @missing,
|
||||
{ name => "Graphics::Magick", usagepatroncards => 1 };
|
||||
}
|
||||
}
|
||||
unless ( eval { require Data::Random } ) {
|
||||
if ( $#missing >= 0 ) { # only when $#missing >= 0 so this isn't fatal
|
||||
push @missing, { name => "Data::Random", usagebarcode => 1 };
|
||||
|
|
|
@ -38,15 +38,16 @@ listed, please inform your systems administrator.</p>
|
|||
<li><!--TMPL_VAR Name="name"-->
|
||||
<!--TMPL_IF Name="usagemail"-->
|
||||
<br /> This module is used whenever Koha has to send email.
|
||||
<!--/TMPL_IF-->
|
||||
<!--TMPL_IF Name="usagebarcode"-->
|
||||
<!--TMPL_ELSIF Name="usagebarcode"-->
|
||||
<br /> This module is needed if you intend to print barcodes.
|
||||
<!--/TMPL_IF-->
|
||||
<!--TMPL_IF Name="usagespine"-->
|
||||
<!--TMPL_ELSIF Name="usagespine"-->
|
||||
<br /> This module is needed if you intend to print spine labels.
|
||||
<!--/TMPL_IF-->
|
||||
<!--TMPL_IF Name="usageLDAP"-->
|
||||
<!--TMPL_ELSIF Name="usageLDAP"-->
|
||||
<br /> This module is needed if you intend to use LDAP for authentication.
|
||||
<!--TMPL_ELSIF Name="usagepatronimages"-->
|
||||
<br /> This module is needed if you intend to use patron images.
|
||||
<!--TMPL_ELSIF Name="usagepatroncards"-->
|
||||
<br /> This module is needed if you intend to use the patron card creator.
|
||||
<!--/TMPL_IF-->
|
||||
</li>
|
||||
<!--/TMPL_LOOP-->
|
||||
|
|
Loading…
Reference in a new issue