~ubuntu-branches/ubuntu/vivid/libhtml-form-perl/vivid

« back to all changes in this revision

Viewing changes to Makefile.PL

  • Committer: Bazaar Package Importer
  • Author(s): Nicholas Bamber
  • Date: 2011-03-22 23:42:22 UTC
  • Revision ID: james.westby@ubuntu.com-20110322234222-dmpiumpv6bgz3ssa
Tags: upstream-6.00
ImportĀ upstreamĀ versionĀ 6.00

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!perl -w
 
2
 
 
3
require 5.008008;
 
4
use strict;
 
5
use ExtUtils::MakeMaker;
 
6
 
 
7
WriteMakefile(
 
8
    NAME => 'HTML::Form',
 
9
    VERSION_FROM => 'lib/HTML/Form.pm',
 
10
    ABSTRACT_FROM => 'lib/HTML/Form.pm',
 
11
    AUTHOR => 'Gisle Aas <gisle@activestate.com>',
 
12
    LICENSE => "perl",
 
13
    MIN_PERL_VERSION => 5.008008,
 
14
    PREREQ_PM => {
 
15
        'URI' => "1.10",
 
16
        'Encode' => "2",
 
17
        'HTML::TokeParser' => 0,
 
18
        'HTTP::Request' => 6,
 
19
        'HTTP::Request::Common' => 6,
 
20
    },
 
21
    META_MERGE => {
 
22
        resources => {
 
23
            repository => 'http://github.com/gisle/libwww-perl',
 
24
            MailingList => 'mailto:libwww@perl.org',
 
25
        }
 
26
    },
 
27
);
 
28
 
 
29
 
 
30
BEGIN {
 
31
    # compatibility with older versions of MakeMaker
 
32
    my $developer = -f ".gitignore";
 
33
    my %mm_req = (
 
34
        LICENCE => 6.31,
 
35
        META_MERGE => 6.45,
 
36
        META_ADD => 6.45,
 
37
        MIN_PERL_VERSION => 6.48,
 
38
    );
 
39
    undef(*WriteMakefile);
 
40
    *WriteMakefile = sub {
 
41
        my %arg = @_;
 
42
        for (keys %mm_req) {
 
43
            unless (eval { ExtUtils::MakeMaker->VERSION($mm_req{$_}) }) {
 
44
                warn "$_ $@" if $developer;
 
45
                delete $arg{$_};
 
46
            }
 
47
        }
 
48
        ExtUtils::MakeMaker::WriteMakefile(%arg);
 
49
    };
 
50
}