use ExtUtils::MakeMaker; WriteMakefile( 'NAME' => 'Net::OAI::Harvester', 'DISTNAME' => 'OAI-Harvester', 'ABSTRACT' => 'A package for harvesting metadata using OAI-PMH', 'LICENSE' => 'perl', 'VERSION_FROM' => 'lib/Net/OAI/Harvester.pm', 'PMLIBDIRS' => [ qw( lib/ ) ], 'AUTHOR' => 'Ed Summers ', 'MIN_PERL_VERSION' => '5.8.0', 'PERL_MALLOC_OK' => 1, 'PREREQ_PM' => { 'LWP::UserAgent' => '2.0', 'Storable' => '2.0', 'URI' => '1.3', 'XML::SAX' => '0.12', 'XML::SAX::Base' => '1.04', 'Carp' => 0, 'File::Temp' => 0, 'IO::File' => 0, }, 'CONFIGURE_REQUIRES' => { 'XML::SAX' => 0, }, EXE_FILES => [ 'bin/oai-listsets', 'bin/oai-listrecords', 'bin/oai-dump' ], PL_FILES => {}, SIGN => 0, ); ## if they either don't have XML::SAX::ExpatXS or XML::SAX cannot locate it ## (there are notorious problems with respect to parserdetails.ini) ## tell them they might want to get it eval( 'use XML::SAX' ); # existence was not enforced by the constructor above... unless ( $@ ) { my $found = 0; my $any = 0; foreach my $parser ( @{ XML::SAX->parsers() } ) { $any ++; $found = 1 if $parser->{ Name } eq 'XML::SAX::ExpatXS'; }; if ( $any ) { unless ( $found ) { print <