1use ExtUtils::MakeMaker; 2 3# Avoid the loading of a huge number of modules on clients. When 4# someone runs the script as client, it will get a problem with 5# missing "CPAN::Checksums", which is not a problem. 6 7eval "require CPAN::Site"; 8if(!$@ && $CPAN::Site::VERSION <= 1.01 && !$ENV{MARKOV_DEVEL}) 9{ warn <<__WARN; 10 11*** the interface of CPAN::Site has changed a lot with release 1.01 12*** please re-read the documentation. 13 14__WARN 15 sleep 3 16} 17 18WriteMakefile 19 ( NAME => 'CPAN::Site' 20 , ABSTRACT => 'adding site local modules' 21 , VERSION => '1.15' 22 23 , EXE_FILES => [ 'bin/cpansite' ] 24 25 , AUTHOR => 'Mark Overmeer' 26 , PREREQ_PM => 27 { Archive::Tar => 1.00 28 , Archive::Zip => 0 29 , CPAN::Checksums => 0 30 , Getopt::Long => 0 31 , HTTP::Date => 0 32 , IO::Zlib => 0 33 , Log::Report => 0.25 34 , LWP => 0 35 , Test::More => 0.82 36 , version => 0.76 37 } 38 , LICENSE => 'perl' 39 40 , META_MERGE => 41 { 'meta-spec' => { version => 2 } 42 , resources => 43 { repository => 44 { type => 'git' 45 , url => 'https://github.com/markov2/perl5-CPAN-Site.git' 46 , web => 'https://github.com/markov2/perl5-CPAN-Site' 47 } 48 } 49 } 50 ); 51 52#### the next lines are added for OODoc, which generates the 53#### distribution. 54sub MY::postamble { <<__POSTAMBLE } 55 56# for DIST 57RAWDIR = ../public_html/cpan-site/raw 58DISTDIR = ../public_html/cpan-site/source 59LICENSE = perl 60 61# for POD 62FIRST_YEAR = 1998,2005 63EMAIL = markov\@cpan.org 64WEBSITE = http://perl.overmeer.net/CPAN/ 65__POSTAMBLE 66