File: Build.PL

package info (click to toggle)
libapache-session-wrapper-perl 0.19-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 200 kB
  • ctags: 21
  • sloc: perl: 642; makefile: 57
file content (27 lines) | stat: -rw-r--r-- 675 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use strict;

use Module::Build;

my %requires;
eval { require mod_perl };
if ( $@ || $^O =~ /mac|darwin/ )
{
    $requires{'CGI::Cookie'} = 0;
}
else
{
    $requires{'Apache::Cookie'} = 0;
}

Module::Build->new
    ( module_name     => 'Apache::Session::Wrapper',
      license         => 'perl',
      sign            => 1,
      requires        => { 'Apache::Session'  => 1.6,
                           'Class::Container' => 0,
                           'Exception::Class' => 0,
                           'Params::Validate' => 0.70,
                           %requires,
                         },
      create_makefile_pl => 'passthrough',
    )->create_build_script;