-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
30 lines (26 loc) · 1.02 KB
/
Makefile.PL
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.005000;
use ExtUtils::MakeMaker;
use strict;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
my @deps;
unless (eval "use IO::Socket::SSL 0.98; 1") {
my $choose = prompt(
"For https proxy strict checking you need IO::Socket::SSL 0.98+\n".
"Would you like to use https strict checking?",
"y"
);
if ($choose =~ /y/) {
push @deps, 'IO::Socket::SSL', '0.98';
}
}
WriteMakefile(
NAME => 'Net::Proxy::Type',
LICENSE => 'perl',
VERSION_FROM => 'lib/Net/Proxy/Type.pm', # finds $VERSION
PREREQ_PM => { Exporter => 0, 'IO::Socket::INET' => 0, 'IO::Select' => 0, @deps }, # e.g., Module::Name => 1.1
META_MERGE => { resources => {repository => 'https://github.com/olegwtf/p5-Net-Proxy-Type'} },
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'lib/Net/Proxy/Type.pm', # retrieve abstract from module
AUTHOR => 'Oleg G <[email protected]>') : ()),
);