File: disable-snowball.patch

package info (click to toggle)
lucene%2B%2B 3.0.9-3.2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 19,488 kB
  • sloc: cpp: 174,061; ansic: 26,951; python: 8,626; sh: 524; makefile: 32
file content (38 lines) | stat: -rw-r--r-- 1,463 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Description: Disabling snowball for the moment.
 As described in upstream issue #71 snowball is not used, moreover debian has its
 specific library. For now is better to disable it, waiting for upstream suggestions.

---
Origin: debian
Forwarded: https://github.com/luceneplusplus/LucenePlusPlus/issues/71
Reviewed-By: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Last-Update: <2014-09-02>

diff --git a/src/contrib/CMakeLists.txt b/src/contrib/CMakeLists.txt
index 7af6804..eec7e94 100644
--- a/src/contrib/CMakeLists.txt
+++ b/src/contrib/CMakeLists.txt
@@ -28,10 +28,10 @@ file(GLOB_RECURSE contrib_sources
   "memory/*.cpp"
   "index/*.cpp"
   "mevc/*.cpp"
-  "snowball/*.cpp"
-  "snowball/libstemmer_c/libstemmer/libstemmer_utf8.c"
-  "snowball/libstemmer_c/src_c/*.c"
-  "snowball/libstemmer_c/runtime/*.c"
+#  "snowball/*.cpp"
+#  "snowball/libstemmer_c/libstemmer/libstemmer_utf8.c"
+#  "snowball/libstemmer_c/src_c/*.c"
+#  "snowball/libstemmer_c/runtime/*.c"
 )
 
 file(GLOB_RECURSE contrib_headers 
@@ -52,7 +52,7 @@ target_include_directories(lucene++-contrib
     $<BUILD_INTERFACE:${lucene++_BINARY_DIR}/include>
     $<BUILD_INTERFACE:${lucene++_SOURCE_DIR}/include/lucene++>
     $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
-    $<BUILD_INTERFACE:${lucene++-contrib_SOURCE_DIR}/snowball/libstemmer_c/include>
+#    $<BUILD_INTERFACE:${lucene++-contrib_SOURCE_DIR}/snowball/libstemmer_c/include>
     ${Boost_INCLUDE_DIRS}
 )