~ubuntu-branches/ubuntu/trusty/libcatalyst-view-tt-perl/trusty

« back to all changes in this revision

Viewing changes to inc/Module/Install/Makefile.pm

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Krzyżaniak (eloy)
  • Date: 2009-03-04 12:17:00 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090304121700-rda77pxmrk31q57c
Tags: 0.29-1
* New upstream release
* Move package under Debian Perl Group umbrella.
* debian/control: 
 + update dependency from libmro-compat-perl, 
 + update Standards-Version to 3.8.0.1 (no changes), 
 + update package to debhelper 7
* debian/rules: use debhelper 7 example
* debian/watch: update to last schema
* debian/copyright: converted to new schema

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
use vars qw{$VERSION $ISCORE @ISA};
9
9
BEGIN {
10
 
        $VERSION = '0.71';
 
10
        $VERSION = '0.77';
11
11
        $ISCORE  = 1;
12
12
        @ISA     = qw{Module::Install::Base};
13
13
}
36
36
 
37
37
sub makemaker_args {
38
38
        my $self = shift;
39
 
        my $args = ($self->{makemaker_args} ||= {});
40
 
          %$args = ( %$args, @_ ) if @_;
41
 
        $args;
 
39
        my $args = ( $self->{makemaker_args} ||= {} );
 
40
        %$args = ( %$args, @_ );
 
41
        return $args;
42
42
}
43
43
 
44
44
# For mm args that take multiple space-seperated args,
116
116
 
117
117
        # Make sure we have a new enough
118
118
        require ExtUtils::MakeMaker;
119
 
        $self->configure_requires( 'ExtUtils::MakeMaker' => $ExtUtils::MakeMaker::VERSION );
 
119
 
 
120
        # MakeMaker can complain about module versions that include
 
121
        # an underscore, even though its own version may contain one!
 
122
        # Hence the funny regexp to get rid of it.  See RT #35800
 
123
        # for details.
 
124
 
 
125
        $self->configure_requires( 'ExtUtils::MakeMaker' => $ExtUtils::MakeMaker::VERSION =~ /^(\d+\.\d+)/ );
120
126
 
121
127
        # Generate the 
122
128
        my $args = $self->makemaker_args;
175
181
 
176
182
        my $user_preop = delete $args{dist}->{PREOP};
177
183
        if (my $preop = $self->admin->preop($user_preop)) {
178
 
                $args{dist} = $preop;
 
184
                foreach my $key ( keys %$preop ) {
 
185
                        $args{dist}->{$key} = $preop->{$key};
 
186
                }
179
187
        }
180
188
 
181
189
        my $mm = ExtUtils::MakeMaker::WriteMakefile(%args);
242
250
 
243
251
__END__
244
252
 
245
 
#line 371
 
253
#line 379