File: Makefile.PL

package info (click to toggle)
libhttp-message-perl 6.06-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 292 kB
  • ctags: 156
  • sloc: perl: 3,488; makefile: 2
file content (62 lines) | stat: -rw-r--r-- 1,677 bytes parent folder | download
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
53
54
55
56
57
58
59
60
61
62
#!perl -w

require 5.008001;
use strict;
use ExtUtils::MakeMaker;


WriteMakefile(
    NAME => 'HTTP::Message',
    VERSION_FROM => 'lib/HTTP/Message.pm',
    ABSTRACT => 'HTTP style messages',
    AUTHOR => 'Gisle Aas <gisle@activestate.com>',
    LICENSE => "perl",
    MIN_PERL_VERSION => 5.008001,
    PREREQ_PM => {
        'URI'            => "1.10",
	'HTTP::Date'     => 6,
        'MIME::Base64'   => "2.1",
	'MIME::QuotedPrint' => 0,
	'IO::HTML'       => 0,
	'Encode'         => "2.21", # need mime_name
	'Encode::Locale' => 1,
	'LWP::MediaTypes' => 6,
        'Compress::Raw::Zlib'        => 0,
        'IO::Compress::Gzip'         => 0,
        'IO::Compress::Deflate'      => 0,
        'IO::Compress::Bzip2'        => '2.021',
        'IO::Uncompress::Gunzip'     => 0,
        'IO::Uncompress::Inflate'    => 0,
        'IO::Uncompress::RawInflate' => 0,
        'IO::Uncompress::Bunzip2'    => '2.021',
    },
    META_MERGE => {
	resources => {
            repository => 'http://github.com/libwww-perl/http-message',
	    MailingList => 'mailto:libwww@perl.org',
        }
    },
);


BEGIN {
    # compatibility with older versions of MakeMaker
    my $developer = -f ".gitignore";
    my %mm_req = (
        LICENCE => 6.31,
        META_MERGE => 6.45,
        META_ADD => 6.45,
        MIN_PERL_VERSION => 6.48,
    );
    undef(*WriteMakefile);
    *WriteMakefile = sub {
        my %arg = @_;
        for (keys %mm_req) {
            unless (eval { ExtUtils::MakeMaker->VERSION($mm_req{$_}) }) {
                warn "$_ $@" if $developer;
                delete $arg{$_};
            }
        }
        ExtUtils::MakeMaker::WriteMakefile(%arg);
    };
}