use ExtUtils::MakeMaker 6.48;
use v5.14.2;
eval "use Test::Manifest 1.21";
my %optional = (
Curses => {
'lib/MyCPAN/Indexer/Interface/Curses.pm' => '$(INST_LIBDIR)/Indexer/Interface/Curses.pm',
},
Tk => {
'lib/MyCPAN/Indexer/Interface/Tk.pm' => '$(INST_LIBDIR)/Indexer/Interface/Tk.pm',
},
);
foreach my $module ( keys %optional ) {
my $available = eval "require $module; 1";
unless( $available ) {
print <<"HERE";
$module not available. Skipping optional modules that use it.
If you later want to use it, you'll have to reinstall MyCPAN.
HERE
delete $optional{ $module };
}
}
WriteMakefile(
'NAME' => 'MyCPAN::Indexer',
'ABSTRACT' => 'Index a Perl distribution',
'VERSION_FROM' => 'lib/MyCPAN/Indexer.pm',
'LICENSE' => 'perl',
'AUTHOR' => 'brian d foy <bdfoy@cpan.org>',
'PREREQ_PM' => {
'Archive::Extract::Libarchive' => '0',
'ConfigReader::Simple' => '0',
'CPAN::Checksums' => '0',
'CPAN::PackageDetails' => '0.21',
'Data::Structure::Util' => '0',
'Data::UUID' => '0',
'Digest::MD5' => '0',
'Distribution::Guess::BuildSystem' => '0.11',
'ExtUtils::MakeMaker' => '6.48',
'File::Find::Closures' => '0',
'File::Find' => '0',
'File::Which' => '0',
'List::Util' => '0',
'Log::Log4perl' => '0',
'Module::Extract::Namespaces' => '0.14',
'Module::Extract::Use' => '0.13',
'Module::Extract::VERSION' => '0.13',
'Parallel::ForkManager' => '0',
'Probe::Perl' => '0',
'Proc::ProcessTable' => '0',
'Test::More' => '0.95',
'Test::Output' => '0.13',
'YAML::Syck' => '0',
'YAML::XS' => '0',
'YAML' => '0',
},
clean => { FILES => q|MyCPAN-Indexer-*| },
META_MERGE => {
no_index => {
directory => [ qw(t inc corpus test-corpus) ],
},
resources => {
homepage => 'http://github.com/briandfoy/mycpan-indexer/tree/master',
repository => 'git://github.com/briandfoy/mycpan-indexer.git',
},
},
);