'CPANPLUS' =>
{
'MAINTAINER' => 'kane',
- 'DISTRIBUTION' => 'KANE/CPANPLUS-0.87_03.tar.gz',
+ 'DISTRIBUTION' => 'KANE/CPANPLUS-0.88.tar.gz',
'FILES' => q[lib/CPANPLUS.pm
lib/CPANPLUS/Backend
lib/CPANPLUS/Backend.pm
use vars qw( @EXPORT @ISA $VERSION );
@EXPORT = qw( shell fetch get install );
@ISA = qw( Exporter );
- $VERSION = "0.87_03"; #have to hardcode or cpan.org gets unhappy
+ $VERSION = "0.88"; #have to hardcode or cpan.org gets unhappy
}
### purely for backward compatibility, so we can call it from the commandline:
$head SYNOPSIS
-perl -MCPANPLUS -e "install file://full/path/to/$name"
+To install the modules from this snapshot, run:
+
+ cpanp -i file://full/path/to/${name}.pm
$head CONTENTS
if ( NO_TESTS_DEFINED->( $captured ) ) {
msg( NO_TESTS_DEFINED->( $captured ), 0 )
} else {
- msg( loc( "MAKE TEST passed: %2", $captured ), $verbose );
+ msg( loc( "MAKE TEST passed: %1", $captured ), $verbose );
}
$dist->status->test(1);
=head1 DESCRIPTION
-This document attempts to describe how to easiest develop with the
-CPANPLUS environment, how certain things work and why.
+This document attempts to describe how to develop with the
+CPANPLUS environment most easily, how certain things work and why.
This is basically a quick-start guide to people who want to add
features or patches to CPANPLUS.
=head1 OBTAINING CPANPLUS
-CPANPLUS offers snapshots from the stable and unstable branches.
-After every patch to either of the branches, the snapshot is
-automatically updated.
-
-You can find the stable branch here (which should be equal to the
-CPAN release): L<http://p4.elixus.org/snap/cpanplus-dist.tar.gz>
-
-And the development branch here:
-L<http://p4.elixus.org/snap/cpanplus-devel.tar.gz>
+Checkout CPANPLUS from its Subversion repository at
+L<http://oss.dwim.org/cpanplus-devel> .
=head1 INSTALLING CPANPLUS
CPANPLUS::Internals::Report
];
-$VERSION = "0.87_03";
+$VERSION = "0.88";
=pod
use constant DEFAULT_SOURCE_ENGINE
=> 'CPANPLUS::Internals::Source::Memory';
+use constant TARGET_INIT => 'init';
use constant TARGET_CREATE => 'create';
use constant TARGET_PREPARE => 'prepare';
use constant TARGET_INSTALL => 'install';
DIST: {
+ ### just wanted the $dist object?
+ last DIST if $target eq TARGET_INIT;
+
### first prepare the dist
$dist->prepare( %$args ) or return;
$self->status->prepared(1);
=pod
-=head2 $bool = $self->install([ target => 'prepare|create|install', format => FORMAT_TYPE, extractdir => DIRECTORY, fetchdir => DIRECTORY, prefer_bin => BOOL, force => BOOL, verbose => BOOL, ..... ]);
+=head2 $bool = $self->install([ target => 'init|prepare|create|install', format => FORMAT_TYPE, extractdir => DIRECTORY, fetchdir => DIRECTORY, prefer_bin => BOOL, force => BOOL, verbose => BOOL, ..... ]);
Installs the current module. This includes fetching it and extracting
it, if this hasn't been done yet, as well as creating a distribution
### match this allow list with Dist->_resolve_prereqs
target => { default => TARGET_INSTALL, store => \$target,
allow => [TARGET_PREPARE, TARGET_CREATE,
- TARGET_INSTALL] },
+ TARGET_INSTALL, TARGET_INIT ] },
force => { default => $conf->get_conf('force'), },
verbose => { default => $conf->get_conf('verbose'), },
format => { default => $conf->get_conf('dist_type'),
BEGIN {
use vars qw[ $VERSION @ISA ];
@ISA = qw[ CPANPLUS::Shell::_Base::ReadLine ];
- $VERSION = "0.87_03";
+ $VERSION = "0.88";
}
load CPANPLUS::Shell;
ok( $Mod->fetch, "Fetching module to ".$Mod->status->fetch );
ok( $Mod->extract, "Extracting module to ".$Mod->status->extract );
+### test target => 'init'
+{ my $dist = $Mod->dist( target => TARGET_INIT );
+ ok( $dist, "Dist created with target => " . TARGET_INIT );
+ ok( !$dist->status->prepared,
+ " Prepare was not run" );
+}
+
ok( $Mod->test, "Testing module" );
ok( $Mod->status->dist_cpan->status->test,