js.patch 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. Index: JavaScript-SpiderMonkey-0.17/Makefile.PL
  2. --- JavaScript-SpiderMonkey-0.17/Makefile.PL.orig 2006-07-22 22:49:27 +0200
  3. +++ JavaScript-SpiderMonkey-0.17/Makefile.PL 2006-07-22 22:51:30 +0200
  4. @@ -27,6 +27,7 @@
  5. );
  6. my %possible_install_paths = (
  7. + "../js/.libs" => "../js/src",
  8. "../js/src/*" => "../js/src",
  9. "/usr/lib" => "/usr/include",
  10. "/usr/local/lib" => "/usr/local/include",
  11. @@ -108,7 +108,6 @@
  12. 'NAME' => 'JavaScript::SpiderMonkey',
  13. 'VERSION_FROM' => 'SpiderMonkey.pm', # finds $VERSION
  14. 'PREREQ_PM' => {
  15. - 'Log::Log4perl' => 0,
  16. 'Data::Dumper' => 0,
  17. }, # e.g., Module::Name => 1.1
  18. ($] >= 5.005 ? ## Add these new keywords supported since 5.005
  19. Index: JavaScript-SpiderMonkey-0.17/SpiderMonkey.pm
  20. --- JavaScript-SpiderMonkey-0.17/SpiderMonkey.pm.orig 2006-06-13 15:46:00 +0200
  21. +++ JavaScript-SpiderMonkey-0.17/SpiderMonkey.pm 2006-06-29 19:20:44 +0200
  22. @@ -75,7 +75,6 @@
  23. use strict;
  24. use warnings;
  25. use Data::Dumper;
  26. -use Log::Log4perl qw(:easy);
  27. require Exporter;
  28. require DynaLoader;
  29. @@ -555,14 +554,7 @@
  30. ##################################################
  31. sub debug_enabled {
  32. ##################################################
  33. - my $logger = Log::Log4perl::get_logger("JavaScript::SpiderMonkey");
  34. - if(Log::Log4perl->initialized() and $logger->is_debug()) {
  35. - # print "DEBUG IS ENABLED\n";
  36. - return 1;
  37. - } else {
  38. - # print "DEBUG IS DISABLED\n";
  39. - return 0;
  40. - }
  41. + return 0;
  42. }
  43. 1;
  44. Index: JavaScript-1.03/Makefile.PL
  45. --- JavaScript-1.03/Makefile.PL 2007-02-21 16:57:19 +0100
  46. +++ JavaScript-1.03/Makefile.PL 2007-02-22 07:15:52 +0100
  47. @@ -94,7 +94,7 @@
  48. push @defines, "JS_THREADSAFE" if $ENV{JS_THREADSAFE};
  49. }
  50. else {
  51. - my $enable_threadsafe = prompt("Is your SpiderMonkey compiled with JS_THREADSAFE (most things will fail if you answer wrong)? [y/N]");
  52. + my $enable_threadsafe = 'n';
  53. push @defines, "JS_THREADSAFE" if $enable_threadsafe eq 'y';
  54. }
  55. @@ -103,7 +103,6 @@
  56. push @defines, "JS_C_STRINGS_ARE_UTF8" if $ENV{JS_UTF8};
  57. }
  58. else {
  59. - my $enable_utf8 = prompt("Is your SpiderMonkey compiled with support for unicode (t/23-unicode.t will fail if you answer wrong) ? [y/N]", "N");
  60. push @defines, "JS_C_STRINGS_ARE_UTF8" if $enable_utf8 eq 'y';
  61. }