File: Makefile.PL

package info (click to toggle)
libmail-mboxparser-perl 0.55-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 440 kB
  • sloc: perl: 1,011; makefile: 2
file content (43 lines) | stat: -rw-r--r-- 1,290 bytes parent folder | download | duplicates (7)
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
40
41
42
43
use ExtUtils::MakeMaker;

use constant MMMPARSER => eval { require Mail::Mbox::MessageParser; 1 } || 0;

if (!MMMPARSER) {
    warn <<EOWARN;
*******************
You don't have Mail::Mbox::MessageParser installed. If you want to get
significantly faster parsing, you should install this module from the CPAN.

If you do so, you are advised to do it before issuing 'make test' on this
module because otherwise the new parsing routines can't be tested on your
platform.
*******************
EOWARN
}

eval { require FileHandle::Unget };

if (MMMPARSER && !$@ && FileHandle::Unget->VERSION < 0.13) {
    die <<EOCROAK;
*******************
Since you have Mail::Mbox::MessageParser installed, you also need
version 0.13 of FileHandle::Unget. 

Please install it before running me again.
*******************
EOCROAK
}

WriteMakefile(
    AUTHOR       => 'Tassilo v. Parseval <tassilo.parseval@post.rwth-aachen.de',
    NAME         => 'Mail::MboxParser',
    PMLIBDIRS    => ['MboxParser'],
    VERSION_FROM => 'MboxParser.pm', 
    PREREQ_PM    => { MIME::Tools               => 5.0,
                      MIME::QuotedPrint         => 0, 
		      MIME::Base64		=> 0,
		      File::Temp		=> 0,
                    },
    DISTNAME     => 'Mail-MboxParser',
    clean	 => { FILES => "t/cache" },
);