Snippets

Takehiko NOZAKI Text-CaboCha-0.06-cygwin.patch

Created by Takehiko NOZAKI
diff -urBw Text-CaboCha-0.06.orig/builder/CaboCha/Config.pm Text-CaboCha-0.06/builder/CaboCha/Config.pm
--- Text-CaboCha-0.06.orig/builder/CaboCha/Config.pm	2018-01-20 21:20:09.000000000 +0900
+++ Text-CaboCha-0.06/builder/CaboCha/Config.pm	2018-09-06 18:16:28.122384100 +0900
@@ -17,7 +17,7 @@
     $cabocha_config = '';
 
     # Save the poor puppies that run on Windows
-    if ($^O =~ m/(?:MSWin2|cygwin)/) {
+    if ($^O =~ m/(?:MSWin2)/) {
         $version = ExtUtils::MakeMaker::prompt(
             join(
                 "\n",
diff -urBw Text-CaboCha-0.06.orig/builder/CaboCha.pm Text-CaboCha-0.06/builder/CaboCha.pm
--- Text-CaboCha-0.06.orig/builder/CaboCha.pm	2018-01-20 21:20:09.000000000 +0900
+++ Text-CaboCha-0.06/builder/CaboCha.pm	2018-09-06 18:17:01.637301000 +0900
@@ -49,7 +49,7 @@
     my $config = shift;
     my @define;
 
-    if ($^O =~ m/(?:MSWin2|cygwin)/) { # save us, the Win32 puppies
+    if ($^O =~ m/(?:MSWin2)/) { # save us, the Win32 puppies
         # See also https://github.com/lestrrat/Text-MeCab/blob/master/Makefile.PL#L119-L125
         @define = (
             qq(-DTEXT_CABOCHA_ENCODING=\\"$config->{encoding}\\"),
diff -urBw Text-CaboCha-0.06.orig/src/text-cabocha.h Text-CaboCha-0.06/src/text-cabocha.h
--- Text-CaboCha-0.06.orig/src/text-cabocha.h	2018-01-20 21:20:09.000000000 +0900
+++ Text-CaboCha-0.06/src/text-cabocha.h	2018-09-06 23:45:02.942007300 +0900
@@ -8,7 +8,9 @@
 extern "C" {
 #endif
 
+#if 0
 #define PERL_NO_GET_CONTEXT /* we want efficiency */
+#endif
 #include <EXTERN.h>
 #include <perl.h>
 #include <XSUB.h>

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.