'CPANPLUS' =>
{
'MAINTAINER' => 'kane',
- 'DISTRIBUTION' => 'BINGOS/CPANPLUS-0.9111.tar.gz',
+ 'DISTRIBUTION' => 'BINGOS/CPANPLUS-0.9112.tar.gz',
'FILES' => q[cpan/CPANPLUS],
'EXCLUDED' => [ qr{^inc/},
qr{^t/dummy-.*\.hidden$},
use vars qw( @EXPORT @ISA $VERSION );
@EXPORT = qw( shell fetch get install );
@ISA = qw( Exporter );
- $VERSION = "0.9111"; #have to hardcode or cpan.org gets unhappy
+ $VERSION = "0.9112"; #have to hardcode or cpan.org gets unhappy
}
### purely for backward compatibility, so we can call it from the commandline:
use IPC::Cmd qw[can_run];
use Locale::Maketext::Simple Class => 'CPANPLUS', Style => 'gettext';
use Module::Load::Conditional qw[check_install];
+use version;
=pod
$Conf->{'conf'}->{'prefer_makefile'} =
( $] >= 5.010001 or
( check_install( module => 'Module::Build', version => '0.32' ) and
- check_install( module => INSTALLER_BUILD, version => '0.24' ) )
+ check_install( module => INSTALLER_BUILD, version => '0.60' ) )
? 0 : 1 );
=item prereqs
=item perlwrapper
+B<DEPRECATED>
+
A string holding the path to the C<cpanp-run-perl> utility bundled
with CPANPLUS, which is used to enable autoflushing in spawned processes.
### we should have a $path by now ideally, if so return it
return $path if defined $path;
+ ### CPANPLUS::Dist::MM doesn't require this anymore
+ ### but CPANPLUS::Dist::Build might if it is less than 0.60
+ my $cpdb = check_install( module => INSTALLER_BUILD );
+ return '' unless
+ $cpdb and eval { version->parse($cpdb->{version}) < version->parse('0.60') };
+
### if not, warn about it and give sensible default.
### XXX try to be a no-op instead then..
### cross your fingers...
### in @INC, stopping us from resolving dependencies on CPANPLUS
### at bootstrap time properly.
- ### XXX this fails under ipc::run due to the extra quotes,
- ### but it works in ipc::open3. however, ipc::open3 doesn't work
- ### on win32/cygwin. XXX TODO get a windows box and sort this out
- # my $cmd = qq[$perl -MEnglish -le ] .
- # QUOTE_PERL_ONE_LINER->(
- # qq[\$OUTPUT_AUTOFLUSH++,do(q($makefile_pl))]
- # )
- # . $mmflags;
-
- # my $flush = OPT_AUTOFLUSH;
- # my $cmd = "$perl $flush $makefile_pl $mmflags";
-
- my $run_perl = $conf->get_program('perlwrapper');
- my $cmd = [$perl, $run_perl, $makefile_pl, @mmflags];
+ my @run_perl = ( '-e', PERL_WRAPPER );
+ my $cmd = [$perl, @run_perl, $makefile_pl, @mmflags];
### set ENV var to tell underlying code this is what we're
### executing.
CPANPLUS::Internals::Report
];
-$VERSION = "0.9111";
+$VERSION = "0.9112";
=pod
return join '::', (caller(2+$lvl))[3]
};
use constant PERL_CORE => 'perl';
+use constant PERL_WRAPPER => 'use strict; BEGIN { my $old = select STDERR; $|++; select $old; $|++; $0 = shift(@ARGV); my $rv = do($0); die $@ if $@; }';
use constant STORABLE_EXT => '.stored';
use constant GET_XS_FILES => sub { my $dir = $_[0] or return;
if( $type and $type eq INSTALLER_BUILD and (
not CPANPLUS::Dist->has_dist_type( INSTALLER_BUILD )
or not $cb->module_tree( INSTALLER_BUILD )
- ->is_uptodate( version => '0.24' )
+ ->is_uptodate( version => '0.60' )
) ) {
### XXX this is for recording purposes only. We *have* to install
### saying 'no such dist type';
### XXX duplicated from CPANPLUS::Selfupdate. fix somehow?
my $href = $self->status->configure_requires || {};
- my $deps = { INSTALLER_BUILD, '0.24', %$href };
+ my $deps = { INSTALLER_BUILD, '0.60', %$href };
$self->status->configure_requires( $deps );
'Parse::CPAN::Meta' => '1.4200', # config_requires support
'ExtUtils::Install' => '1.42', # uninstall outside @INC
( check_install( module => 'CPANPLUS::Dist::Build' )
- ? ( 'CPANPLUS::Dist::Build' => '0.24' ) : () ),
+ ? ( 'CPANPLUS::Dist::Build' => '0.60' ) : () ),
},
features => {
my $cb = shift;
$cb->configure_object->get_conf('prefer_makefile')
? { }
- : { 'CPANPLUS::Dist::Build' => '0.24' };
+ : { 'CPANPLUS::Dist::Build' => '0.60' };
},
sub { return 1 }, # always enabled
],
BEGIN {
use vars qw[ $VERSION @ISA ];
@ISA = qw[ CPANPLUS::Shell::_Base::ReadLine ];
- $VERSION = "0.9111";
+ $VERSION = "0.9112";
}
load CPANPLUS::Shell;
=item *
+L<CPANPLUS> has been upgraded from version 0.9111 to version 0.9112.
+
+=item *
+
L<CPANPLUS::Dist::Build> has been upgraded from version 0.58 to version 0.60.
=item *