File: Makefile.PL.svn-base

package info (click to toggle)
libtest-email-perl 0.07-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 188 kB
  • ctags: 42
  • sloc: perl: 506; makefile: 15
file content (39 lines) | stat: -rwxr-xr-x 1,135 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
use strict;
use warnings FATAL => 'all';

use ExtUtils::MakeMaker;

# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

my %config = (
    NAME           => 'Test::Email',
    VERSION_FROM   => 'lib/Test/Email.pm', # finds $VERSION
    PREREQ_PM      => {
        'Mail::POP3Client' => 2,
        'MIME::Parser'     => 5.4,
        'MIME::Entity'     => 5.4,
        'Test::Builder'    => 0.7,
        'Mail::Sendmail'   => 0.79, # for tests
    },
    ABSTRACT_FROM  => 'lib/Test/Email.pm',
    AUTHOR         => 'James Tolley <james@cpan.org>',
    test           => { TESTS => 't/05_email.t' },
);

# find out about running tests for POP3
if (! exists $ENV{TEST_POP3_HOST}) {
    print "\nTo run tests for Test::POP3, set ".
        "the following environment variables:\n".
        "TEST_POP3_HOST, TEST_POP3_USER, TEST_POP3_PASS, ".
        "TEST_POP3_SMTP, and TEST_POP3_EMAIL.\n".
        "Then run this script again.\n\n";

    sleep 5;
}
else {
    $config{test}->{TESTS} = join ' ', glob 't/*.t';
}

WriteMakefile(%config);