1 |
commit: 1eab3f0a43e6d0765ecc442408b022a77d5c04b9 |
2 |
Author: Johannes Huber <johu <AT> gmx <DOT> de> |
3 |
AuthorDate: Fri Nov 4 14:06:30 2011 +0000 |
4 |
Commit: Johannes Huber <johu <AT> gmx <DOT> de> |
5 |
CommitDate: Fri Nov 4 14:06:30 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=1eab3f0a |
7 |
|
8 |
[media-sound/tomahawk] Fix configure in live |
9 |
|
10 |
(Portage version: 2.2.0_alpha72/git/Linux x86_64, signed Manifest commit with key DF018462) |
11 |
|
12 |
--- |
13 |
...-clucene.patch => tomahawk-0.2.3-clucene.patch} | 0 |
14 |
...k-clucene.patch => tomahawk-9999-clucene.patch} | 45 ++++++++++++-------- |
15 |
media-sound/tomahawk/tomahawk-0.2.3.ebuild | 2 +- |
16 |
media-sound/tomahawk/tomahawk-9999.ebuild | 2 +- |
17 |
4 files changed, 29 insertions(+), 20 deletions(-) |
18 |
|
19 |
diff --git a/media-sound/tomahawk/files/tomahawk-clucene.patch b/media-sound/tomahawk/files/tomahawk-0.2.3-clucene.patch |
20 |
similarity index 100% |
21 |
copy from media-sound/tomahawk/files/tomahawk-clucene.patch |
22 |
copy to media-sound/tomahawk/files/tomahawk-0.2.3-clucene.patch |
23 |
|
24 |
diff --git a/media-sound/tomahawk/files/tomahawk-clucene.patch b/media-sound/tomahawk/files/tomahawk-9999-clucene.patch |
25 |
similarity index 82% |
26 |
rename from media-sound/tomahawk/files/tomahawk-clucene.patch |
27 |
rename to media-sound/tomahawk/files/tomahawk-9999-clucene.patch |
28 |
index e597d4e..ff1bc0b 100644 |
29 |
--- a/media-sound/tomahawk/files/tomahawk-clucene.patch |
30 |
+++ b/media-sound/tomahawk/files/tomahawk-9999-clucene.patch |
31 |
@@ -1,6 +1,6 @@ |
32 |
-diff -upr tomahawk.orig/CMakeModules/FindCLucene.cmake tomahawk/CMakeModules/FindCLucene.cmake |
33 |
---- tomahawk.orig/CMakeModules/FindCLucene.cmake 2011-08-18 23:12:23.000000000 +0200 |
34 |
-+++ tomahawk/CMakeModules/FindCLucene.cmake 2011-06-02 11:29:26.000000000 +0200 |
35 |
+diff -upr tomahawk.orig//CMakeModules/FindCLucene.cmake tomahawk/CMakeModules/FindCLucene.cmake |
36 |
+--- tomahawk.orig//CMakeModules/FindCLucene.cmake 2011-11-04 14:42:01.000000000 +0100 |
37 |
++++ tomahawk/CMakeModules/FindCLucene.cmake 2011-07-26 19:12:39.000000000 +0200 |
38 |
@@ -4,7 +4,7 @@ |
39 |
# |
40 |
# CLUCENE_INCLUDE_DIR = where CLucene/StdHeader.h can be found |
41 |
@@ -10,11 +10,19 @@ diff -upr tomahawk.orig/CMakeModules/FindCLucene.cmake tomahawk/CMakeModules/Fin |
42 |
# CLUCENE_VERSION = The CLucene version string |
43 |
# CLucene_FOUND = set to 1 if clucene is found |
44 |
# |
45 |
-@@ -12,12 +12,9 @@ |
46 |
+@@ -12,20 +12,9 @@ |
47 |
INCLUDE(CheckSymbolExists) |
48 |
INCLUDE(FindLibraryWithDebug) |
49 |
|
50 |
+-# try to locate a patched unstable version (for comp's sake *sigh*) first |
51 |
+-FIND_PACKAGE(CLuceneUnstable) |
52 |
+-IF(CLUCENEUNSTABLE_FOUND) |
53 |
+- SET(CLucene_FOUND TRUE) |
54 |
+- SET(CLUCENE_INCLUDE_DIR ${CLUCENE_UNSTABLE_INCLUDE_DIRS}) |
55 |
+- SET(CLUCENE_LIBRARIES ${CLUCENE_UNSTABLE_LIBS}) |
56 |
- |
57 |
+- #MESSAGE(FATAL_ERROR NARF) |
58 |
+-ELSE(CLUCENEUNSTABLE_FOUND) |
59 |
-IF(CLucene_FIND_VERSION) |
60 |
- SET(CLUCENE_MIN_VERSION ${CLucene_FIND_VERSION}) |
61 |
-ELSEIF() |
62 |
@@ -26,7 +34,7 @@ diff -upr tomahawk.orig/CMakeModules/FindCLucene.cmake tomahawk/CMakeModules/Fin |
63 |
|
64 |
IF(EXISTS ${PROJECT_CMAKE}/CLuceneConfig.cmake) |
65 |
INCLUDE(${PROJECT_CMAKE}/CLuceneConfig.cmake) |
66 |
-@@ -26,11 +23,12 @@ ENDIF(EXISTS ${PROJECT_CMAKE}/CLuceneCon |
67 |
+@@ -34,11 +23,12 @@ ENDIF(EXISTS ${PROJECT_CMAKE}/CLuceneCon |
68 |
SET(TRIAL_LIBRARY_PATHS |
69 |
$ENV{CLUCENE_HOME}/lib${LIB_SUFFIX} |
70 |
${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX} |
71 |
@@ -40,23 +48,23 @@ diff -upr tomahawk.orig/CMakeModules/FindCLucene.cmake tomahawk/CMakeModules/Fin |
72 |
) |
73 |
SET(TRIAL_INCLUDE_PATHS |
74 |
$ENV{CLUCENE_HOME}/include |
75 |
-@@ -40,25 +38,13 @@ SET(TRIAL_INCLUDE_PATHS |
76 |
+@@ -48,25 +38,13 @@ SET(TRIAL_INCLUDE_PATHS |
77 |
/sw/include |
78 |
/usr/pkg/include |
79 |
) |
80 |
-FIND_LIBRARY_WITH_DEBUG(CLUCENE_CORE_LIBRARY |
81 |
-- WIN32_DEBUG_POSTFIX d |
82 |
++FIND_LIBRARY_WITH_DEBUG(CLUCENE_LIBRARY |
83 |
+ WIN32_DEBUG_POSTFIX d |
84 |
- NAMES clucene-core |
85 |
-- PATHS ${TRIAL_LIBRARY_PATHS}) |
86 |
++ NAMES clucene clucene-core |
87 |
+ PATHS ${TRIAL_LIBRARY_PATHS}) |
88 |
-IF (CLUCENE_CORE_LIBRARY) |
89 |
- MESSAGE(STATUS "Found CLucene core library: ${CLUCENE_CORE_LIBRARY}") |
90 |
-ENDIF (CLUCENE_CORE_LIBRARY) |
91 |
-FIND_LIBRARY_WITH_DEBUG(CLUCENE_SHARED_LIBRARY |
92 |
-+FIND_LIBRARY_WITH_DEBUG(CLUCENE_LIBRARY |
93 |
- WIN32_DEBUG_POSTFIX d |
94 |
+- WIN32_DEBUG_POSTFIX d |
95 |
- NAMES clucene-shared |
96 |
-+ NAMES clucene clucene-core |
97 |
- PATHS ${TRIAL_LIBRARY_PATHS}) |
98 |
+- PATHS ${TRIAL_LIBRARY_PATHS}) |
99 |
-IF (CLUCENE_SHARED_LIBRARY) |
100 |
- MESSAGE(STATUS "Found CLucene shared library: ${CLUCENE_SHARED_LIBRARY}") |
101 |
-ENDIF (CLUCENE_SHARED_LIBRARY) |
102 |
@@ -71,7 +79,7 @@ diff -upr tomahawk.orig/CMakeModules/FindCLucene.cmake tomahawk/CMakeModules/Fin |
103 |
FIND_PATH(CLUCENE_INCLUDE_DIR |
104 |
NAMES CLucene.h |
105 |
PATHS ${TRIAL_INCLUDE_PATHS}) |
106 |
-@@ -73,36 +59,35 @@ ENDIF(WIN32) |
107 |
+@@ -81,37 +59,35 @@ ENDIF(WIN32) |
108 |
|
109 |
SET(CLUCENE_GOOD_VERSION TRUE) |
110 |
|
111 |
@@ -119,6 +127,7 @@ diff -upr tomahawk.orig/CMakeModules/FindCLucene.cmake tomahawk/CMakeModules/Fin |
112 |
+IF(CLUCENE_INCLUDE_DIR AND CLUCENE_LIBRARY AND CLUCENE_LIBRARY_DIR AND CLUCENE_GOOD_VERSION) |
113 |
SET(CLucene_FOUND TRUE) |
114 |
-ENDIF(CLUCENE_INCLUDE_DIR AND CLUCENE_LIBRARIES AND CLUCENE_LIBRARY_DIR AND CLUCENE_GOOD_VERSION) |
115 |
+-ENDIF(CLUCENEUNSTABLE_FOUND) |
116 |
+ENDIF(CLUCENE_INCLUDE_DIR AND CLUCENE_LIBRARY AND CLUCENE_LIBRARY_DIR AND CLUCENE_GOOD_VERSION) |
117 |
|
118 |
IF(CLucene_FOUND) |
119 |
@@ -128,17 +137,17 @@ diff -upr tomahawk.orig/CMakeModules/FindCLucene.cmake tomahawk/CMakeModules/Fin |
120 |
ENDIF(NOT CLucene_FIND_QUIETLY) |
121 |
ELSE(CLucene_FOUND) |
122 |
IF(CLucene_FIND_REQUIRED) |
123 |
-@@ -113,5 +98,5 @@ ENDIF(CLucene_FOUND) |
124 |
+@@ -122,5 +98,5 @@ ENDIF(CLucene_FOUND) |
125 |
MARK_AS_ADVANCED( |
126 |
CLUCENE_INCLUDE_DIR |
127 |
CLUCENE_LIBRARY_DIR |
128 |
- CLUCENE_LIBRARIES |
129 |
+ CLUCENE_LIBRARY |
130 |
) |
131 |
-diff -upr tomahawk.orig/src/libtomahawk/CMakeLists.txt tomahawk/src/libtomahawk/CMakeLists.txt |
132 |
---- tomahawk.orig/src/libtomahawk/CMakeLists.txt 2011-08-18 23:12:23.000000000 +0200 |
133 |
-+++ tomahawk/src/libtomahawk/CMakeLists.txt 2011-08-19 13:21:40.000000000 +0200 |
134 |
-@@ -490,7 +490,7 @@ target_link_libraries( tomahawklib |
135 |
+diff -upr tomahawk.orig//src/libtomahawk/CMakeLists.txt tomahawk/src/libtomahawk/CMakeLists.txt |
136 |
+--- tomahawk.orig//src/libtomahawk/CMakeLists.txt 2011-11-04 14:41:57.000000000 +0100 |
137 |
++++ tomahawk/src/libtomahawk/CMakeLists.txt 2011-11-04 14:53:44.000000000 +0100 |
138 |
+@@ -612,7 +612,7 @@ TARGET_LINK_LIBRARIES( tomahawklib |
139 |
${QJSON_LIBRARIES} |
140 |
${PHONON_LIBS} |
141 |
${TAGLIB_LIBRARIES} |
142 |
|
143 |
diff --git a/media-sound/tomahawk/tomahawk-0.2.3.ebuild b/media-sound/tomahawk/tomahawk-0.2.3.ebuild |
144 |
index 7106f70..b83a4a8 100644 |
145 |
--- a/media-sound/tomahawk/tomahawk-0.2.3.ebuild |
146 |
+++ b/media-sound/tomahawk/tomahawk-0.2.3.ebuild |
147 |
@@ -50,7 +50,7 @@ DEPEND=" |
148 |
RDEPEND="${DEPEND}" |
149 |
|
150 |
PATCHES=( |
151 |
- "${FILESDIR}/${PN}-clucene.patch" |
152 |
+ "${FILESDIR}/${P}-clucene.patch" |
153 |
) |
154 |
|
155 |
src_configure() { |
156 |
|
157 |
diff --git a/media-sound/tomahawk/tomahawk-9999.ebuild b/media-sound/tomahawk/tomahawk-9999.ebuild |
158 |
index f257cb4..762a032 100644 |
159 |
--- a/media-sound/tomahawk/tomahawk-9999.ebuild |
160 |
+++ b/media-sound/tomahawk/tomahawk-9999.ebuild |
161 |
@@ -52,7 +52,7 @@ DEPEND=" |
162 |
RDEPEND="${DEPEND}" |
163 |
|
164 |
PATCHES=( |
165 |
- "${FILESDIR}/${PN}-clucene.patch" |
166 |
+ "${FILESDIR}/${P}-clucene.patch" |
167 |
) |
168 |
|
169 |
src_configure() { |