$ENV{CATALYST_DEVEL_SHAREDIR} = $share_dir;
my $instdir = tempdir(CLEANUP => 1);
+
$ENV{PERL_MM_OPT} = "INSTALL_BASE=$instdir";
+$ENV{INSTALL_BASE} = $instdir;
+if ($ENV{MAKEFLAGS}) {
+ $ENV{MAKEFLAGS} =~ s/PREFIX=[^\s]+//;
+ $ENV{MAKEFLAGS} =~ s/INSTALL_BASE=[^\s]+//;
+}
my $dir = tempdir(CLEANUP => 1);
my $devnull = File::Spec->devnull;
my @files = qw|
Makefile.PL
testapp.conf
+ testapp.psgi
lib/TestApp.pm
lib/TestApp/Controller/Root.pm
README