The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!perl -w

require 5.008001;
use strict;
use ExtUtils::MakeMaker;
use Getopt::Long qw(GetOptions);

WriteMakefile(
    NAME => 'LWP::Protocol::https',
    VERSION_FROM => 'lib/LWP/Protocol/https.pm',
    ABSTRACT_FROM => 'lib/LWP/Protocol/https.pm',
    AUTHOR => 'Gisle Aas <gisle@activestate.com>',
    LICENSE => "perl",
    MIN_PERL_VERSION => 5.008001,
    PREREQ_PM => {
	'LWP::UserAgent' => '6.04',
	'Net::HTTPS' => 6,
	'IO::Socket::SSL' => "1.54",
	'Mozilla::CA' => "20110101",
    },
    META_MERGE => {
	resources => {
            repository => 'http://github.com/libwww-perl/lwp-protocol-https',
	    MailingList => 'mailto:libwww@perl.org',
        }
    },
);

BEGIN {
    # compatibility with older versions of MakeMaker
    my $developer = -f ".gitignore";
    my %mm_req = (
        LICENCE => 6.31,
        META_MERGE => 6.45,
        META_ADD => 6.45,
        MIN_PERL_VERSION => 6.48,
    );
    undef(*WriteMakefile);
    *WriteMakefile = sub {
        my %arg = @_;
        for (keys %mm_req) {
            unless (eval { ExtUtils::MakeMaker->VERSION($mm_req{$_}) }) {
                warn "$_ $@" if $developer;
                delete $arg{$_};
            }
        }
        ExtUtils::MakeMaker::WriteMakefile(%arg);
    };
}