]> git.vpit.fr Git - perl/modules/Sub-Op.git/blobdiff - Makefile.PL
B::Deparse is also a build_requires (even if it's not used)
[perl/modules/Sub-Op.git] / Makefile.PL
index 248c76f9d94fd3cca50e3c0acd1fb9dbed59a3b2..333dac0c4def2bb379555699cb1d0c12a0ae6fa1 100644 (file)
@@ -14,7 +14,8 @@ $file = "lib/$file.pm";
 my %PREREQ_PM = (
  'B::Hooks::EndOfScope' => 0,
  'DynaLoader'           => 0,
- 'Variable::Magic'      => '0.39',
+ 'Scalar::Util'         => 0,
+ 'Variable::Magic'      => '0.40',
 );
 
 my %META = (
@@ -23,6 +24,7 @@ my %META = (
   'ExtUtils::MakeMaker' => 0,
  },
  build_requires => {
+  'B::Deparse'          => 0,
   'Cwd'                 => 0,
   'ExtUtils::Depends'   => 0,
   'ExtUtils::MakeMaker' => 0,
@@ -79,6 +81,7 @@ WriteMakefile(
  open my $fh, '>', $args_dat or die "open(>$args_dat): $!";
  for (@ARGV) {
   my $arg = $_;
+  $arg =~ s{\s*(['"])\s*(.*)\s*\1\s*$}{$2}s;
   $arg =~ s{([^=/.a-zA-Z0-9-])}{sprintf "[%d]", ord $1}ge;
   print $fh "$arg\n";
  }
@@ -88,11 +91,11 @@ sub MY::postamble {
  <<' POSTAMBLE';
 configure_test.pl: args.dat
 
-t/Sub-Op-Test/Makefile: configure_test.pl
+t/Sub-Op-LexicalSub/Makefile: configure_test.pl
        $(FULLPERLRUN) configure_test.pl
 
-all clean:: t/Sub-Op-Test/Makefile
-       cd t/Sub-Op-Test && $(MAKE) $@
+all clean:: t/Sub-Op-LexicalSub/Makefile
+       cd t/Sub-Op-LexicalSub && $(MAKE) $@
 
 clean::
        $(RM_RF) args.dat