"Fossies" - the Fresh Open Source Software Archive

Member "Apache-Session-1.93/Makefile.PL" (21 Sep 2010, 2762 Bytes) of package /linux/www/Apache-Session-1.93.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 use 5.005; #VERSION_FROM in Makefile.PL
    2 #Symbol.pm requires 5.002
    3 #5.004 almost 11 years ago, earliest version supported by perlver
    4 #5.003_07 earliest version on CPAN
    5 
    6 use ExtUtils::MakeMaker;
    7 
    8 print << 'EOT';
    9 
   10 *** REQUEST ***
   11 Please use Test::Reporter to report test results - it's the only way to measure
   12 popularity of distribution.
   13 
   14 EOT
   15 
   16 if ($]<5.006) {
   17   print << 'EOT1';
   18 If you really use perl older than 5.6 - write to alexchorny[AT]gmail.com
   19 and tell me what version do you use, and why.
   20 EOT1
   21   prompt('continue','y');
   22 }
   23 
   24 WriteMakefile1(
   25     NAME         => "Apache::Session",
   26     VERSION_FROM => "lib/Apache/Session.pm",
   27     MIN_PERL_VERSION => 5.005,
   28     META_MERGE => {
   29       resources=> {
   30         repository => 'http://github.com/chorny/Apache-Session',
   31       },
   32       keywords => ['CGI','session','web'],
   33     },
   34     'LICENSE'       => 'perl',
   35     PREREQ_PM    => {
   36                      'File::Temp'      => 0, #core from 5.6.1
   37                      'Storable'        => '0.6', #Will be raised later
   38                      'constant'        => 0, #Available on CPAN now
   39 #                     'MIME::Base64'    => 0, #new versions require 5.6
   40 #                     'DB_File'         => 0, #test
   41                      'Digest::MD5'     => 0, #core from 5.8
   42                      'IO::File'        => 0, #core
   43                     },
   44     BUILD_REQUIRES => {
   45                      'Test::More'      => '0.47', #Build
   46                      'Test::Deep'      => '0.082', #Build
   47                      'Test::Exception' => '0.15', #Build
   48     },
   49     AUTHOR          => 'Casey West <casey[at]geeknest.com>',
   50     ABSTRACT        => 'A persistence framework for session data',
   51     'PL_FILES' => {},
   52 );
   53 
   54 sub WriteMakefile1 {  #Written by Alexandr Ciornii, version 0.21. Added by eumm-upgrade.
   55   my %params=@_;
   56   my $eumm_version=$ExtUtils::MakeMaker::VERSION;
   57   $eumm_version=eval $eumm_version;
   58   die "EXTRA_META is deprecated" if exists $params{EXTRA_META};
   59   die "License not specified" if not exists $params{LICENSE};
   60   if ($params{BUILD_REQUIRES} and $eumm_version < 6.5503) {
   61     #EUMM 6.5502 has problems with BUILD_REQUIRES
   62     $params{PREREQ_PM}={ %{$params{PREREQ_PM} || {}} , %{$params{BUILD_REQUIRES}} };
   63     delete $params{BUILD_REQUIRES};
   64   }
   65   delete $params{CONFIGURE_REQUIRES} if $eumm_version < 6.52;
   66   delete $params{MIN_PERL_VERSION} if $eumm_version < 6.48;
   67   delete $params{META_MERGE} if $eumm_version < 6.46;
   68   delete $params{META_ADD} if $eumm_version < 6.46;
   69   delete $params{LICENSE} if $eumm_version < 6.31;
   70   delete $params{AUTHOR} if $] < 5.005;
   71   delete $params{ABSTRACT_FROM} if $] < 5.005;
   72   delete $params{BINARY_LOCATION} if $] < 5.005;
   73 
   74   WriteMakefile(%params);
   75 }
   76