~ubuntu-branches/ubuntu/karmic/liborlite-perl/karmic

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Nathan Handler, Brian Cassidy, Nathan Handler, gregor herrmann
  • Date: 2009-06-01 01:53:05 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090601015305-y5iehdm4fx78brya
Tags: 1.22-1
[ Brian Cassidy ] 
* debian/control:
  + bump deps to match upstream
  + add libfile-temp-perl to deps
  + Standards-Version 3.8.1

[ Nathan Handler ]
* New upstream release
* debian/control:
  - Add myself to list of uploaders

[ gregor herrmann ]
* debian/control: slightly improve short description.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
package Module::Install::WriteAll;
3
3
 
4
4
use strict;
5
 
use Module::Install::Base;
 
5
use Module::Install::Base ();
6
6
 
7
7
use vars qw{$VERSION @ISA $ISCORE};
8
8
BEGIN {
9
 
        $VERSION = '0.79';
 
9
        $VERSION = '0.91';;
10
10
        @ISA     = qw{Module::Install::Base};
11
11
        $ISCORE  = 1;
12
12
}
22
22
        );
23
23
 
24
24
        $self->sign(1)                if $args{sign};
25
 
        $self->Meta->write            if $args{meta};
26
25
        $self->admin->WriteAll(%args) if $self->is_admin;
27
26
 
28
27
        $self->check_nmake if $args{check_nmake};
30
29
                $self->makemaker_args( PL_FILES => {} );
31
30
        }
32
31
 
 
32
        # Until ExtUtils::MakeMaker support MYMETA.yml, make sure
 
33
        # we clean it up properly ourself.
 
34
        $self->realclean_files('MYMETA.yml');
 
35
 
33
36
        if ( $args{inline} ) {
34
37
                $self->Inline->write;
35
38
        } else {
36
39
                $self->Makefile->write;
37
40
        }
 
41
 
 
42
        # The Makefile write process adds a couple of dependencies,
 
43
        # so write the META.yml files after the Makefile.
 
44
        if ( $args{meta} ) {
 
45
                $self->Meta->write;
 
46
        }
 
47
 
 
48
        # Experimental support for MYMETA
 
49
        if ( $ENV{X_MYMETA} ) {
 
50
                if ( $ENV{X_MYMETA} eq 'JSON' ) {
 
51
                        $self->Meta->write_mymeta_json;
 
52
                } else {
 
53
                        $self->Meta->write_mymeta_yaml;
 
54
                }
 
55
        }
 
56
 
 
57
        return 1;
38
58
}
39
59
 
40
60
1;