File: Makefile.PL

package info (click to toggle)
libemail-simple-perl 2.100-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 256 kB
  • ctags: 29
  • sloc: perl: 658; makefile: 2
file content (38 lines) | stat: -rw-r--r-- 1,097 bytes parent folder | download | duplicates (2)
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
use strict;
use ExtUtils::MakeMaker;

use 5.00503;

# This is so stupid!  We need to make sure that Email::MIME, a downstream
# module, is running a version that doesn't screw around with the guts of
# Email::Simple.
if (eval { require Email::MIME }) {
  unless (eval { Email::MIME->VERSION(1.857) }) {
    warn <<END_ACHTUNG;
### ACHTUNG!  You need to update Email::MIME to a later version, as versions
### before 1.857 meddled in the guts of Email::Simple, which have been changed.
### If you are using an automated installer, this should happen automatically.
###
### This installation will proceed in five seconds.
END_ACHTUNG
    sleep 5;
  }
}

WriteMakefile(
  NAME          => 'Email::Simple',
  VERSION_FROM  => 'lib/Email/Simple.pm',
  (eval { ExtUtils::MakeMaker->VERSION(6.21) } ? (LICENSE => 'perl') : ()),
  PREREQ_PM     => {
    'Test::More' => '0.47',
    'Email::Date::Format' => 0,
  },
  (eval { ExtUtils::MakeMaker->VERSION(6.46) }
    ? (META_MERGE => {
        resources => {
          Repository => 'http://github.com/rjbs/email-simple'
        }
      })
    : ()
  ),
);