summaryrefslogtreecommitdiffstats
path: root/inc/Module/Install/AutoInstall.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-11-17 00:07:42 -0600
committerJesse Luehrs <doy@tozt.net>2009-11-17 00:07:42 -0600
commitadf1468b40da591d6eb27e03125ce3dfdf08977a (patch)
treeedfad7b46a8137344fd0d01a5c67504f2a5b0fa5 /inc/Module/Install/AutoInstall.pm
parentb26a073d490419d0619fd4e4381fc4a733a5dcbc (diff)
downloadgames-word-adf1468b40da591d6eb27e03125ce3dfdf08977a.tar.gz
games-word-adf1468b40da591d6eb27e03125ce3dfdf08977a.zip
convert to dzil
Diffstat (limited to 'inc/Module/Install/AutoInstall.pm')
-rw-r--r--inc/Module/Install/AutoInstall.pm61
1 files changed, 0 insertions, 61 deletions
diff --git a/inc/Module/Install/AutoInstall.pm b/inc/Module/Install/AutoInstall.pm
deleted file mode 100644
index 8b3bcaa..0000000
--- a/inc/Module/Install/AutoInstall.pm
+++ /dev/null
@@ -1,61 +0,0 @@
-#line 1
-package Module::Install::AutoInstall;
-
-use strict;
-use Module::Install::Base;
-
-use vars qw{$VERSION $ISCORE @ISA};
-BEGIN {
- $VERSION = '0.77';
- $ISCORE = 1;
- @ISA = qw{Module::Install::Base};
-}
-
-sub AutoInstall { $_[0] }
-
-sub run {
- my $self = shift;
- $self->auto_install_now(@_);
-}
-
-sub write {
- my $self = shift;
- $self->auto_install(@_);
-}
-
-sub auto_install {
- my $self = shift;
- return if $self->{done}++;
-
- # Flatten array of arrays into a single array
- my @core = map @$_, map @$_, grep ref,
- $self->build_requires, $self->requires;
-
- my @config = @_;
-
- # We'll need Module::AutoInstall
- $self->include('Module::AutoInstall');
- require Module::AutoInstall;
-
- Module::AutoInstall->import(
- (@config ? (-config => \@config) : ()),
- (@core ? (-core => \@core) : ()),
- $self->features,
- );
-
- $self->makemaker_args( Module::AutoInstall::_make_args() );
-
- my $class = ref($self);
- $self->postamble(
- "# --- $class section:\n" .
- Module::AutoInstall::postamble()
- );
-}
-
-sub auto_install_now {
- my $self = shift;
- $self->auto_install(@_);
- Module::AutoInstall::do_install();
-}
-
-1;