2015-01-12 11:17:34 +01:00
|
|
|
#
|
2015-02-12 15:18:18 +01:00
|
|
|
# Copyright (c) 2011-2015 T.v.Dein <tlinden |AT| cpan.org>.
|
|
|
|
|
#
|
|
|
|
|
# Licensed under the terms of the Artistic License 2.0
|
|
|
|
|
# see: http://www.perlfoundation.org/artistic_license_2_0
|
2015-01-12 11:17:34 +01:00
|
|
|
#
|
|
|
|
|
|
2012-07-20 12:58:07 +02:00
|
|
|
require 5.004;
|
|
|
|
|
use ExtUtils::MakeMaker;
|
|
|
|
|
|
2012-11-19 11:57:15 +01:00
|
|
|
my %optional = (
|
|
|
|
|
'Bytes::Random::Secure' => 0.09,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
foreach my $module (sort keys %optional) {
|
|
|
|
|
eval "require $module";
|
|
|
|
|
if ($@) {
|
|
|
|
|
warn("Optional module $module not installed, $optional{$module}\n");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2016-03-14 08:35:06 +01:00
|
|
|
my %params = (
|
2012-07-20 12:58:07 +02:00
|
|
|
'NAME' => 'Crypt::PWSafe3',
|
|
|
|
|
'VERSION_FROM' => 'lib/Crypt/PWSafe3.pm',
|
|
|
|
|
'PREREQ_PM' => { 'Digest::HMAC' => 1.00,
|
|
|
|
|
'Digest::SHA' => 1.00,
|
|
|
|
|
'Crypt::CBC' => 2.30,
|
|
|
|
|
'Crypt::ECB' => 1.45,
|
|
|
|
|
'Crypt::Twofish' => 2.14,
|
|
|
|
|
'Data::UUID' => 1.217,
|
|
|
|
|
'Shell' => 0.5,
|
2015-01-12 11:17:34 +01:00
|
|
|
'File::Temp' => 0,
|
2012-07-20 12:58:07 +02:00
|
|
|
},
|
2015-02-12 15:18:18 +01:00
|
|
|
'AUTHOR' => 'T.v.Dein <tlinden@cpan.org>',
|
2012-07-20 12:58:07 +02:00
|
|
|
'clean' => {
|
|
|
|
|
FILES => 't/*.out *~ */*~ */*/*~ */*/*/*~'
|
|
|
|
|
},
|
2015-02-12 15:32:52 +01:00
|
|
|
($ExtUtils::MakeMaker::VERSION >= 6.3002 ? ('LICENSE' => 'perl', ) : ()),
|
2012-07-20 12:58:07 +02:00
|
|
|
);
|
|
|
|
|
|
2020-05-29 09:18:34 +01:00
|
|
|
# Already tried requiring Bytes::Random::Secure earlier, so now check the version
|
|
|
|
|
# and if it's OK, add a dependency on it; otherwise, fall back to Crypt::Random
|
|
|
|
|
if (eval { Bytes::Random::Secure->VERSION('0.09') }) {
|
|
|
|
|
$params{'PREREQ_PM'}{'Bytes::Random::Secure'} = 0.09;
|
|
|
|
|
} else {
|
|
|
|
|
$params{'PREREQ_PM'}{'Crypt::Random'} = 1.25;
|
|
|
|
|
};
|
|
|
|
|
|
2016-03-14 08:35:06 +01:00
|
|
|
if ( $ExtUtils::MakeMaker::VERSION ge '6.46' ) {
|
|
|
|
|
$params{META_MERGE} = {
|
|
|
|
|
resources => {
|
|
|
|
|
homepage => 'http://www.daemon.de/',
|
|
|
|
|
bugtracker => 'http://github.com/tlinden/Crypt--PWSafe3',
|
|
|
|
|
license => 'http://www.perlfoundation.org/artistic_license_2_0',
|
|
|
|
|
repository => 'git://github.com/tlinden/Crypt--PWSafe3.git',
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
WriteMakefile( %params );
|