Cookie

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

use ExtUtils::MakeMaker;
use strict;
use warnings;

sub MY::distsignature
{
    return << 'EOT';
distsignature : distmeta
	$(NOECHO) ./dev/cleanup.pl
	$(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) -MExtUtils::Manifest=maniadd -e 'eval { maniadd({q{SIGNATURE} => q{Public-key signature (added by MakeMaker)}}) }' \
	  -e '	  or die "Could not add SIGNATURE to MANIFEST: $${'\''@'\''}"' --
	$(NOECHO) cd $(DISTVNAME) && $(TOUCH) SIGNATURE
	cd $(DISTVNAME) && cpansign -s
EOT
}

my %WriteMakefileArgs = (
    NAME                => 'Cookie',
    AUTHOR              => 'Jacques Deguest <jack@deguest.jp>',
    VERSION_FROM        => 'lib/Cookie.pm',
    ABSTRACT_FROM       => 'lib/Cookie.pm',
    PL_FILES            => {},
    PREREQ_PM           => {
        'constant'                      => 0,
        'lib'                           => 0,
        'overload'                      => '1.22',
        'overloading'                   => '0.02',
        'parent'                        => 0,
        'strict'                        => 0,
        'vars'                          => 0,
        'version'                       => 0,
        'warnings'                      => 0,
        'DateTime'                      => '1.52',
        'DateTime::Format::Strptime'    => '1.77',
        'JSON'                          => '4.03',
        'Module::Generic'               => 'v1.3.0',
        'Net::IDN::Encode'              => '2.500',
        'Scalar::Util'                  => '1.50',
        'URI::Escape'                   => '5.09',
        'Wanted'                        => 'v0.1.0',
    },
    TEST_REQUIRES =>
    {
        'open'                  => 0,
        'utf8'                  => 0,
        'Bytes::Random::Secure' => '0.29',
        'File::Find'            => 0,
        'File::Spec'            => 0,
        'File::Which'           => 0,
        'HTTP::Request'         => '6.22',
        'HTTP::Response'        => '6.22',
        'Test::More'            => '1.302162',
        'Test::Time'            => 0,
    },
    LICENSE             => 'perl_5',
    MIN_PERL_VERSION    => 'v5.16.0',
    (MM->can('signature_target') ? (SIGN => 1) : ()),
    dist                => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', DIST_CP => 'cp' },
    clean               => { FILES => 'Cookie-*' },
    ( eval { ExtUtils::MakeMaker->VERSION(6.46) } ? ( META_MERGE => {
        'meta-spec' => { version => 2 },
        dynamic_config => 1,
        resources => {
        #    homepage    => undef,
            repository  => {
                url         => 'git@gitlab.com:jackdeguest/Cookie.git',
                web         => 'https://gitlab.com/jackdeguest/Cookie',
                type        => 'git',
            },
            bugtracker => {
                web         => 'https://gitlab.com/jackdeguest/Cookie/issues',
            },
        },
    }) : ()),
);

# The rest below is for tests under Apache/modperl2
eval
{
    require Apache::TestMM;
};

my @scripts = ();

my $MY_DEBUG = $ENV{COOKIES_DEBUG};
if( !$@ && !$ENV{NO_MOD_PERL} )
{
    print( STDERR "Generating Makefile including modperl\n" ) if( $MY_DEBUG );
    Apache::TestMM->import( qw(test clean) ); #enable 'make test'
    $WriteMakefileArgs{PREREQ_PM}->{ 'Apache::Test' } = 0;

    @scripts = qw( t/TEST );
    # accept the configs from command line
    Apache::TestMM::filter_args();
    my $ref = {@Apache::TestMM::Argv};
    $ref->{_HAS_APACHE_TEST} = 1;
    
    my $config = Apache::TestConfig->thaw->httpd_config;
    my( $has_ssl, $has_perl_ssl, $has_error ) = ( 0, '', 0 );
    $ref->{_HAS_SSL} = 0;
    # require Data::Dump;
    # print( STDERR "Apache::TestConfig->thaw->httpd_config yields: ", Data::Dump::dump( $config ), "\n" ) if( $MY_DEBUG );
    if( ref( $config ) eq 'Apache::TestConfig' )
    {
        $has_ssl = $config->{modules}->{ $config->{vars}->{ssl_module} } ? 1 : 0;
        my $apache_bin = $config->{vars}->{httpd};
        if( !$apache_bin )
        {
            eval
            {



( run in 1.138 second using v1.01-cache-2.11-cpan-98e64b0badf )