Blame SOURCES/clucene-core-2.3.3.4-install_contribs_lib.patch

7f59fd
diff -NaurpBb clucene-core-2.3.3.4/CMakeLists.txt clucene-core-2.3.3.4-mod/CMakeLists.txt
7f59fd
--- clucene-core-2.3.3.4/CMakeLists.txt	2011-03-17 03:21:07.000000000 +0300
7f59fd
+++ clucene-core-2.3.3.4-mod/CMakeLists.txt	2011-08-16 16:56:55.968268152 +0400
7f59fd
@@ -163,7 +163,7 @@ IF ( BUILD_CONTRIBS )
7f59fd
   SET(BUILD_CONTRIBS_LIB 1)
7f59fd
 ENDIF ( BUILD_CONTRIBS )
7f59fd
 IF ( BUILD_CONTRIBS_LIB )
7f59fd
-  ADD_SUBDIRECTORY (src/contribs-lib EXCLUDE_FROM_ALL)
7f59fd
+  ADD_SUBDIRECTORY (src/contribs-lib)
7f59fd
 ENDIF ( BUILD_CONTRIBS_LIB )
7f59fd
 
7f59fd
 
7f59fd
diff -NaurpBb clucene-core-2.3.3.4/src/contribs-lib/CMakeLists.txt clucene-core-2.3.3.4-mod/src/contribs-lib/CMakeLists.txt
7f59fd
--- clucene-core-2.3.3.4/src/contribs-lib/CMakeLists.txt	2011-03-17 03:21:07.000000000 +0300
7f59fd
+++ clucene-core-2.3.3.4-mod/src/contribs-lib/CMakeLists.txt	2011-08-16 17:14:13.499275499 +0400
7f59fd
@@ -106,9 +106,26 @@ add_library(clucene-contribs-lib SHARED
7f59fd
 )
7f59fd
 TARGET_LINK_LIBRARIES(clucene-contribs-lib ${clucene_contrib_extra_libs})
7f59fd
 
7f59fd
+#install public headers.
7f59fd
+FOREACH(file ${HEADERS})
7f59fd
+	get_filename_component(apath ${file} PATH)
7f59fd
+	get_filename_component(aname ${file} NAME)
7f59fd
+	file(RELATIVE_PATH relpath ${CMAKE_SOURCE_DIR}/src/contribs-lib ${apath})
7f59fd
+	IF ( NOT aname MATCHES "^_.*" )
7f59fd
+		install(FILES ${file} 
7f59fd
+		        DESTINATION include/${relpath}
7f59fd
+		        COMPONENT development)
7f59fd
+	ENDIF ( NOT aname MATCHES "^_.*" )
7f59fd
+ENDFOREACH(file)
7f59fd
+
7f59fd
 #set properties on the libraries
7f59fd
 SET_TARGET_PROPERTIES(clucene-contribs-lib PROPERTIES
7f59fd
     VERSION ${CLUCENE_VERSION}
7f59fd
     SOVERSION ${CLUCENE_SOVERSION}
7f59fd
     COMPILE_DEFINITIONS_DEBUG _DEBUG
7f59fd
 )
7f59fd
+
7f59fd
+#and install library
7f59fd
+install(TARGETS clucene-contribs-lib 
7f59fd
+        DESTINATION ${LIB_DESTINATION}  
7f59fd
+        COMPONENT runtime )