LWP-Protocol-socks

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

use 5.006001;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

my $min_lwp_version = 0;
my @spec_deps;
eval {
    require LWP;
};
if ($@ || $LWP::VERSION >= 6.02) {
    # since LWP 6.02 LWP::Protocol::https was separated
    push @spec_deps, 'LWP::Protocol::https', 6.02;
    $min_lwp_version = 6.02;
}


WriteMakefile(
    NAME              => 'LWP::Protocol::socks',
    VERSION_FROM      => 'lib/LWP/Protocol/socks.pm', # finds $VERSION
    'PREREQ_PM' => {
        'IO::Socket::Socks' => 0.2,
        'IO::Socket::SSL'   => 0.96,
        'LWP'               => $min_lwp_version,
        @spec_deps
    },
    ($] >= 5.005 ?     ## Add these new keywords supported since 5.005
      (ABSTRACT_FROM  => 'lib/LWP/Protocol/socks.pm', # retrieve abstract from module
       AUTHOR         => 'Sheridan C Rawlins <sheridan.rawlins@yahoo.com>') : ()),
);



( run in 2.760 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )