Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-misc/tellico/, kde-misc/tellico/files/
Date: Mon, 20 Nov 2017 18:57:40
Message-Id: 1511204239.6571a7fb275a99ec98a4e72e30a74ff580e9000f.asturm@gentoo
1 commit: 6571a7fb275a99ec98a4e72e30a74ff580e9000f
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 20 18:57:16 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 20 18:57:19 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6571a7fb
7
8 Package-Manager: Portage-2.3.13, Repoman-2.3.4
9
10 .../tellico/files/tellico-3.0.2-cmake-3.9.patch | 788 ---------------------
11 kde-misc/tellico/tellico-3.0.2-r1.ebuild | 91 ---
12 2 files changed, 879 deletions(-)
13
14 diff --git a/kde-misc/tellico/files/tellico-3.0.2-cmake-3.9.patch b/kde-misc/tellico/files/tellico-3.0.2-cmake-3.9.patch
15 deleted file mode 100644
16 index b31d072850f..00000000000
17 --- a/kde-misc/tellico/files/tellico-3.0.2-cmake-3.9.patch
18 +++ /dev/null
19 @@ -1,788 +0,0 @@
20 -Combination of:
21 -
22 -7f4840bb8eb6ee53c875cc6d6748701efcd5a915
23 -f1c9c315caed8c7d5d05424c07dd7562e430eba8
24 -cdd7e6d55584972c8e221a1d6e4f2731423deb60
25 -cb9847a09a834bf3334caae9c912870c66bd593b
26 -5b0822930907b1e0aa88e666f60c3428a77f011e
27 -024ef21d36201a2baa51b56409002bb91a07d4f9
28 -b5b78ab9dc6b1f5c0c34b546bf580d9de3c9e042
29 -
30 -to fix build with cmake-3.9.
31 -Gentoo-bug: 632172
32 -
33 -diff --git a/CMakeLists.txt b/CMakeLists.txt
34 -index 67c9d3c6..943da821 100644
35 ---- a/CMakeLists.txt
36 -+++ b/CMakeLists.txt
37 -@@ -247,7 +247,7 @@ remove_definitions(-DQT_NO_STL)
38 - include_directories(${LIBXML2_INCLUDE_DIR}
39 - ${LIBXSLT_INCLUDE_DIR}
40 - ${CMAKE_CURRENT_BINARY_DIR}
41 -- ${Tellico_SOURCE_DIR}/src/core
42 -+ ${Tellico_SOURCE_DIR}/src/config
43 - ${Tellico_SOURCE_DIR}/src/3rdparty)
44 -
45 - set(TELLICO_DATA_INSTALL_DIR ${KDE_INSTALL_DATADIR}/tellico)
46 -diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
47 -index 7af65e02..e3393fd8 100644
48 ---- a/src/CMakeLists.txt
49 -+++ b/src/CMakeLists.txt
50 -@@ -1,4 +1,5 @@
51 - ADD_SUBDIRECTORY( core )
52 -+ADD_SUBDIRECTORY(config )
53 - ADD_SUBDIRECTORY( gui )
54 - ADD_SUBDIRECTORY( collections )
55 - ADD_SUBDIRECTORY( images )
56 -diff --git a/src/cite/CMakeLists.txt b/src/cite/CMakeLists.txt
57 -index c90ed142..3192a2d8 100644
58 ---- a/src/cite/CMakeLists.txt
59 -+++ b/src/cite/CMakeLists.txt
60 -@@ -9,6 +9,7 @@ add_library(cite STATIC ${cite_STAT_SRCS})
61 - target_link_libraries(cite
62 - core
63 - utils
64 -+ config
65 - Qt5::Core
66 - Qt5::Widgets
67 - )
68 -diff --git a/src/cite/lyxpipe.cpp b/src/cite/lyxpipe.cpp
69 -index 860cb506..da5d5fe4 100644
70 ---- a/src/cite/lyxpipe.cpp
71 -+++ b/src/cite/lyxpipe.cpp
72 -@@ -25,7 +25,7 @@
73 - #include "lyxpipe.h"
74 - #include "../collection.h"
75 - #include "../utils/bibtexhandler.h"
76 --#include "../core/tellico_config.h"
77 -+#include "../config/tellico_config.h"
78 - #include "../tellico_debug.h"
79 -
80 - #include <KLocalizedString>
81 -diff --git a/src/config/CMakeLists.txt b/src/config/CMakeLists.txt
82 -new file mode 100644
83 -index 00000000..2b48e871
84 ---- /dev/null
85 -+++ b/src/config/CMakeLists.txt
86 -@@ -0,0 +1,30 @@
87 -+########### next target ###############
88 -+
89 -+SET(config_STAT_SRCS
90 -+ tellico_config_addons.cpp
91 -+ )
92 -+
93 -+SET(config_KCFG_SRCS
94 -+ tellico_config.kcfgc
95 -+ )
96 -+
97 -+kconfig_add_kcfg_files(config_STAT_SRCS ${config_KCFG_SRCS})
98 -+
99 -+ADD_CUSTOM_TARGET(tellico_config DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/tellico_config.h)
100 -+
101 -+add_library(config STATIC ${config_STAT_SRCS})
102 -+
103 -+TARGET_LINK_LIBRARIES(config
104 -+ Qt5::Core
105 -+ KF5::I18n
106 -+ KF5::ConfigCore
107 -+ KF5::ConfigGui
108 -+ KF5::ConfigWidgets
109 -+ )
110 -+
111 -+########### install files ###############
112 -+
113 -+INSTALL(FILES tellico_config.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR} )
114 -+INSTALL(FILES tellico-rename.upd tellico.upd DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR} )
115 -+
116 -+INSTALL(PROGRAMS tellico-1-3-update.pl DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR} )
117 -diff --git a/src/core/tellico-1-3-update.pl b/src/config/tellico-1-3-update.pl
118 -similarity index 100%
119 -rename from src/core/tellico-1-3-update.pl
120 -rename to src/config/tellico-1-3-update.pl
121 -diff --git a/src/core/tellico-rename.upd b/src/config/tellico-rename.upd
122 -similarity index 100%
123 -rename from src/core/tellico-rename.upd
124 -rename to src/config/tellico-rename.upd
125 -diff --git a/src/core/tellico.upd b/src/config/tellico.upd
126 -similarity index 100%
127 -rename from src/core/tellico.upd
128 -rename to src/config/tellico.upd
129 -diff --git a/src/core/tellico_config.kcfg b/src/config/tellico_config.kcfg
130 -similarity index 100%
131 -rename from src/core/tellico_config.kcfg
132 -rename to src/config/tellico_config.kcfg
133 -diff --git a/src/core/tellico_config.kcfgc b/src/config/tellico_config.kcfgc
134 -similarity index 100%
135 -rename from src/core/tellico_config.kcfgc
136 -rename to src/config/tellico_config.kcfgc
137 -diff --git a/src/core/tellico_config_addons.cpp b/src/config/tellico_config_addons.cpp
138 -similarity index 100%
139 -rename from src/core/tellico_config_addons.cpp
140 -rename to src/config/tellico_config_addons.cpp
141 -diff --git a/src/core/tellico_config_addons.h b/src/config/tellico_config_addons.h
142 -similarity index 100%
143 -rename from src/core/tellico_config_addons.h
144 -rename to src/config/tellico_config_addons.h
145 -diff --git a/src/configdialog.cpp b/src/configdialog.cpp
146 -index 66d8148a..8fd23478 100644
147 ---- a/src/configdialog.cpp
148 -+++ b/src/configdialog.cpp
149 -@@ -36,7 +36,7 @@
150 - #include "tellico_kernel.h"
151 - #include "utils/tellico_utils.h"
152 - #include "utils/string_utils.h"
153 --#include "core/tellico_config.h"
154 -+#include "config/tellico_config.h"
155 - #include "images/imagefactory.h"
156 - #include "gui/combobox.h"
157 - #include "gui/collectiontypecombo.h"
158 -diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
159 -index d8d6477e..9e6c6c14 100644
160 ---- a/src/core/CMakeLists.txt
161 -+++ b/src/core/CMakeLists.txt
162 -@@ -3,34 +3,16 @@
163 - SET(core_STAT_SRCS
164 - filehandler.cpp
165 - netaccess.cpp
166 -- tellico_config_addons.cpp
167 - tellico_strings.cpp
168 - )
169 -
170 --SET(core_KCFG_SRCS
171 -- tellico_config.kcfgc
172 -- )
173 --
174 --kconfig_add_kcfg_files(core_STAT_SRCS ${core_KCFG_SRCS})
175 --
176 --ADD_CUSTOM_TARGET(tellico_config DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/tellico_config.h)
177 --
178 - add_library(core STATIC ${core_STAT_SRCS})
179 -
180 - TARGET_LINK_LIBRARIES(core
181 -- images
182 - utils
183 - Qt5::Core
184 -- KF5::ConfigCore
185 -- KF5::ConfigGui
186 -- KF5::ConfigWidgets
187 -+ Qt5::Xml
188 -+ KF5::I18n
189 - KF5::JobWidgets
190 - KF5::KIOWidgets
191 - )
192 --
193 --########### install files ###############
194 --
195 --INSTALL(FILES tellico_config.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR} )
196 --INSTALL(FILES tellico-rename.upd tellico.upd DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR} )
197 --
198 --INSTALL(PROGRAMS tellico-1-3-update.pl DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR} )
199 -diff --git a/src/detailedlistview.cpp b/src/detailedlistview.cpp
200 -index 33f18e16..ac0ed2b3 100644
201 ---- a/src/detailedlistview.cpp
202 -+++ b/src/detailedlistview.cpp
203 -@@ -30,7 +30,7 @@
204 - #include "entry.h"
205 - #include "tellico_debug.h"
206 - #include "tellico_kernel.h"
207 --#include "core/tellico_config.h"
208 -+#include "config/tellico_config.h"
209 - #include "models/entrymodel.h"
210 - #include "models/entrysortmodel.h"
211 - #include "models/modelmanager.h"
212 -diff --git a/src/document.cpp b/src/document.cpp
213 -index 1462806c..bb66f7a1 100644
214 ---- a/src/document.cpp
215 -+++ b/src/document.cpp
216 -@@ -28,17 +28,17 @@
217 - #include "translators/tellicozipexporter.h"
218 - #include "translators/tellicoxmlexporter.h"
219 - #include "collection.h"
220 --#include "filehandler.h"
221 -+#include "core/filehandler.h"
222 - #include "borrower.h"
223 - #include "fieldformat.h"
224 --#include "tellico_strings.h"
225 -+#include "core/tellico_strings.h"
226 - #include "images/imagefactory.h"
227 - #include "images/imagedirectory.h"
228 - #include "images/image.h"
229 - #include "images/imageinfo.h"
230 - #include "utils/stringset.h"
231 - #include "progressmanager.h"
232 --#include "core/tellico_config.h"
233 -+#include "config/tellico_config.h"
234 - #include "entrycomparison.h"
235 - #include "utils/guiproxy.h"
236 - #include "tellico_debug.h"
237 -diff --git a/src/entryiconview.cpp b/src/entryiconview.cpp
238 -index 8ba044d1..d1a0eb60 100644
239 ---- a/src/entryiconview.cpp
240 -+++ b/src/entryiconview.cpp
241 -@@ -49,7 +49,7 @@ namespace {
242 -
243 - using Tellico::EntryIconView;
244 -
245 --EntryIconView::EntryIconView(QAbstractItemModel* model_, QWidget* parent_)
246 -+EntryIconView::EntryIconView(QWidget* parent_)
247 - : QListView(parent_), m_maxAllowedIconWidth(MAX_ENTRY_ICON_SIZE) {
248 - setViewMode(QListView::IconMode);
249 - setMovement(QListView::Static);
250 -@@ -60,12 +60,6 @@ EntryIconView::EntryIconView(QAbstractItemModel* model_, QWidget* parent_)
251 - setWordWrap(true);
252 - setSpacing(ENTRY_ICON_SIZE_PAD);
253 -
254 -- Q_ASSERT(::qobject_cast<EntryModel*>(model_));
255 -- EntrySortModel* sortModel = new EntrySortModel(this);
256 -- sortModel->setSortRole(EntryPtrRole);
257 -- sortModel->setSourceModel(model_);
258 -- setModel(sortModel);
259 --
260 - connect(this, SIGNAL(doubleClicked(const QModelIndex&)), SLOT(slotDoubleClicked(const QModelIndex&)));
261 -
262 - setWhatsThis(i18n("<qt>The <i>Icon View</i> shows each entry in the collection or group using "
263 -diff --git a/src/entryiconview.h b/src/entryiconview.h
264 -index 1dd41eb1..42c1a8e3 100644
265 ---- a/src/entryiconview.h
266 -+++ b/src/entryiconview.h
267 -@@ -46,7 +46,7 @@ class EntryIconView : public QListView, public Observer {
268 - Q_OBJECT
269 -
270 - public:
271 -- EntryIconView(QAbstractItemModel* model, QWidget* parent);
272 -+ EntryIconView(QWidget* parent);
273 - ~EntryIconView();
274 -
275 - int maxAllowedIconWidth() const { return m_maxAllowedIconWidth; }
276 -diff --git a/src/entryview.cpp b/src/entryview.cpp
277 -index 32810113..8d5de40f 100644
278 ---- a/src/entryview.cpp
279 -+++ b/src/entryview.cpp
280 -@@ -33,7 +33,7 @@
281 - #include "tellico_kernel.h"
282 - #include "utils/tellico_utils.h"
283 - #include "core/filehandler.h"
284 --#include "core/tellico_config.h"
285 -+#include "config/tellico_config.h"
286 - #include "gui/drophandler.h"
287 - #include "document.h"
288 - #include "../utils/datafileregistry.h"
289 -diff --git a/src/exportdialog.cpp b/src/exportdialog.cpp
290 -index 59ba8596..66b67689 100644
291 ---- a/src/exportdialog.cpp
292 -+++ b/src/exportdialog.cpp
293 -@@ -24,7 +24,7 @@
294 -
295 - #include "exportdialog.h"
296 - #include "collection.h"
297 --#include "filehandler.h"
298 -+#include "core/filehandler.h"
299 - #include "controller.h"
300 - #include "document.h"
301 - #include "tellico_debug.h"
302 -diff --git a/src/fetch/CMakeLists.txt b/src/fetch/CMakeLists.txt
303 -index 63d496c4..331c6def 100644
304 ---- a/src/fetch/CMakeLists.txt
305 -+++ b/src/fetch/CMakeLists.txt
306 -@@ -69,6 +69,7 @@ TARGET_LINK_LIBRARIES(fetch
307 - KF5::Archive
308 - KF5::IconThemes
309 - KF5::JobWidgets
310 -+ KF5::KIOWidgets
311 - )
312 -
313 - IF(${KF5KIO_VERSION} VERSION_GREATER "5.18.0")
314 -diff --git a/src/fetchdialog.cpp b/src/fetchdialog.cpp
315 -index 91f2587f..006d9eae 100644
316 ---- a/src/fetchdialog.cpp
317 -+++ b/src/fetchdialog.cpp
318 -@@ -28,12 +28,12 @@
319 - #include "fetch/fetchmanager.h"
320 - #include "fetch/fetcher.h"
321 - #include "fetch/fetchresult.h"
322 --#include "core/tellico_config.h"
323 -+#include "config/tellico_config.h"
324 - #include "entryview.h"
325 - #include "utils/isbnvalidator.h"
326 - #include "utils/upcvalidator.h"
327 - #include "tellico_kernel.h"
328 --#include "filehandler.h"
329 -+#include "core/filehandler.h"
330 - #include "collection.h"
331 - #include "entry.h"
332 - #include "document.h"
333 -diff --git a/src/fieldformat.cpp b/src/fieldformat.cpp
334 -index e21ec7a8..b35f9781 100644
335 ---- a/src/fieldformat.cpp
336 -+++ b/src/fieldformat.cpp
337 -@@ -23,7 +23,7 @@
338 - ***************************************************************************/
339 -
340 - #include "fieldformat.h"
341 --#include "core/tellico_config.h"
342 -+#include "config/tellico_config.h"
343 -
344 - using Tellico::FieldFormat;
345 -
346 -diff --git a/src/images/CMakeLists.txt b/src/images/CMakeLists.txt
347 -index cfc8bfe4..d058a23f 100644
348 ---- a/src/images/CMakeLists.txt
349 -+++ b/src/images/CMakeLists.txt
350 -@@ -9,6 +9,7 @@ add_library(images STATIC ${images_STAT_SRCS})
351 -
352 - TARGET_LINK_LIBRARIES(images
353 - core
354 -+ config
355 - utils
356 - KF5::KIOCore
357 - KF5::Archive
358 -diff --git a/src/images/imagedirectory.cpp b/src/images/imagedirectory.cpp
359 -index 4dc5be67..fc371c52 100644
360 ---- a/src/images/imagedirectory.cpp
361 -+++ b/src/images/imagedirectory.cpp
362 -@@ -24,7 +24,7 @@
363 -
364 - #include "imagedirectory.h"
365 - #include "image.h"
366 --#include "filehandler.h"
367 -+#include "../core/filehandler.h"
368 - #include "../tellico_debug.h"
369 -
370 - #include <KZip>
371 -diff --git a/src/images/imagefactory.cpp b/src/images/imagefactory.cpp
372 -index 499ad19e..7c7fd2b4 100644
373 ---- a/src/images/imagefactory.cpp
374 -+++ b/src/images/imagefactory.cpp
375 -@@ -29,7 +29,7 @@
376 - #include "imageinfo.h"
377 - #include "imagedirectory.h"
378 - #include "../core/filehandler.h"
379 --#include "../core/tellico_config.h"
380 -+#include "../config/tellico_config.h"
381 - #include "../utils/tellico_utils.h"
382 - #include "../tellico_debug.h"
383 -
384 -diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
385 -index 8eefa772..00dda6fd 100644
386 ---- a/src/mainwindow.cpp
387 -+++ b/src/mainwindow.cpp
388 -@@ -40,7 +40,7 @@
389 - #include "controller.h"
390 - #include "importdialog.h"
391 - #include "exportdialog.h"
392 --#include "filehandler.h" // needed so static mainWindow variable can be set
393 -+#include "core/filehandler.h" // needed so static mainWindow variable can be set
394 - #include "translators/htmlexporter.h" // for printing
395 - #include "entryview.h"
396 - #include "entryiconview.h"
397 -@@ -52,13 +52,13 @@
398 - #include "fetchdialog.h"
399 - #include "reportdialog.h"
400 - #include "bibtexkeydialog.h"
401 --#include "tellico_strings.h"
402 -+#include "core/tellico_strings.h"
403 - #include "filterview.h"
404 - #include "loanview.h"
405 - #include "fetch/fetchmanager.h"
406 - #include "fetch/fetcherinitializer.h"
407 - #include "cite/actionmanager.h"
408 --#include "core/tellico_config.h"
409 -+#include "config/tellico_config.h"
410 - #include "core/netaccess.h"
411 - #include "dbusinterface.h"
412 - #include "models/models.h"
413 -@@ -745,6 +745,7 @@ void MainWindow::initView() {
414 - m_detailedView, SLOT(slotRefreshImages()));
415 -
416 - m_iconView = m_viewStack->iconView();
417 -+ // use the same model in both views so they are sync'ed
418 - m_iconView->setModel(m_detailedView->model());
419 - Controller::self()->addObserver(m_iconView);
420 - m_detailedView->setWhatsThis(i18n("<qt>The <i>Column View</i> shows the value of multiple fields "
421 -diff --git a/src/models/CMakeLists.txt b/src/models/CMakeLists.txt
422 -index 58c695b5..8faa5554 100644
423 ---- a/src/models/CMakeLists.txt
424 -+++ b/src/models/CMakeLists.txt
425 -@@ -7,18 +7,18 @@ SET(models_STAT_SRCS
426 - entrymodel.cpp
427 - entryselectionmodel.cpp
428 - entrysortmodel.cpp
429 -+ fieldcomparison.cpp
430 - filtermodel.cpp
431 - groupsortmodel.cpp
432 - modeliterator.cpp
433 - modelmanager.cpp
434 -- modeltest.cpp
435 -- )
436 -+ stringcomparison.cpp
437 -+)
438 -
439 - add_library(tellicomodels STATIC ${models_STAT_SRCS})
440 -
441 - target_link_libraries(tellicomodels
442 - core
443 -- utils
444 - images
445 - Qt5::Core
446 - Qt5::Gui
447 -diff --git a/src/models/entrymodel.cpp b/src/models/entrymodel.cpp
448 -index 8db78f47..bb50836b 100644
449 ---- a/src/models/entrymodel.cpp
450 -+++ b/src/models/entrymodel.cpp
451 -@@ -31,7 +31,7 @@
452 - #include "../document.h"
453 - #include "../images/image.h"
454 - #include "../images/imagefactory.h"
455 --#include "../core/tellico_config.h"
456 -+#include "../config/tellico_config.h"
457 - #include "../tellico_debug.h"
458 -
459 - namespace {
460 -diff --git a/src/models/entrysortmodel.cpp b/src/models/entrysortmodel.cpp
461 -index 792ae81d..f11ffeb6 100644
462 ---- a/src/models/entrysortmodel.cpp
463 -+++ b/src/models/entrysortmodel.cpp
464 -@@ -24,7 +24,7 @@
465 -
466 - #include "entrysortmodel.h"
467 - #include "models.h"
468 --#include "../utils/fieldcomparison.h"
469 -+#include "fieldcomparison.h"
470 - #include "../field.h"
471 - #include "../entry.h"
472 -
473 -diff --git a/src/utils/fieldcomparison.cpp b/src/models/fieldcomparison.cpp
474 -similarity index 100%
475 -rename from src/utils/fieldcomparison.cpp
476 -rename to src/models/fieldcomparison.cpp
477 -diff --git a/src/utils/fieldcomparison.h b/src/models/fieldcomparison.h
478 -similarity index 100%
479 -rename from src/utils/fieldcomparison.h
480 -rename to src/models/fieldcomparison.h
481 -diff --git a/src/models/groupsortmodel.cpp b/src/models/groupsortmodel.cpp
482 -index 0326a755..483a0e2f 100644
483 ---- a/src/models/groupsortmodel.cpp
484 -+++ b/src/models/groupsortmodel.cpp
485 -@@ -24,9 +24,9 @@
486 -
487 - #include "groupsortmodel.h"
488 - #include "models.h"
489 -+#include "stringcomparison.h"
490 - #include "../field.h"
491 - #include "../entrygroup.h"
492 --#include "../utils/stringcomparison.h"
493 - #include "../document.h"
494 - #include "../tellico_debug.h"
495 -
496 -diff --git a/src/utils/stringcomparison.cpp b/src/models/stringcomparison.cpp
497 -similarity index 100%
498 -rename from src/utils/stringcomparison.cpp
499 -rename to src/models/stringcomparison.cpp
500 -diff --git a/src/utils/stringcomparison.h b/src/models/stringcomparison.h
501 -similarity index 100%
502 -rename from src/utils/stringcomparison.h
503 -rename to src/models/stringcomparison.h
504 -diff --git a/src/newstuff/CMakeLists.txt b/src/newstuff/CMakeLists.txt
505 -index 5a7f6963..db29b82b 100644
506 ---- a/src/newstuff/CMakeLists.txt
507 -+++ b/src/newstuff/CMakeLists.txt
508 -@@ -14,6 +14,7 @@ TARGET_LINK_LIBRARIES(newstuff
509 - Qt5::Gui
510 - KF5::ConfigCore
511 - KF5::KIOCore
512 -+ KF5::Archive
513 - )
514 -
515 - INSTALL(FILES tellico-template.knsrc tellico-script.knsrc DESTINATION ${KDE_INSTALL_CONFDIR})
516 -diff --git a/src/reportdialog.cpp b/src/reportdialog.cpp
517 -index 77dc6ab9..198a461e 100644
518 ---- a/src/reportdialog.cpp
519 -+++ b/src/reportdialog.cpp
520 -@@ -35,7 +35,7 @@
521 - #include "utils/cursorsaver.h"
522 - #include "utils/datafileregistry.h"
523 - #include "utils/tellico_utils.h"
524 --#include "core/tellico_config.h"
525 -+#include "config/tellico_config.h"
526 -
527 - #include <KLocalizedString>
528 - #include <KHTMLPart>
529 -diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
530 -index b3f8330a..0e1c0677 100644
531 ---- a/src/tests/CMakeLists.txt
532 -+++ b/src/tests/CMakeLists.txt
533 -@@ -11,7 +11,7 @@ add_executable(entitytest entitytest.cpp)
534 - ecm_mark_nongui_executable(entitytest)
535 - add_test(entitytest entitytest)
536 - ecm_mark_as_test(entitytest)
537 --TARGET_LINK_LIBRARIES(entitytest utils Qt5::Test )
538 -+TARGET_LINK_LIBRARIES(entitytest utils config Qt5::Test )
539 -
540 - add_executable(cuecattest cuecattest.cpp)
541 - ecm_mark_nongui_executable(cuecattest)
542 -@@ -35,25 +35,25 @@ add_executable(lcctest lcctest.cpp ../field.cpp ../fieldformat.cpp)
543 - ecm_mark_nongui_executable(lcctest)
544 - add_test(lcctest lcctest)
545 - ecm_mark_as_test(lcctest)
546 --TARGET_LINK_LIBRARIES(lcctest utils core Qt5::Test)
547 -+TARGET_LINK_LIBRARIES(lcctest tellicomodels Qt5::Test)
548 -
549 - add_executable(formattest formattest.cpp ../fieldformat.cpp)
550 - ecm_mark_nongui_executable(formattest)
551 - add_test(formattest formattest)
552 - ecm_mark_as_test(formattest)
553 --TARGET_LINK_LIBRARIES(formattest core Qt5::Test)
554 -+TARGET_LINK_LIBRARIES(formattest config Qt5::Test)
555 -
556 - add_executable(fieldtest fieldtest.cpp ../field.cpp ../fieldformat.cpp)
557 - ecm_mark_nongui_executable(fieldtest)
558 - add_test(fieldtest fieldtest)
559 - ecm_mark_as_test(fieldtest)
560 --TARGET_LINK_LIBRARIES(fieldtest core Qt5::Test)
561 -+TARGET_LINK_LIBRARIES(fieldtest config utils Qt5::Test)
562 -
563 - add_executable(comparisontest comparisontest.cpp ../field.cpp ../fieldformat.cpp)
564 - ecm_mark_nongui_executable(comparisontest)
565 - add_test(comparisontest comparisontest)
566 - ecm_mark_as_test(comparisontest)
567 --TARGET_LINK_LIBRARIES(comparisontest utils core Qt5::Test)
568 -+TARGET_LINK_LIBRARIES(comparisontest tellicomodels Qt5::Test)
569 -
570 - add_executable(imagetest imagetest.cpp ../utils/tellico_utils.cpp ../utils/guiproxy.cpp ../utils/cursorsaver.cpp)
571 - ecm_mark_nongui_executable(imagetest)
572 -@@ -101,6 +101,7 @@ TARGET_LINK_LIBRARIES(translatorstest
573 - KF5::I18n
574 - KF5::Archive
575 - KF5::KIOWidgets
576 -+ KF5::ConfigWidgets
577 - ${LIBXML2_LIBRARIES}
578 - ${LIBXSLT_LIBRARIES}
579 - ${LIBXSLT_EXSLT_LIBRARIES}
580 -@@ -111,6 +112,7 @@ set(TELLICO_TEST_LIBS
581 - collections
582 - utils
583 - images
584 -+ core
585 - tellicomodels
586 - Qt5::Test
587 - KF5::KIOCore
588 -@@ -197,15 +199,16 @@ add_executable(bibtexmltest bibtexmltest.cpp
589 - ecm_mark_nongui_executable(bibtexmltest)
590 - add_test(bibtexmltest bibtexmltest)
591 - ecm_mark_as_test(bibtexmltest)
592 --TARGET_LINK_LIBRARIES(bibtexmltest translatorstest ${TELLICO_TEST_LIBS})
593 -+TARGET_LINK_LIBRARIES(bibtexmltest translatorstest core ${TELLICO_TEST_LIBS})
594 -
595 - add_executable(citetest citetest.cpp
596 - ../collections/bibtexcollection.cpp
597 -+ ../core/filehandler.cpp
598 - )
599 - ecm_mark_nongui_executable(citetest)
600 - add_test(citetest citetest)
601 - ecm_mark_as_test(citetest)
602 --TARGET_LINK_LIBRARIES(citetest cite tellicotest Qt5::Test)
603 -+TARGET_LINK_LIBRARIES(citetest cite tellicotest config images Qt5::Test)
604 - ADD_DEPENDENCIES(citetest tellico_config)
605 -
606 - add_executable(ciwtest ciwtest.cpp
607 -diff --git a/src/tests/citetest.cpp b/src/tests/citetest.cpp
608 -index b51bf7a6..b34a7929 100644
609 ---- a/src/tests/citetest.cpp
610 -+++ b/src/tests/citetest.cpp
611 -@@ -27,7 +27,7 @@
612 - #include "citetest.h"
613 - #include "../cite/lyxpipe.h"
614 - #include "../cite/clipboard.h"
615 --#include "../core/tellico_config.h"
616 -+#include "../config/tellico_config.h"
617 - #include "../collections/bibtexcollection.h"
618 -
619 - #include <QTest>
620 -diff --git a/src/tests/comparisontest.cpp b/src/tests/comparisontest.cpp
621 -index 89a8d19b..f65ca197 100644
622 ---- a/src/tests/comparisontest.cpp
623 -+++ b/src/tests/comparisontest.cpp
624 -@@ -25,8 +25,7 @@
625 - #undef QT_NO_CAST_FROM_ASCII
626 -
627 - #include "comparisontest.h"
628 --
629 --#include "../utils/stringcomparison.h"
630 -+#include "../models/stringcomparison.h"
631 -
632 - #include <QTest>
633 -
634 -diff --git a/src/tests/documenttest.cpp b/src/tests/documenttest.cpp
635 -index 1f0ba8b6..9c1b18bc 100644
636 ---- a/src/tests/documenttest.cpp
637 -+++ b/src/tests/documenttest.cpp
638 -@@ -28,7 +28,7 @@
639 - #include "../document.h"
640 - #include "../images/imagefactory.h"
641 - #include "../images/image.h"
642 --#include "../core/tellico_config.h"
643 -+#include "../config/tellico_config.h"
644 - #include "../collections/bookcollection.h"
645 - #include "../collectionfactory.h"
646 -
647 -diff --git a/src/tests/formattest.cpp b/src/tests/formattest.cpp
648 -index a92b7380..962680cb 100644
649 ---- a/src/tests/formattest.cpp
650 -+++ b/src/tests/formattest.cpp
651 -@@ -27,7 +27,7 @@
652 - #include "formattest.h"
653 -
654 - #include "../fieldformat.h"
655 --#include "../core/tellico_config.h"
656 -+#include "../config/tellico_config.h"
657 -
658 - #include <QTest>
659 -
660 -diff --git a/src/tests/htmlexportertest.cpp b/src/tests/htmlexportertest.cpp
661 -index 42d8a9a8..c09e62d2 100644
662 ---- a/src/tests/htmlexportertest.cpp
663 -+++ b/src/tests/htmlexportertest.cpp
664 -@@ -33,7 +33,7 @@
665 - #include "../document.h"
666 - #include "../images/imagefactory.h"
667 - #include "../utils/datafileregistry.h"
668 --#include "../core/tellico_config.h"
669 -+#include "../config/tellico_config.h"
670 -
671 - #include <QTest>
672 - #include <QRegExp>
673 -diff --git a/src/tests/lcctest.cpp b/src/tests/lcctest.cpp
674 -index 08da8e06..a653bd25 100644
675 ---- a/src/tests/lcctest.cpp
676 -+++ b/src/tests/lcctest.cpp
677 -@@ -25,8 +25,7 @@
678 - #undef QT_NO_CAST_FROM_ASCII
679 -
680 - #include "lcctest.h"
681 --
682 --#include "../utils/stringcomparison.h"
683 -+#include "../models/stringcomparison.h"
684 -
685 - #include <QTest>
686 -
687 -diff --git a/src/models/modeltest.cpp b/src/tests/modeltest.cpp
688 -similarity index 99%
689 -rename from src/models/modeltest.cpp
690 -rename to src/tests/modeltest.cpp
691 -index 12f41f33..80a39f57 100644
692 ---- a/src/models/modeltest.cpp
693 -+++ b/src/tests/modeltest.cpp
694 -@@ -499,6 +499,7 @@ void ModelTest::layoutChanged()
695 - */
696 - void ModelTest::rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
697 - {
698 -+// qDebug() << "ratbr" << parent << start << end;
699 - Changing c;
700 - c.parent = parent;
701 - c.oldSize = model->rowCount(parent);
702 -@@ -514,6 +515,7 @@ void ModelTest::rowsAboutToBeRemoved(const QModelIndex &parent, int start, int e
703 - */
704 - void ModelTest::rowsRemoved(const QModelIndex & parent, int start, int end)
705 - {
706 -+// qDebug() << "rr" << parent << start << end;
707 - Changing c = remove.pop();
708 - Q_ASSERT(c.parent == parent);
709 - Q_ASSERT(c.oldSize - (end - start + 1) == model->rowCount(parent));
710 -diff --git a/src/models/modeltest.h b/src/tests/modeltest.h
711 -similarity index 100%
712 -rename from src/models/modeltest.h
713 -rename to src/tests/modeltest.h
714 -diff --git a/src/translators/boardgamegeekimporter.cpp b/src/translators/boardgamegeekimporter.cpp
715 -index 2bb35f0c..1ac70cbe 100644
716 ---- a/src/translators/boardgamegeekimporter.cpp
717 -+++ b/src/translators/boardgamegeekimporter.cpp
718 -@@ -26,7 +26,7 @@
719 - #include "../collections/boardgamecollection.h"
720 - #include "xslthandler.h"
721 - #include "tellicoimporter.h"
722 --#include "filehandler.h"
723 -+#include "../core/filehandler.h"
724 - #include "../utils/datafileregistry.h"
725 - #include "../tellico_debug.h"
726 -
727 -diff --git a/src/translators/goodreadsimporter.cpp b/src/translators/goodreadsimporter.cpp
728 -index eecb7e65..d03d05b0 100644
729 ---- a/src/translators/goodreadsimporter.cpp
730 -+++ b/src/translators/goodreadsimporter.cpp
731 -@@ -25,7 +25,7 @@
732 - #include "goodreadsimporter.h"
733 - #include "xslthandler.h"
734 - #include "tellicoimporter.h"
735 --#include "filehandler.h"
736 -+#include "../core/filehandler.h"
737 - #include "../utils/datafileregistry.h"
738 - #include "../tellico_debug.h"
739 -
740 -diff --git a/src/translators/htmlexporter.cpp b/src/translators/htmlexporter.cpp
741 -index acc712b0..79ef0039 100644
742 ---- a/src/translators/htmlexporter.cpp
743 -+++ b/src/translators/htmlexporter.cpp
744 -@@ -29,7 +29,7 @@
745 - #include "../document.h"
746 - #include "../core/filehandler.h"
747 - #include "../core/netaccess.h"
748 --#include "../core/tellico_config.h"
749 -+#include "../config/tellico_config.h"
750 - #include "../core/tellico_strings.h"
751 - #include "../images/image.h"
752 - #include "../images/imagefactory.h"
753 -diff --git a/src/utils/CMakeLists.txt b/src/utils/CMakeLists.txt
754 -index a5851007..e5fa2b24 100644
755 ---- a/src/utils/CMakeLists.txt
756 -+++ b/src/utils/CMakeLists.txt
757 -@@ -4,13 +4,11 @@ SET(utils_STAT_SRCS
758 - bibtexhandler.cpp
759 - cursorsaver.cpp
760 - datafileregistry.cpp
761 -- fieldcomparison.cpp
762 - guiproxy.cpp
763 - iso5426converter.cpp
764 - iso6937converter.cpp
765 - isbnvalidator.cpp
766 - lccnvalidator.cpp
767 -- stringcomparison.cpp
768 - string_utils.cpp
769 - tellico_utils.cpp
770 - upcvalidator.cpp
771 -@@ -21,7 +19,6 @@ SET(utils_STAT_SRCS
772 - add_library(utils STATIC ${utils_STAT_SRCS})
773 -
774 - TARGET_LINK_LIBRARIES(utils
775 -- images # for FieldComparison
776 - Qt5::Core
777 - Qt5::Widgets
778 - Qt5::Xml
779 -@@ -30,4 +27,5 @@ TARGET_LINK_LIBRARIES(utils
780 - KF5::I18n
781 - KF5::WidgetsAddons
782 - KF5::Codecs
783 -+ KF5::KIOCore
784 - )
785 -diff --git a/src/viewstack.cpp b/src/viewstack.cpp
786 -index 0d25d274..3f292414 100644
787 ---- a/src/viewstack.cpp
788 -+++ b/src/viewstack.cpp
789 -@@ -25,8 +25,7 @@
790 - #include "viewstack.h"
791 - #include "detailedlistview.h"
792 - #include "entryiconview.h"
793 --#include "models/entrymodel.h"
794 --#include "core/tellico_config.h"
795 -+#include "config/tellico_config.h"
796 -
797 - #include <KLocalizedString>
798 -
799 -@@ -42,7 +41,7 @@ using Tellico::ViewStack;
800 -
801 - ViewStack::ViewStack(QWidget* parent_) : QWidget(parent_)
802 - , m_listView(new DetailedListView(this))
803 -- , m_iconView(new EntryIconView(m_listView->sourceModel(), this)) {
804 -+ , m_iconView(new EntryIconView(this)) {
805 - QBoxLayout* lay = new QVBoxLayout();
806 - lay->setMargin(0);
807 - lay->setSpacing(0);
808
809 diff --git a/kde-misc/tellico/tellico-3.0.2-r1.ebuild b/kde-misc/tellico/tellico-3.0.2-r1.ebuild
810 deleted file mode 100644
811 index e40e2597d7b..00000000000
812 --- a/kde-misc/tellico/tellico-3.0.2-r1.ebuild
813 +++ /dev/null
814 @@ -1,91 +0,0 @@
815 -# Copyright 1999-2017 Gentoo Foundation
816 -# Distributed under the terms of the GNU General Public License v2
817 -
818 -EAPI=6
819 -
820 -KDE_HANDBOOK="forceoptional"
821 -KDE_TEST="forceoptional"
822 -VIRTUALX_REQUIRED="test"
823 -inherit kde5
824 -
825 -DESCRIPTION="A collection manager based on KDE Frameworks"
826 -HOMEPAGE="http://tellico-project.org/"
827 -SRC_URI="http://tellico-project.org/files/${P}.tar.xz"
828 -
829 -LICENSE="|| ( GPL-2 GPL-3 )"
830 -KEYWORDS="~amd64 ~x86"
831 -IUSE="cddb discid pdf scanner semantic-desktop taglib v4l xmp yaz"
832 -
833 -COMMON_DEPEND="
834 - $(add_frameworks_dep karchive)
835 - $(add_frameworks_dep kcodecs)
836 - $(add_frameworks_dep kcompletion)
837 - $(add_frameworks_dep kconfig)
838 - $(add_frameworks_dep kconfigwidgets)
839 - $(add_frameworks_dep kcoreaddons)
840 - $(add_frameworks_dep kcrash)
841 - $(add_frameworks_dep kguiaddons)
842 - $(add_frameworks_dep khtml)
843 - $(add_frameworks_dep kiconthemes)
844 - $(add_frameworks_dep kitemmodels)
845 - $(add_frameworks_dep ki18n)
846 - $(add_frameworks_dep kjobwidgets)
847 - $(add_frameworks_dep kio)
848 - $(add_frameworks_dep knewstuff)
849 - $(add_frameworks_dep kparts)
850 - $(add_frameworks_dep kservice)
851 - $(add_frameworks_dep ktextwidgets)
852 - $(add_frameworks_dep kwallet)
853 - $(add_frameworks_dep kwidgetsaddons)
854 - $(add_frameworks_dep kwindowsystem)
855 - $(add_frameworks_dep kxmlgui)
856 - $(add_frameworks_dep solid)
857 - $(add_frameworks_dep sonnet)
858 - $(add_qt_dep qtdbus)
859 - $(add_qt_dep qtgui)
860 - $(add_qt_dep qtnetwork)
861 - $(add_qt_dep qtwidgets)
862 - $(add_qt_dep qtxml)
863 - >=dev-perl/Text-BibTeX-0.780.0-r1
864 - dev-libs/libxml2
865 - dev-libs/libxslt
866 - cddb? ( $(add_kdeapps_dep libkcddb) )
867 - discid? ( media-libs/libdiscid )
868 - pdf? ( app-text/poppler[qt5] )
869 - scanner? ( $(add_kdeapps_dep libksane) )
870 - semantic-desktop? ( $(add_frameworks_dep kfilemetadata) )
871 - taglib? ( >=media-libs/taglib-1.5 )
872 - v4l? ( >=media-libs/libv4l-0.8.3 )
873 - xmp? ( >=media-libs/exempi-2 )
874 - yaz? ( >=dev-libs/yaz-2:0 )
875 -"
876 -DEPEND="${COMMON_DEPEND}
877 - sys-devel/gettext
878 -"
879 -RDEPEND="${COMMON_DEPEND}
880 - !kde-misc/tellico:4
881 -"
882 -
883 -# tests need network access
884 -RESTRICT="test"
885 -
886 -DOCS=( AUTHORS ChangeLog README )
887 -
888 -PATCHES=( "${FILESDIR}/${P}-cmake-3.9.patch" )
889 -
890 -src_configure() {
891 - local mycmakeargs=(
892 - -DCMAKE_DISABLE_FIND_PACKAGE_Csv=ON
893 - $(cmake-utils_use_find_package cddb KF5Cddb)
894 - $(cmake-utils_use_find_package discid DiscID)
895 - $(cmake-utils_use_find_package pdf PopplerQt5)
896 - $(cmake-utils_use_find_package scanner KF5Sane)
897 - $(cmake-utils_use_find_package semantic-desktop KF5FileMetaData)
898 - $(cmake-utils_use_find_package taglib Taglib)
899 - -DENABLE_WEBCAM=$(usex v4l)
900 - $(cmake-utils_use_find_package xmp Exempi)
901 - $(cmake-utils_use_find_package yaz Yaz)
902 - )
903 -
904 - kde5_src_configure
905 -}