perl-regex.patch 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. Index: Regexp-Keep-0.02/Keep.xs
  2. --- Regexp-Keep-0.02/Keep.xs.orig 2004-05-07 19:23:36.000000000 +0200
  3. +++ Regexp-Keep-0.02/Keep.xs 2011-01-31 10:02:29.000000000 +0100
  4. @@ -11,4 +11,4 @@
  5. KEEP()
  6. PROTOTYPE:
  7. CODE:
  8. - PL_regstartp[0] = PL_reginput - PL_bostr;
  9. + PL_reg_state.re_state_regoffs[0].start = PL_reginput - PL_bostr;
  10. Index: re-engine-Lua-0.07/Makefile.PL
  11. --- re-engine-Lua-0.07/Makefile.PL.orig 2008-12-07 12:29:50.000000000 +0100
  12. +++ re-engine-Lua-0.07/Makefile.PL 2011-01-31 10:02:29.000000000 +0100
  13. @@ -8,7 +8,5 @@
  14. ABSTRACT_FROM => 'Lua.pm',
  15. LICENSE => 'MIT',
  16. PREREQ_PM => {
  17. - 'Test::Exception' => 0,
  18. - 'Test::Warn' => 0,
  19. },
  20. );
  21. Index: re-engine-PCRE-0.17/Makefile.PL
  22. --- re-engine-PCRE-0.17/Makefile.PL.orig 2011-01-29 13:12:53.000000000 +0100
  23. +++ re-engine-PCRE-0.17/Makefile.PL 2011-01-31 10:02:29.000000000 +0100
  24. @@ -18,9 +18,8 @@
  25. },
  26. 'DISTNAME' => 're-engine-PCRE',
  27. 'EXE_FILES' => [],
  28. - 'LIBS' => [
  29. - '-lpcre'
  30. - ],
  31. + 'INC' => `pcre-config --cflags`,
  32. + 'LIBS' => [ `pcre-config --libs` ],
  33. 'LICENSE' => 'perl',
  34. 'NAME' => 're::engine::PCRE',
  35. 'PREREQ_PM' => {
  36. Index: re-engine-RE2-0.09/Makefile.PL
  37. --- re-engine-RE2-0.09/Makefile.PL.orig 2011-01-29 14:07:30.000000000 +0100
  38. +++ re-engine-RE2-0.09/Makefile.PL 2011-01-31 10:02:38.000000000 +0100
  39. @@ -4,14 +4,11 @@
  40. use Config;
  41. use ExtUtils::MakeMaker;
  42. -use ExtUtils::CppGuess;
  43. # TODO: Optionally use system libre2, via ExtUtils::Liblist?
  44. my @objects = qw(RE2.o re2_xs.o re2/obj/libre2.a);
  45. -my $guess = ExtUtils::CppGuess->new;
  46. -
  47. my %opt = (
  48. NAME => 're::engine::RE2',
  49. AUTHOR => 'David Leadbeater <dgl@dgl.cx>',
  50. @@ -26,7 +23,6 @@
  51. "ExtUtils::CppGuess" => 0,
  52. "Test::More" => 0.88,
  53. },
  54. - $guess->makemaker_options
  55. );
  56. if($Config{usethreads} eq 'define') {
  57. Index: re-engine-TRE-0.04/Makefile.PL
  58. --- re-engine-TRE-0.04/Makefile.PL.orig 2008-02-18 12:11:31.000000000 +0100
  59. +++ re-engine-TRE-0.04/Makefile.PL 2011-01-31 10:02:29.000000000 +0100
  60. @@ -8,6 +8,6 @@
  61. ABSTRACT_FROM => 'TRE.pm',
  62. LICENSE => 'perl',
  63. DIR => [ 'tre' ],
  64. - INC => '-Itre',
  65. - LDDLFLAGS => '-shared tre/*.o',
  66. + INC => `pkg-config tre --cflags`,
  67. + LDDLFLAGS => [ `pkg-config tre --libs` ]
  68. );
  69. Index: Regexp-Compare-0.17/engine.h
  70. --- Regexp-Compare-0.17/engine.h.orig 2010-12-29 14:02:01.000000000 +0100
  71. +++ Regexp-Compare-0.17/engine.h 2011-06-24 20:21:46.000000000 +0200
  72. @@ -20,10 +20,17 @@
  73. #define RC_FIST_CLASS_REGEXP
  74. typedef REGEXP RCRegexp;
  75. #else
  76. +#if PERL_API_VERSION == 14
  77. +#define ANYOF_UNICODE ANYOF_NONBITMAP_NON_UTF8
  78. +#define RC_PLUGGABLE_REGEXP_ENGINE
  79. +#define RC_FIST_CLASS_REGEXP
  80. +typedef REGEXP RCRegexp;
  81. +#else
  82. #error Unsupported PERL_API_VERSION
  83. #endif
  84. #endif
  85. #endif
  86. +#endif
  87. #endif
  88. /* Set on error (i.e. failed memory allocation, unexpected regexp