mirror of
https://codeberg.org/scip/note.git
synced 2025-12-17 04:31:02 +01:00
fixed rt.cpan.org#122852 and rt.cpan.org#122825
This commit is contained in:
54
Makefile.PL
54
Makefile.PL
@@ -1,17 +1,17 @@
|
||||
use ExtUtils::MakeMaker;
|
||||
|
||||
my %optional = (
|
||||
'Crypt::CBC' => "Required by encryption support",
|
||||
'Crypt::Rijndael' => "Required by encryption support",
|
||||
'Data::Dumper' => "Required by dumper DB backend",
|
||||
'MIME::Base64' => "Required by varios optional backends",
|
||||
'Storable' => "Required by text DB backend",
|
||||
'Config::General' => "Required by general DB backend",
|
||||
'DB_File' => "Required by dbm DB backend",
|
||||
'DBI' => "Required by mysql DB backend",
|
||||
'DBD::mysql' => "Required by mysql DB backend",
|
||||
'Crypt::PWSafe3' => "Required by Password Safe v3 backend"
|
||||
);
|
||||
'Crypt::CBC' => "Required by encryption support",
|
||||
'Crypt::Rijndael' => "Required by encryption support",
|
||||
'Data::Dumper' => "Required by dumper DB backend",
|
||||
'MIME::Base64' => "Required by varios optional backends",
|
||||
'Storable' => "Required by text DB backend",
|
||||
'Config::General' => "Required by general DB backend",
|
||||
'DB_File' => "Required by dbm DB backend",
|
||||
'DBI' => "Required by mysql DB backend",
|
||||
'DBD::mysql' => "Required by mysql DB backend",
|
||||
'Crypt::PWSafe3' => "Required by Password Safe v3 backend"
|
||||
);
|
||||
|
||||
foreach my $module (sort keys %optional) {
|
||||
eval "require $module";
|
||||
@@ -22,20 +22,20 @@ foreach my $module (sort keys %optional) {
|
||||
|
||||
|
||||
WriteMakefile(
|
||||
'NAME' => 'NOTEDB',
|
||||
'VERSION_FROM' => 'NOTEDB.pm', # finds $VERSION
|
||||
'NAME' => 'note',
|
||||
'VERSION_FROM' => 'bin/note', # finds $VERSION
|
||||
'EXE_FILES' => [ 'bin/note' ],
|
||||
'PREREQ_PM' => {
|
||||
'IO::File' => 0,
|
||||
'FileHandle' => 0,
|
||||
'File::Spec' => 0,
|
||||
'File::Glob' => 0,
|
||||
'FileHandle' => 0,
|
||||
'Getopt::Long' => 0,
|
||||
'Fcntl' => 0,
|
||||
'IO::Seekable' => 0,
|
||||
'YAML' => 0,
|
||||
},
|
||||
($ExtUtils::MakeMaker::VERSION ge '6.31'? ('LICENSE' => 'perl', ) : ()),
|
||||
'clean' => { FILES => 't/*.out t/test.cfg *~ */*~' }
|
||||
);
|
||||
'PREREQ_PM' => {
|
||||
'IO::File' => 0,
|
||||
'FileHandle' => 0,
|
||||
'File::Spec' => 0,
|
||||
'File::Glob' => 0,
|
||||
'FileHandle' => 0,
|
||||
'Getopt::Long' => 0,
|
||||
'Fcntl' => 0,
|
||||
'IO::Seekable' => 0,
|
||||
'YAML' => 0,
|
||||
},
|
||||
($ExtUtils::MakeMaker::VERSION ge '6.31'? ('LICENSE' => 'perl', ) : ()),
|
||||
'clean' => { FILES => 't/*.out t/test.cfg *~ */*~' }
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user