perl-util.patch 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. Index: Devel-StackTrace-1.10/Build.PL
  2. --- Devel-StackTrace-1.10/Build.PL.orig 2004-03-10 22:24:09.000000000 +0100
  3. +++ Devel-StackTrace-1.10/Build.PL 2004-03-17 08:43:17.000000000 +0100
  4. @@ -1,14 +0,0 @@
  5. -use strict;
  6. -
  7. -use Module::Build;
  8. -
  9. -my $build =
  10. - Module::Build->new( module_name => 'Devel::StackTrace',
  11. - license => 'perl',
  12. - requires => { 'Test::More' => '0.46'
  13. - },
  14. - sign => 1,
  15. - create_makefile_pl => 'passthrough',
  16. - );
  17. -
  18. -$build->create_build_script;
  19. Index: Devel-StackTrace-1.10/Makefile.PL
  20. --- Devel-StackTrace-1.10/Makefile.PL.orig 2004-03-10 22:24:09.000000000 +0100
  21. +++ Devel-StackTrace-1.10/Makefile.PL 2004-03-17 08:42:56.000000000 +0100
  22. @@ -1,29 +1,8 @@
  23. -# Note: this file was auto-generated by Module::Build::Compat version 0.03
  24. -
  25. - unless (eval "use Module::Build::Compat 0.02; 1" ) {
  26. - print "This module requires Module::Build to install itself.\n";
  27. -
  28. - require ExtUtils::MakeMaker;
  29. - my $yn = ExtUtils::MakeMaker::prompt
  30. - (' Install Module::Build now from CPAN?', 'y');
  31. -
  32. - unless ($yn =~ /^y/i) {
  33. - die " *** Cannot install without Module::Build. Exiting ...\n";
  34. - }
  35. -
  36. - require Cwd;
  37. - require File::Spec;
  38. - require CPAN;
  39. -
  40. - # Save this 'cause CPAN will chdir all over the place.
  41. - my $cwd = Cwd::cwd();
  42. - my $makefile = File::Spec->rel2abs($0);
  43. -
  44. - CPAN::Shell->install('Module::Build::Compat')
  45. - or die " *** Cannot install without Module::Build. Exiting ...\n";
  46. -
  47. - chdir $cwd or die "Cannot chdir() back to $cwd: $!";
  48. - exec $^X, $makefile, @ARGV; # Redo now that we have Module::Build
  49. - }
  50. - Module::Build::Compat->run_build_pl(args => \@ARGV);
  51. - Module::Build::Compat->write_makefile(build_class => 'Module::Build');
  52. +use 5.006;
  53. +use ExtUtils::MakeMaker;
  54. +WriteMakefile(
  55. + NAME => 'Devel::StackTrace',
  56. + VERSION_FROM => 'lib/Devel/StackTrace.pm',
  57. + PREREQ_PM => { Test::More => "0.46", },
  58. + ABSTRACT_FROM => 'lib/Devel/StackTrace.pm',
  59. +);