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/kio-locate/, kde-misc/kio-locate/files/
Date: Sat, 06 May 2017 21:33:29
Message-Id: 1494106193.f0cb8120801a7c7e878078da42202a636107e39c.asturm@gentoo
1 commit: f0cb8120801a7c7e878078da42202a636107e39c
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 15 17:54:31 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat May 6 21:29:53 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0cb8120
7
8 kde-misc/kio-locate: Add KF5-based snapshot
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 .../files/kio-locate-0.5.3-kf5port.patch | 102 +++++++++++++++++++++
13 kde-misc/kio-locate/kio-locate-0.5.3-r1.ebuild | 34 +++++++
14 kde-misc/kio-locate/metadata.xml | 8 +-
15 3 files changed, 140 insertions(+), 4 deletions(-)
16
17 diff --git a/kde-misc/kio-locate/files/kio-locate-0.5.3-kf5port.patch b/kde-misc/kio-locate/files/kio-locate-0.5.3-kf5port.patch
18 new file mode 100644
19 index 00000000000..986e8c6b0ee
20 --- /dev/null
21 +++ b/kde-misc/kio-locate/files/kio-locate-0.5.3-kf5port.patch
22 @@ -0,0 +1,102 @@
23 +diff -Naur a/CMakeLists.txt b/CMakeLists.txt
24 +--- a/CMakeLists.txt 2010-03-07 02:38:40.000000000 +0800
25 ++++ b/CMakeLists.txt 2015-10-19 19:28:48.185748034 +0800
26 +@@ -1,31 +1,38 @@
27 + set(KDE_MIN_VERSION "4.4.0")
28 +-find_package(KDE4 4.4.0 REQUIRED)
29 +-include (KDE4Defaults)
30 ++
31 ++find_package(ECM 0.0.11 REQUIRED NO_MODULE)
32 ++set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
33 ++
34 ++include(KDEInstallDirs)
35 ++include(KDECMakeSettings)
36 ++include(KDECompilerSettings)
37 ++include(FeatureSummary)
38 ++
39 ++find_package(Qt5 REQUIRED COMPONENTS Widgets)
40 ++find_package(KF5 REQUIRED COMPONENTS KDELibs4Support) #CoreAddons Solid
41 +
42 + add_definitions(-DKDE_DEFAULT_DEBUG_AREA=7199)
43 +
44 +-include_directories( ${KDE4_INCLUDES} )
45 +-include_directories( ${KDE4_KIO_INCLUDES} )
46 +
47 +-macro_optional_add_subdirectory(doc)
48 +-macro_optional_add_subdirectory(po)
49 ++add_subdirectory(doc)
50 ++add_subdirectory(po)
51 +
52 + set(kio_locate_PART_SRCS
53 + pattern.cpp
54 + kio_locate.cpp
55 + locater.cpp)
56 +
57 +-kde4_add_ui_files(kio_locate_PART_SRCS
58 ++qt5_wrap_ui(kio_locate_PART_SRCS
59 + klocateconfigfilterwidget.ui
60 + klocateconfiglocatewidget.ui
61 + klocateconfigwidget.ui)
62 +
63 +-kde4_add_kcfg_files(kio_locate_PART_SRCS klocateconfig.kcfgc)
64 ++kconfig_add_kcfg_files(kio_locate_PART_SRCS klocateconfig.kcfgc)
65 +
66 +-kde4_add_plugin(kio_locate ${kio_locate_PART_SRCS} ${kio_locate_PART_RCCS})
67 ++add_library(kio_locate MODULE ${kio_locate_PART_SRCS} ${kio_locate_PART_RCCS})
68 +
69 +
70 +-target_link_libraries(kio_locate ${KDE4_KDE3SUPPORT_LIBS})
71 ++target_link_libraries(kio_locate KF5::KDELibs4Support KF5::KIOCore)
72 +
73 + install(TARGETS kio_locate DESTINATION ${PLUGIN_INSTALL_DIR} )
74 +
75 +diff -Naur a/doc/CMakeLists.txt b/doc/CMakeLists.txt
76 +--- a/doc/CMakeLists.txt 2010-03-12 01:49:04.000000000 +0800
77 ++++ b/doc/CMakeLists.txt 2015-10-19 18:47:14.081029481 +0800
78 +@@ -1 +1 @@
79 +-macro_optional_add_subdirectory(en)
80 ++add_subdirectory(en)
81 +diff -Naur a/kio_locate.cpp b/kio_locate.cpp
82 +--- a/kio_locate.cpp 2010-03-20 17:05:46.000000000 +0800
83 ++++ b/kio_locate.cpp 2015-10-19 18:49:56.251128472 +0800
84 +@@ -290,7 +290,7 @@
85 + void LocateProtocol::setUrl(const KUrl& url)
86 + {
87 + if (url.protocol() != "locater") {
88 +- QString pattern = KUrl::decode_string(url.url());
89 ++ QString pattern = url.toString();
90 + pattern = pattern.mid(url.protocol().length() + 1);
91 +
92 + KUrl newUrl;
93 +@@ -371,7 +371,7 @@
94 + /// \todo Is UDS_NAME used for anything in stat? If so we should
95 + /// at least strip of the protocol part.
96 + UDSEntry entry;
97 +- entry.insert(KIO::UDSEntry::UDS_NAME, url.decode_string(url.url()));
98 ++ entry.insert(KIO::UDSEntry::UDS_NAME, url.toString());
99 + entry.insert(KIO::UDSEntry::UDS_FILE_TYPE, isDir ? S_IFDIR : S_IFREG);
100 + statEntry(entry);
101 + finished();
102 +@@ -767,7 +767,7 @@
103 +
104 + KConfigDialog *dialog = new KConfigDialog(0, "settings", KLocateConfig::self());
105 + dialog->setFaceType(KPageDialog::List);
106 +- dialog->setCaption(i18n("Configure - kio-locate"));
107 ++ dialog->setWindowTitle(i18n("Configure - kio-locate"));
108 + dialog->setWindowIcon(SmallIcon("edit-find"));
109 +
110 + Ui::KLocateConfigWidget w1;
111 +diff -Naur a/kio_locate.h b/kio_locate.h
112 +--- a/kio_locate.h 2010-03-20 17:05:46.000000000 +0800
113 ++++ b/kio_locate.h 2015-10-19 18:51:19.908758859 +0800
114 +@@ -62,6 +62,10 @@
115 + #include "locater.h"
116 + #include "pattern.h"
117 +
118 ++#include <KUrl>
119 ++#include <kicon.h>
120 ++#define KDE_EXPORT __attribute__ ((visibility("default")))
121 ++
122 + class QByteArray;
123 + class KUrl;
124 +
125
126 diff --git a/kde-misc/kio-locate/kio-locate-0.5.3-r1.ebuild b/kde-misc/kio-locate/kio-locate-0.5.3-r1.ebuild
127 new file mode 100644
128 index 00000000000..3cceefcf0ab
129 --- /dev/null
130 +++ b/kde-misc/kio-locate/kio-locate-0.5.3-r1.ebuild
131 @@ -0,0 +1,34 @@
132 +# Copyright 1999-2017 Gentoo Foundation
133 +# Distributed under the terms of the GNU General Public License v2
134 +
135 +EAPI=6
136 +
137 +KDE_HANDBOOK="optional"
138 +inherit kde5
139 +
140 +DESCRIPTION="Locate KIO slave"
141 +HOMEPAGE="http://www.kde-apps.org/content/show.php/kio-locate?content=120965"
142 +SRC_URI="http://www.kde-apps.org/CONTENT/content-files/120965-${P}.tar.gz"
143 +# See also: https://github.com/reporter123/kio-locate/commits/master
144 +
145 +LICENSE="GPL-2"
146 +KEYWORDS="~amd64 ~x86"
147 +IUSE="debug"
148 +
149 +DOCS=( AUTHORS ChangeLog )
150 +
151 +PATCHES=(
152 + "${FILESDIR}/${P}-gcc-4.7.patch"
153 + "${FILESDIR}/${P}-kf5port.patch"
154 +)
155 +
156 +DEPEND="
157 + $(add_frameworks_dep kcoreaddons)
158 + $(add_frameworks_dep kdelibs4support)
159 + $(add_frameworks_dep solid)
160 + $(add_qt_dep qtwidgets)
161 +"
162 +RDEPEND="${DEPEND}
163 + !kde-misc/kio-locate:4
164 + sys-apps/mlocate
165 +"
166
167 diff --git a/kde-misc/kio-locate/metadata.xml b/kde-misc/kio-locate/metadata.xml
168 index 0cf59224b00..2fdbf33d963 100644
169 --- a/kde-misc/kio-locate/metadata.xml
170 +++ b/kde-misc/kio-locate/metadata.xml
171 @@ -1,8 +1,8 @@
172 <?xml version="1.0" encoding="UTF-8"?>
173 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
174 <pkgmetadata>
175 -<maintainer type="project">
176 - <email>kde@g.o</email>
177 - <name>Gentoo KDE Project</name>
178 -</maintainer>
179 + <maintainer type="project">
180 + <email>kde@g.o</email>
181 + <name>Gentoo KDE Project</name>
182 + </maintainer>
183 </pkgmetadata>