use 5.008; use strict; use warnings; use Config; use ExtUtils::MakeMaker qw{WriteMakefile prompt}; use Getopt::Std; our $VERSION = '0.018'; my $vers = ''; my %opt; getopts('ny', \%opt) or die <', $fno) or die "Unable to open $fno: $!\n"; print $fho "$Config{startperl}\n"; while (<$fhi>) {print $fho $_} close $fho; close $fhi; } @clean_files = @exe_files = map {"[.bin]$_.com"} @exe_files; } else { @exe_files = map {"bin/$_"} @exe_files; } (my $mmv = ExtUtils::MakeMaker->VERSION) =~ s/_//g; my %attr = ( NAME => 'Astro::SIMBAD::Client', VERSION_FROM => 'lib/Astro/SIMBAD/Client.pm', PREREQ_PM => { 'HTML::Entities' => 0, 'LWP::UserAgent' => 0, 'Scalar::Util' => 1.01, # Not in Perl 5.6. 'SOAP::Lite' => 0, 'URI::Escape' => 0, 'XML::DoubleEncodedEntities' => 1.0, }, PL_FILES => {}, # Prevent old MakeMaker from running Build.PL EXE_FILES => \@exe_files, realclean => {FILES => join ' ', @clean_files}, 'dist' => {COMPRESS => 'gzip', SUFFIX => 'gz'}, AUTHOR => 'Tom Wyant (wyant@cpan.org)', ABSTRACT => 'Fetch astronomical data from SIMBAD 4.', ); $mmv >= 6.31 and $attr{LICENSE} = 'perl'; $mmv >= 6.4501 and $attr{META_MERGE} = { build_requires => { #### 'Test::More' => 0.40, }, resources => { license => 'http://dev.perl.org/licenses/', }, }; WriteMakefile (%attr);