summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2011-11-12 19:22:24 +0000
committerAndreas K. Hüttel <dilfridge@gentoo.org>2011-11-12 19:22:24 +0000
commit4e1b39176b29251b40c6fe26fe3c38bf1081cb98 (patch)
tree0982dd3d2819b954ffc768e6e19bb336ff08c5d8 /media-sound/tomahawk/files
parentNew library, dependency of media-sound/tomahawk; imported from KDE overlay. (diff)
downloadgentoo-2-4e1b39176b29251b40c6fe26fe3c38bf1081cb98.tar.gz
gentoo-2-4e1b39176b29251b40c6fe26fe3c38bf1081cb98.tar.bz2
gentoo-2-4e1b39176b29251b40c6fe26fe3c38bf1081cb98.zip
New application, bug 379385. Thanks to eliasp, johu and jmbsvicetto...
(Portage version: 2.1.10.34/cvs/Linux x86_64)
Diffstat (limited to 'media-sound/tomahawk/files')
-rw-r--r--media-sound/tomahawk/files/tomahawk-0.3.0-clucene.patch158
-rw-r--r--media-sound/tomahawk/files/tomahawk-0.3.0-remove-quazip.patch21
2 files changed, 179 insertions, 0 deletions
diff --git a/media-sound/tomahawk/files/tomahawk-0.3.0-clucene.patch b/media-sound/tomahawk/files/tomahawk-0.3.0-clucene.patch
new file mode 100644
index 000000000000..ff1bc0becbfb
--- /dev/null
+++ b/media-sound/tomahawk/files/tomahawk-0.3.0-clucene.patch
@@ -0,0 +1,158 @@
+diff -upr tomahawk.orig//CMakeModules/FindCLucene.cmake tomahawk/CMakeModules/FindCLucene.cmake
+--- tomahawk.orig//CMakeModules/FindCLucene.cmake 2011-11-04 14:42:01.000000000 +0100
++++ tomahawk/CMakeModules/FindCLucene.cmake 2011-07-26 19:12:39.000000000 +0200
+@@ -4,7 +4,7 @@
+ #
+ # CLUCENE_INCLUDE_DIR = where CLucene/StdHeader.h can be found
+ # CLUCENE_LIBRARY_DIR = where CLucene/clucene-config.h can be found
+-# CLUCENE_LIBRARIES = the libraries to link against CLucene
++# CLUCENE_LIBRARY = the library to link against CLucene
+ # CLUCENE_VERSION = The CLucene version string
+ # CLucene_FOUND = set to 1 if clucene is found
+ #
+@@ -12,20 +12,9 @@
+ INCLUDE(CheckSymbolExists)
+ INCLUDE(FindLibraryWithDebug)
+
+-# try to locate a patched unstable version (for comp's sake *sigh*) first
+-FIND_PACKAGE(CLuceneUnstable)
+-IF(CLUCENEUNSTABLE_FOUND)
+- SET(CLucene_FOUND TRUE)
+- SET(CLUCENE_INCLUDE_DIR ${CLUCENE_UNSTABLE_INCLUDE_DIRS})
+- SET(CLUCENE_LIBRARIES ${CLUCENE_UNSTABLE_LIBS})
+-
+- #MESSAGE(FATAL_ERROR NARF)
+-ELSE(CLUCENEUNSTABLE_FOUND)
+-IF(CLucene_FIND_VERSION)
+- SET(CLUCENE_MIN_VERSION ${CLucene_FIND_VERSION})
+-ELSEIF()
+- SET(CLUCENE_MIN_VERSION "0.9.23")
+-ENDIF(CLucene_FIND_VERSION)
++if(NOT CLUCENE_MIN_VERSION)
++ set(CLUCENE_MIN_VERSION "0.9.19")
++endif(NOT CLUCENE_MIN_VERSION)
+
+ IF(EXISTS ${PROJECT_CMAKE}/CLuceneConfig.cmake)
+ INCLUDE(${PROJECT_CMAKE}/CLuceneConfig.cmake)
+@@ -34,11 +23,12 @@ ENDIF(EXISTS ${PROJECT_CMAKE}/CLuceneCon
+ SET(TRIAL_LIBRARY_PATHS
+ $ENV{CLUCENE_HOME}/lib${LIB_SUFFIX}
+ ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}
++ ${CMAKE_LIBRARY_PATH}
+ /usr/local/lib${LIB_SUFFIX}
++ /opt/local/lib${LIB_SUFFIX}
+ /usr/lib${LIB_SUFFIX}
+ /sw/lib${LIB_SUFFIX}
+ /usr/pkg/lib${LIB_SUFFIX}
+- /usr/lib64
+ )
+ SET(TRIAL_INCLUDE_PATHS
+ $ENV{CLUCENE_HOME}/include
+@@ -48,25 +38,13 @@ SET(TRIAL_INCLUDE_PATHS
+ /sw/include
+ /usr/pkg/include
+ )
+-FIND_LIBRARY_WITH_DEBUG(CLUCENE_CORE_LIBRARY
++FIND_LIBRARY_WITH_DEBUG(CLUCENE_LIBRARY
+ WIN32_DEBUG_POSTFIX d
+- NAMES clucene-core
++ NAMES clucene clucene-core
+ PATHS ${TRIAL_LIBRARY_PATHS})
+-IF (CLUCENE_CORE_LIBRARY)
+- MESSAGE(STATUS "Found CLucene core library: ${CLUCENE_CORE_LIBRARY}")
+-ENDIF (CLUCENE_CORE_LIBRARY)
+-FIND_LIBRARY_WITH_DEBUG(CLUCENE_SHARED_LIBRARY
+- WIN32_DEBUG_POSTFIX d
+- NAMES clucene-shared
+- PATHS ${TRIAL_LIBRARY_PATHS})
+-IF (CLUCENE_SHARED_LIBRARY)
+- MESSAGE(STATUS "Found CLucene shared library: ${CLUCENE_SHARED_LIBRARY}")
+-ENDIF (CLUCENE_SHARED_LIBRARY)
+-
+-IF(CLUCENE_CORE_LIBRARY AND CLUCENE_SHARED_LIBRARY)
+- SET(CLUCENE_LIBRARIES ${CLUCENE_CORE_LIBRARY} ${CLUCENE_SHARED_LIBRARY})
+-ENDIF(CLUCENE_CORE_LIBRARY AND CLUCENE_SHARED_LIBRARY)
+-
++IF (CLUCENE_LIBRARY)
++ MESSAGE(STATUS "Found CLucene library: ${CLUCENE_LIBRARY}")
++ENDIF (CLUCENE_LIBRARY)
+ FIND_PATH(CLUCENE_INCLUDE_DIR
+ NAMES CLucene.h
+ PATHS ${TRIAL_INCLUDE_PATHS})
+@@ -81,37 +59,35 @@ ENDIF(WIN32)
+
+ SET(CLUCENE_GOOD_VERSION TRUE)
+
++GET_FILENAME_COMPONENT(_CLUCENE_LIBDIR ${CLUCENE_LIBRARY} PATH)
+ FIND_PATH(CLUCENE_LIBRARY_DIR
+- NAMES CLuceneConfig.cmake/CLuceneConfig.cmake CLucene/CLuceneConfig.cmake
+- PATHS ${TRIAL_LIBRARY_PATHS} ${TRIAL_INCLUDE_PATHS} NO_DEFAULT_PATH)
++ NAMES CLucene/clucene-config.h PATHS ${CLUCENE_INCLUDE_DIR} ${_CLUCENE_LIBDIR} NO_DEFAULT_PATH)
+ IF (CLUCENE_LIBRARY_DIR)
+ MESSAGE(STATUS "Found CLucene library dir: ${CLUCENE_LIBRARY_DIR}")
+- # include CLuceneConfig/CLuceneConfig.cmake
+- IF(EXISTS ${CLUCENE_LIBRARY_DIR}/CLuceneConfig.cmake/CLuceneConfig.cmake)
+- INCLUDE(${CLUCENE_LIBRARY_DIR}/CLuceneConfig.cmake/CLuceneConfig.cmake)
+- ENDIF(EXISTS ${CLUCENE_LIBRARY_DIR}/CLuceneConfig.cmake/CLuceneConfig.cmake)
+- # include CLucene/CLuceneConfig.cmake
+- IF(EXISTS ${CLUCENE_LIBRARY_DIR}/CLucene/CLuceneConfig.cmake)
+- INCLUDE(${CLUCENE_LIBRARY_DIR}/CLucene/CLuceneConfig.cmake)
+- ENDIF(EXISTS ${CLUCENE_LIBRARY_DIR}/CLucene/CLuceneConfig.cmake)
+- IF (CLUCENE_VERSION STRLESS "${CLUCENE_MIN_VERSION}")
+- MESSAGE(ERROR " CLucene version ${CLUCENE_VERSION} is less than the required minimum ${CLUCENE_MIN_VERSION}")
+- SET(CLUCENE_GOOD_VERSION FALSE)
+- ENDIF (CLUCENE_VERSION STRLESS "${CLUCENE_MIN_VERSION}")
+- IF (CLUCENE_VERSION STREQUAL "0.9.17")
+- MESSAGE(ERROR "CLucene version 0.9.17 is not supported.")
+- SET(CLUCENE_GOOD_VERSION FALSE)
+- ENDIF (CLUCENE_VERSION STREQUAL "0.9.17")
++ FILE(READ ${CLUCENE_LIBRARY_DIR}/CLucene/clucene-config.h CLCONTENT)
++ STRING(REGEX MATCH "_CL_VERSION +\".*\"" CLMATCH ${CLCONTENT})
++ IF (CLMATCH)
++ STRING(REGEX REPLACE "_CL_VERSION +\"(.*)\"" "\\1" CLUCENE_VERSION ${CLMATCH})
++ IF (CLUCENE_VERSION STRLESS "${CLUCENE_MIN_VERSION}")
++ MESSAGE(ERROR " CLucene version ${CLUCENE_VERSION} is less than the required minimum ${CLUCENE_MIN_VERSION}")
++ SET(CLUCENE_GOOD_VERSION FALSE)
++ ENDIF (CLUCENE_VERSION STRLESS "${CLUCENE_MIN_VERSION}")
++ IF (CLUCENE_VERSION STREQUAL "0.9.17")
++ MESSAGE(ERROR "CLucene version 0.9.17 is not supported.")
++ SET(CLUCENE_GOOD_VERSION FALSE)
++ ENDIF (CLUCENE_VERSION STREQUAL "0.9.17")
++ ENDIF (CLMATCH)
++ELSE (CLUCENE_LIBRARY_DIR)
++ MESSAGE(STATUS "CLucene library dir not found.")
+ ENDIF (CLUCENE_LIBRARY_DIR)
+
+-IF(CLUCENE_INCLUDE_DIR AND CLUCENE_LIBRARIES AND CLUCENE_LIBRARY_DIR AND CLUCENE_GOOD_VERSION)
++IF(CLUCENE_INCLUDE_DIR AND CLUCENE_LIBRARY AND CLUCENE_LIBRARY_DIR AND CLUCENE_GOOD_VERSION)
+ SET(CLucene_FOUND TRUE)
+-ENDIF(CLUCENE_INCLUDE_DIR AND CLUCENE_LIBRARIES AND CLUCENE_LIBRARY_DIR AND CLUCENE_GOOD_VERSION)
+-ENDIF(CLUCENEUNSTABLE_FOUND)
++ENDIF(CLUCENE_INCLUDE_DIR AND CLUCENE_LIBRARY AND CLUCENE_LIBRARY_DIR AND CLUCENE_GOOD_VERSION)
+
+ IF(CLucene_FOUND)
+ IF(NOT CLucene_FIND_QUIETLY)
+- MESSAGE(STATUS "Found CLucene: ${CLUCENE_LIBRARIES} version ${CLUCENE_VERSION}")
++ MESSAGE(STATUS "Found CLucene: ${CLUCENE_LIBRARY}")
+ ENDIF(NOT CLucene_FIND_QUIETLY)
+ ELSE(CLucene_FOUND)
+ IF(CLucene_FIND_REQUIRED)
+@@ -122,5 +98,5 @@ ENDIF(CLucene_FOUND)
+ MARK_AS_ADVANCED(
+ CLUCENE_INCLUDE_DIR
+ CLUCENE_LIBRARY_DIR
+- CLUCENE_LIBRARIES
++ CLUCENE_LIBRARY
+ )
+diff -upr tomahawk.orig//src/libtomahawk/CMakeLists.txt tomahawk/src/libtomahawk/CMakeLists.txt
+--- tomahawk.orig//src/libtomahawk/CMakeLists.txt 2011-11-04 14:41:57.000000000 +0100
++++ tomahawk/src/libtomahawk/CMakeLists.txt 2011-11-04 14:53:44.000000000 +0100
+@@ -612,7 +612,7 @@ TARGET_LINK_LIBRARIES( tomahawklib
+ ${QJSON_LIBRARIES}
+ ${PHONON_LIBS}
+ ${TAGLIB_LIBRARIES}
+- ${CLUCENE_LIBRARIES}
++ ${CLUCENE_LIBRARY}
+ ${LIBECHONEST_LIBRARY}
+ ${QT_QTUITOOLS_LIBRARY}
+ ${QT_LIBRARIES}
diff --git a/media-sound/tomahawk/files/tomahawk-0.3.0-remove-quazip.patch b/media-sound/tomahawk/files/tomahawk-0.3.0-remove-quazip.patch
new file mode 100644
index 000000000000..b36a2dee7fde
--- /dev/null
+++ b/media-sound/tomahawk/files/tomahawk-0.3.0-remove-quazip.patch
@@ -0,0 +1,21 @@
+diff -upr tomahawk.orig//CMakeLists.txt tomahawk//CMakeLists.txt
+--- tomahawk.orig//CMakeLists.txt 2011-11-10 14:30:31.000000000 +0100
++++ tomahawk//CMakeLists.txt 2011-11-10 14:32:49.000000000 +0100
+@@ -110,17 +110,6 @@ macro_log_feature(LIBATTICA_FOUND "libat
+ macro_optional_find_package(QuaZip)
+ macro_log_feature(QuaZip_FOUND "QuaZip" "Provides support for extracting downloaded resolvers autmatically. Will build internal copy instead." "http://quazip.sourceforge.net/" FALSE "" "")
+
+-IF( NOT QuaZip_FOUND )
+- add_subdirectory( ${CMAKE_SOURCE_DIR}/src/libtomahawk/thirdparty/quazip )
+- SET( QuaZip_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/libtomahawk/thirdparty/quazip )
+- SET( QuaZip_LIBRARY quazip )
+- SET( QuaZip_LIBRARIES ${QuaZip_LIBRARY} )
+- SET( QuaZip_FOUND true )
+-
+- # copy headers to build/quazip so we can use proper includes inside the code
+- FILE( COPY ${CMAKE_SOURCE_DIR}/src/libtomahawk/thirdparty/quazip/quazip/ DESTINATION ${CMAKE_BINARY_DIR}/libtomahawk/thirdparty/quazip )
+-ENDIF()
+-
+ # required
+ #While we distribute our own liblastfm2, don't need to look for it
+ #macro_optional_find_package(LibLastFm 0.3.3)