DateTime-Lite

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

EOT
}

# Add inc/ to @INC during testing so stub modules are found.
sub MY::test_via_harness
{
    my( $self, $perl, $tests ) = @_;
    return( qq{\t$perl "-Iinc" "-Iblib/lib" "-Iblib/arch" }
          . qq{"-MExtUtils::Command::MM" "-MTest::Harness" }
          . qq{-e "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" }
          . qq{$tests\n} );
}

sub MY::test_via_script
{
    my( $self, $perl, $tests ) = @_;
    return( qq{\t$perl "-Iinc" "-Iblib/lib" "-Iblib/arch" $tests\n} );
}

my %WriteMakefileArgs = (
    NAME             => 'DateTime::Lite',
    AUTHOR           => 'Jacques Deguest (jack@deguest.jp)',
    VERSION_FROM     => 'lib/DateTime/Lite.pm',
    ABSTRACT_FROM    => 'lib/DateTime/Lite.pm',
    INSTALLDIRS      => ( $] < 5.011 ? 'perl' : 'site' ),
    # 2009-08-23
    MIN_PERL_VERSION => 'v5.10.1',
    LICENSE          => 'perl_5',
    PREREQ_PM        =>
    {
        # Core modules
        'overload'                   => 0,
        'overloading'                => 0,
        'strict'                     => 0,
        'vars'                       => 0,
        # parse() reliable since at least from version 0.43 in 2005-06-06, predating our perl version requirements
        'version'                    => 0,
        'warnings'                   => 0,
        'warnings::register'         => 0,
        'Config'                     => 0,
        'Cwd'                        => 0,
        # Non-core runtime dependencies (minimal set)
        'DateTime::Locale::FromCLDR' => 'v0.8.7',
        # DBD::SQLite is used by DateTime::Lite::TimeZone for the bundled SQLite
        # timezone database. If unavailable, it falls back to DateTime::TimeZone
        # automatically.
        # Foreign key constraints since SQLite v3.6.19 (2009-10-14)
        # DBD::SQLite 1.27 (2009-11-23)
        # utf8 auto decoding from version 1.68 (2021-07-22)
        # 'DBD::SQLite'                => '1.27',
        # 2010-04-29
        # 'DBI'                        => '1.611',
        # DateTime::TimeZone is lazy loaded, and if neither SQLite nor this module is
        # available, this will complain and die.
        # 'DateTime::TimeZone'         => '2.44',
        # 2010-04-02
        # 'JSON'                       => '2.20',
        # JSON backend dependency.
        # JSON::PP is in core since Perl 5.14, so we only need to declare a JSON
        # dependency on older Perls. We use JSON (the wrapper) on Perl 5.10/5.12 because
        # it transparently uses JSON::XS or JSON::PP at runtime, and is available on all
        # CPAN mirrors.
        # On Perl 5.14+, JSON::PP is in core. We still auto-detect faster backends
        # (Cpanel::JSON::XS, JSON::XS) at runtime in DateTime::Lite::TimeZone, but neither
        # is required.
        ( $] < 5.014
            # 2010-04-02
            ? ( 'JSON' => '2.20' )
            : ()
        ),
        'Locale::Unicode'            => 'v0.4.3',
        'POSIX'                      => 0,
        'Scalar::Util'               => 0,
        # 'Storable'                   => 0,
        # Version compatible with perl v5.10
        'Wanted'                     => 'v0.1.0',
    },
    TEST_REQUIRES =>
    {
        'lib'           => '0',
        # Released 2017-11-30
        'Test::More'    => '1.302120',
        'Test::Pod'     => '1.52',
        # Core module
        'Time::Local'   => '0',
    },
    ( $has_cc
        ? (
            XS      => { 'DateTime-Lite.xs' => 'DateTime-Lite.c' },
            OBJECT  => 'DateTime-Lite$(OBJ_EXT)',
        )
        : ()
    ),
    INC    => '-I.',
    (MM->can('signature_target') ? (SIGN => 1) : ()),
    # Do not recurse into subdirectories (prevents old DateTime-Lite-vX.X.X/ directories from triggering a double execution of Makefile.PL)
    DIR    => [],
    dist   => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', DIST_CP => 'cp', PREOP => './dev/cleanup.pl' },
    clean  => { FILES => 'DateTime-Lite-* DateTime-Lite.c DateTime-Lite$(OBJ_EXT)' },
    ( eval { ExtUtils::MakeMaker->VERSION(6.46) } ? ( META_MERGE =>
    {
        'meta-spec'    => { version => 2 },
        dynamic_config => 1,
        no_index       =>
        {
            directory => [ 't', 'inc' ],
        },
        resources =>
        {
            repository =>
            {
                url  => 'git@gitlab.com:jackdeguest/DateTime-Lite.git',
                web  => 'https://gitlab.com/jackdeguest/DateTime-Lite',
                type => 'git',
            },
            bugtracker =>
            {
                web => 'https://gitlab.com/jackdeguest/DateTime-Lite/issues',
            },
        },
        x_contributors => [],



( run in 0.723 second using v1.01-cache-2.11-cpan-7fcb06a456a )