~ubuntu-branches/ubuntu/breezy/libextutils-autoinstall-perl/breezy

« back to all changes in this revision

Viewing changes to lib/ExtUtils/AutoInstall.pm

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2005-04-21 22:04:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050421220449-xjmvfq18fakk0ytx
Tags: 0.61-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# $Revision: #14 $ $Change: 10538 $ $DateTime: 2004/04/29 17:55:36 $ vim: expandtab shiftwidth=4
3
3
 
4
4
package ExtUtils::AutoInstall;
5
 
$ExtUtils::AutoInstall::VERSION = '0.59';
 
5
$ExtUtils::AutoInstall::VERSION = '0.61';
6
6
 
7
7
use strict;
8
8
use Cwd ();
14
14
 
15
15
=head1 VERSION
16
16
 
17
 
This document describes version 0.59 of B<ExtUtils::AutoInstall>,
18
 
released April 30, 2004.
 
17
This document describes version 0.61 of B<ExtUtils::AutoInstall>,
 
18
released October 19, 2004.
19
19
 
20
20
=head1 SYNOPSIS
21
21
 
580
580
    my $cp   = CPANPLUS::Backend->new;
581
581
    my $conf = $cp->configure_object;
582
582
 
583
 
    return unless _can_write($conf->_get_build('base'));
 
583
    return unless _can_write(
 
584
        $conf->can('conf')
 
585
            ? $conf->get_conf('base')       # 0.05x+
 
586
            : $conf->_get_build('base')     # 0.04x
 
587
    );
584
588
 
585
589
    # if we're root, set UNINST=1 to avoid trouble unless user asked for it.
586
590
    my $makeflags = $conf->get_conf('makeflags') || '';
689
693
                $CPAN::META->instance(
690
694
                    'CPAN::Distribution',
691
695
                    $obj->cpan_file,
692
 
                )->{install}
 
696
                )->{install} if $CPAN::META
693
697
            };
694
698
 
695
699
            if ($rv eq 'YES') {