Net-INET6Glue

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

use ExtUtils::MakeMaker 6.46;
require 5.008;
my $xt = prompt( 
    "Should I do external tests?\n".
    "These tests will fail if there is no internet connection or if a firewall\n".
    "blocks active or passive IPv6 FTP traffic.\n".
    "[y/N]", 
    'n' 
);

my %INET6 = ( 'IO::Socket::IP' => 0.25 );
if ( ! eval "require IO::Socket::IP" || $IO::Socket::IP::VERSION < 0.25
    and eval "require IO::Socket::INET6" 
    and $IO::Socket::INET6::VERSION >= 2.54 ) {
    %INET6 = ( 'IO::Socket::INET6' => 2.54 );
    warn "using IO::Socket::INET6 instead of IO::Socket::IP\n";
}
    
WriteMakefile(
    NAME => 'Net::INET6Glue',
    AUTHOR => "Steffen Ullrich <sullr@cpan.org>",
    LICENSE => 'perl',
    VERSION_FROM => 'lib/Net/INET6Glue.pm',
    PREREQ_PM => {
	%INET6,
	'Net::FTP' => 2.75,
    },
    META_MERGE => {
	resources => {
	    license     => 'http://dev.perl.org/licenses/',
	    homepage    => 'https://github.com/noxxi/p5-net-inet6glue',
	    bugtracker  => 'https://github.com/noxxi/p5-net-inet6glue/issues',
	    repository  => 'https://github.com/noxxi/p5-net-inet6glue',
	},
    },
    $xt =~m{^y}i ? ( test => { TESTS => 't/*.t t/external/*.t' }):(),
);



( run in 0.617 second using v1.01-cache-2.11-cpan-71847e10f99 )