Finance-Bank-Postbank_de

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

# -*- mode: perl; c-basic-offset: 4; indent-tabs-mode: nil; -*-

use strict;
use ExtUtils::MakeMaker qw(WriteMakefile);
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

# Normalize version strings like 6.30_02 to 6.3002,
# so that we can do numerical comparisons on it.
my $eumm_version = $ExtUtils::MakeMaker::VERSION;
$eumm_version =~ s/_//;

my $module = 'Finance::Bank::Postbank_de';
(my $main_file = "lib/$module.pm" ) =~ s!::!/!g;
(my $distbase = $module) =~ s!::!-!g;

my @tests = map { glob $_ } 't/*.t', 't/*/*.t';

my %module = (
    NAME                => $module,
    AUTHOR              => q{Max Maischein <corion@cpan.org>},
    VERSION_FROM        => $main_file,
    ABSTRACT_FROM       => $main_file,
    META_MERGE => {
        "meta-spec" => { version => 2 },
        resources => {
            repository => {
                web => 'https://github.com/Corion/'.$distbase,
                url => "git://github.com/Corion/$distbase.git",
                type => 'git',
            }
        },
        prereqs => {
            develop => {
                requires => {
                    'LWP::ConsoleLogger' => '0.000039', # for convenient diagnosis
                },
            },
        },
        dynamic_config   => 0, # we promise to keep META.* up-to-date
        x_static_install => 1, # we are pure Perl and don't do anything fancy
    },

    ($eumm_version >= 6.3001
      ? ('LICENSE'=> 'perl')
      : ()),

    PL_FILES            => {},
    BUILD_REQUIRES => {
        'ExtUtils::MakeMaker' => 0,
    },

    'PREREQ_PM'    => {
        'WWW::Mechanize'         => 1.52,
        'LWP::Protocol::https'   => 0,
        'HTTP::CookieJar::LWP'   => 0,
        'IO::Socket::SSL'        => 0, # For some constants as to what we want to verify
        'Mozilla::CA'            => 0,
        'Moo'                    => 2,
        'List::Sliding::Changes' => 0.02,
        'Encode'                 => 0, # for decoding the content and dealing with umlauts
        'Filter::signatures'     => 0.15,
        'JSON'                   => 0,
        'Future'                 => 0,
    }, # e.g., Module::Name => 1.1
    MIN_PERL_VERSION => '5.008', # 5.8 for Encode, 5.6 for the syntax
    TEST_REQUIRES => {
        'Test::More'          => 0,
        'Text::Balanced'      => 0,
        'Test::MockObject'    => 0,
        'MIME::Lite'          => 3.00,
        'File::Temp'          => 0,
        'Text::Table'         => 0, # well, author tests, but ...
        'Text::CSV_XS'        => 0,
        'Excel::Writer::XLSX' => 0,
        'Mojolicious::Lite'   => 0,
        'POSIX'               => 0, # just to be complete
    },

    dist                => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
    clean               => { FILES => 'Finance-Bank-Postbank_de-*' },

    test            => { TESTS => join( ' ', @tests ) },
);

# This is so that we can do
#     require 'Makefile.PL'
# and then call get_module_info

sub get_module_info { %module }

# Now check whether we can create the synopsis inline tests

if( ! caller ) {
    # I should maybe use something like Shipwright...
    regen_README($main_file);
    #regen_EXAMPLES();
    WriteMakefile1(get_module_info);

    my $have_test_inline;
    my $lived = eval {
        require Test::Inline;
        $have_test_inline = $Test::Inline::VERSION ge '2.0';
        1;
    };
    undef $@;
    if ($have_test_inline) {
        print "Good - you have Test::Inline\n";
    };

    if ($have_test_inline) {
        print "Generating embedded test files\n";
        my $Tests = Test::Inline->new(
              verbose  => 1,
              output   => 't',
        );
        $Tests->add_class('Finance::Bank::Postbank_de', recursive => 1 );



( run in 0.998 second using v1.01-cache-2.11-cpan-75ffa21a3d4 )