CPAN
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
}
if ($] < 5.008) {
$prereq_pm->{'IO::Scalar'} = '2.105';
}
if ($^O eq "MSWin32") {
$prereq_pm->{'Socket'} = 2.018; # older barfed and broke clean loading
}
# if they have one of these we declare it as prereq for better reporting
for my $interesting_module (qw(
Archive::Tar
Archive::Zip
CPAN::Checksums
CPAN::Meta
CPAN::Meta::YAML
CPAN::Perl::Releases
Compress::Bzip2
Compress::Zlib
Data::Dumper
Digest::SHA
Digest::MD5
Expect
Exporter
Exporter::Heavy
ExtUtils::CBuilder
File::Copy
File::HomeDir
File::Spec
File::Temp
File::Which
HTTP::Tiny
IO::Compress::Base
IO::Zlib
JSON::PP
Log::Log4perl
LWP::UserAgent
MIME::Base64
Module::Build
Module::Signature
Net::FTP
Parse::CPAN::Meta
Pod::Perldoc
Pod::Perldoc::ToMan
Scalar::Util
Socket
Term::ReadKey
Term::ReadLine::Perl
Test::More
Text::Glob
Text::ParseWords
Text::Wrap
YAML
YAML::Syck
YAML::XS
)) {
eval "require $interesting_module";
if (!$@) {
$prereq_pm->{$interesting_module} ||= 0;
}
}
unless (exists $prereq_pm->{"LWP::UserAgent"} && $] ge '5.006') {
# allow bootstrap with pure perl HTTP, but skip if we have LWP::UserAgent already installed
$prereq_pm->{'HTTP::Tiny'} = '0.005';
}
if ($HAVE_FILE_SPEC) {
# import PAUSE public key to user's keychain
require Config;
my $dir;
for $dir (split /$Config::Config{path_sep}/, $ENV{PATH}) {
my $abs = File::Spec->catfile($dir, 'gpg');
my $cmd;
if ($cmd = MM->maybe_command($abs)) {
print "Importing PAUSE public key into your GnuPG keychain... ";
system($cmd, '--quiet', '--import', <PAUSE*.pub>);
print "done!\n";
print "(You may wish to trust it locally with 'gpg --lsign-key $FINGERPRINT')\n";
last;
}
}
}
if ($HAVE_FILE_SPEC) {
my $have_distroprefs = -d "distroprefs";
my $have_notinchecksums = -f File::Spec->catdir("t","CPAN","authors","id","A","AN","ANDK","NotInChecksums-0.000.tar.gz");
if ($HAVE_MAKE && $have_distroprefs && !$have_notinchecksums) {
warn <<EOW;
####-Note-for-repository-users-####
Please try
make touchtestdistros
before running 'make test'
It should build NotInChecksums-0.000.tar.gz
and correct timestamps for tarballs from the repository
and thus enable a smooth 'make test' experience
####-Note-for-repository-users-####
EOW
}
}
my @sign = (MM->can("signature_target") ? (SIGN => 1) : ());
WriteMakefile(
INSTALLDIRS => ($] < 5.012) ? "perl" : "site",
NAME => 'CPAN',
VERSION => $version,
EXE_FILES => [qw(scripts/cpan scripts/cpan-mirrors)],
PREREQ_PM => $prereq_pm,
($ExtUtils::MakeMaker::VERSION >= 6.3002 ?
(LICENSE => "perl") : (),
),
($ExtUtils::MakeMaker::VERSION >= 6.48 ?
(MIN_PERL_VERSION => '5.006002') : (),
),
clean => {
FILES => "lib/CPAN/Config.pm t/dot-cpan/FTPstats.yml cpan-home t/dot-cpan*",
},
@sign,
($] >= 5.005 ?
(
ABSTRACT_FROM => 'lib/CPAN.pm', # retrieve abstract from module
AUTHOR => 'Andreas Koenig <andreas.koenig.gmwojprw@franz.ak.mind.de>') : (),
( run in 1.311 second using v1.01-cache-2.11-cpan-364913b4093 )