summaryrefslogtreecommitdiff
path: root/Makefile.PL
blob: 5f0f02fcb766fdb7abdf6f5e41257481d0dc63ed (plain) (blame)
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
44
45
46
47
48
49
50
51
52
use 5.006;
use strict;
use warnings;
use ExtUtils::MakeMaker;

my %WriteMakefileArgs = (
        "NAME"                  =>      'POE::Component::Client::WebSocket',
        "AUTHOR"                =>      q{Paul G Webster <daemon@cpan.org>},
        "MIN_PERL_VERSION"      =>      "5.006",
        "ABSTRACT"              =>      "A simplistic websocket client for use in POE applications.",
        "CONFIGURE_REQUIRES"    =>      { "ExtUtils::MakeMaker" => 0 },
        "DISTNAME"              =>      "POE-Component-Client-WebSocket",
        "LICENSE"               =>      "artistic_2",
        "PREREQ_PM"             =>      {
                "POE"                           =>      0,
                "POE::Filter::SSL"              =>      0,
                "POE::Filter::HTTP::Parser"     =>      0,
                "POE::Filter::Stackable"        =>      0,
                "URI"                           =>      0,
                "MIME::Base64"                  =>      0,
                "Protocol::WebSocket::Frame"    =>      0,
        },
        TEST_REQUIRES          =>      {
                'Test::More'                    =>      0,
        },
        VERSION_FROM           =>       'lib/POE/Component/Client/WebSocket.pm',
        "test" => {
                "TESTS"        => "t/*.t"
        }
);

my %FallbackPrereqs = (
        "POE"                           =>      0,
        "POE::Filter::SSL"              =>      0,
        "POE::Filter::HTTP::Parser"     =>      0,
        "POE::Filter::Stackable"        =>      0,
        "URI"                           =>      0,
        "MIME::Base64"                  =>      0,
        "Protocol::WebSocket::Frame"    =>      0,
);

unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
  delete $WriteMakefileArgs{TEST_REQUIRES};
  delete $WriteMakefileArgs{BUILD_REQUIRES};
  $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
 
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
  unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
 
WriteMakefile(%WriteMakefileArgs);