~ubuntu-branches/ubuntu/wily/libarchive-extract-perl/wily-proposed

« back to all changes in this revision

Viewing changes to Makefile.PL

  • Committer: Package Import Robot
  • Author(s): gregor herrmann
  • Date: 2013-05-20 20:19:54 UTC
  • Revision ID: package-import@ubuntu.com-20130520201954-x1heq0x04ln5kqnq
Tags: upstream-0.68
ImportĀ upstreamĀ versionĀ 0.68

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
use ExtUtils::MakeMaker;
 
2
use strict;
 
3
 
 
4
WriteMakefile1(
 
5
    LICENSE => 'perl',
 
6
    META_MERGE => {
 
7
        resources => {
 
8
            repository => 'https://github.com/jib/archive-extract',
 
9
        },
 
10
    },
 
11
    NAME            => 'Archive::Extract',
 
12
    VERSION_FROM    => 'lib/Archive/Extract.pm', # finds $VERSION
 
13
    dist            => { COMPRESS => 'gzip -9f', SUFFIX => 'gz' },
 
14
    PREREQ_PM       => {
 
15
                        'if'                        => 0,
 
16
                        'IPC::Cmd'                  => 0.64, # pipe fix
 
17
                        'Test::More'                => 0,
 
18
                        'File::Spec'                => 0.82,
 
19
                        'File::Path'                => 0,
 
20
                        'File::Basename'            => 0,
 
21
                        'Params::Check'             => 0.07,
 
22
                        'Module::Load::Conditional' => 0.04,
 
23
                        'Locale::Maketext::Simple'  => 0,
 
24
                    },
 
25
    INSTALLDIRS     => ( $] >= 5.009005 && $] < 5.012 ? 'perl' : 'site' ),
 
26
    AUTHOR          => 'Jos Boumans <kane[at]cpan.org>',
 
27
        ABSTRACT        => 'Generic archive extracting mechanism'
 
28
);
 
29
 
 
30
sub WriteMakefile1 {  #Written by Alexandr Ciornii, version 0.21. Added by eumm-upgrade.
 
31
    my %params=@_;
 
32
    my $eumm_version=$ExtUtils::MakeMaker::VERSION;
 
33
    $eumm_version=eval $eumm_version;
 
34
    die "EXTRA_META is deprecated" if exists $params{EXTRA_META};
 
35
    die "License not specified" if not exists $params{LICENSE};
 
36
    if ($params{BUILD_REQUIRES} and $eumm_version < 6.5503) {
 
37
        #EUMM 6.5502 has problems with BUILD_REQUIRES
 
38
        $params{PREREQ_PM}={ %{$params{PREREQ_PM} || {}} , %{$params{BUILD_REQUIRES}} };
 
39
        delete $params{BUILD_REQUIRES};
 
40
    }
 
41
    delete $params{CONFIGURE_REQUIRES} if $eumm_version < 6.52;
 
42
    delete $params{MIN_PERL_VERSION} if $eumm_version < 6.48;
 
43
    delete $params{META_MERGE} if $eumm_version < 6.46;
 
44
    delete $params{META_ADD} if $eumm_version < 6.46;
 
45
    delete $params{LICENSE} if $eumm_version < 6.31;
 
46
    delete $params{AUTHOR} if $] < 5.005;
 
47
    delete $params{ABSTRACT_FROM} if $] < 5.005;
 
48
    delete $params{BINARY_LOCATION} if $] < 5.005;
 
49
 
 
50
    WriteMakefile(%params);
 
51
}