File improve-sphinx-search.diff of Package opencv_24

diff -Naur opencv-2.4.7.orig/cmake/OpenCVDetectPython.cmake opencv-2.4.7/cmake/OpenCVDetectPython.cmake
--- cmake/OpenCVDetectPython.cmake	2013-11-06 15:26:39.000000000 +0100
+++ cmake/OpenCVDetectPython.cmake	2013-11-13 00:36:28.693235793 +0100
@@ -109,11 +109,11 @@
                         OUTPUT_QUIET
                         ERROR_VARIABLE SPHINX_OUTPUT
                         OUTPUT_STRIP_TRAILING_WHITESPACE)
-        if(SPHINX_OUTPUT MATCHES "Sphinx v([0-9][^ \n]*)")
+        if(SPHINX_OUTPUT MATCHES "Sphinx v([0-9]*[^ \n]*)")
           set(SPHINX_VERSION "${CMAKE_MATCH_1}")
           set(HAVE_SPHINX 1)
           message(STATUS "Found Sphinx ${SPHINX_VERSION}: ${SPHINX_BUILD}")
-        endif()
+        endif()
     endif()
   endif(BUILD_DOCS)
 endif(PYTHON_EXECUTABLE)