File: Makefile.PL

package info (click to toggle)
liblwp-protocol-socks-perl 1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, jessie-kfreebsd, sid, stretch
  • size: 96 kB
  • ctags: 20
  • sloc: perl: 140; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 941 bytes parent folder | download | duplicates (2)
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
28
29
30
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>') : ()),
);