1 |
commit: ed4e6d1552269246fd472bc57b16edd38903768b |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 24 16:16:08 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 24 16:51:59 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed4e6d15 |
7 |
|
8 |
kde-apps/kate: Fix and add implicit dependency |
9 |
|
10 |
See also: https://invent.kde.org/utilities/kate/-/merge_requests/369 |
11 |
|
12 |
Reported-by: Marco Genasci <fedeliallalinea <AT> gmail.com> |
13 |
Closes: https://bugs.gentoo.org/785412 |
14 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
15 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
16 |
|
17 |
.../kate/files/kate-21.04.0-implicit-dep.patch | 70 +++++++++++++ |
18 |
kde-apps/kate/kate-21.04.0-r1.ebuild | 108 +++++++++++++++++++++ |
19 |
2 files changed, 178 insertions(+) |
20 |
|
21 |
diff --git a/kde-apps/kate/files/kate-21.04.0-implicit-dep.patch b/kde-apps/kate/files/kate-21.04.0-implicit-dep.patch |
22 |
new file mode 100644 |
23 |
index 00000000000..055a6bc9bec |
24 |
--- /dev/null |
25 |
+++ b/kde-apps/kate/files/kate-21.04.0-implicit-dep.patch |
26 |
@@ -0,0 +1,70 @@ |
27 |
+From 07e6813244435c93a944cca17dc3c4364a579606 Mon Sep 17 00:00:00 2001 |
28 |
+From: Andreas Sturmlechner <asturm@g.o> |
29 |
+Date: Sat, 24 Apr 2021 18:08:33 +0200 |
30 |
+Subject: [PATCH] addons: Add missing Qt5Concurrent to project and search |
31 |
+ |
32 |
+Implicit use via KIO. |
33 |
+ |
34 |
+See also: https://invent.kde.org/frameworks/kio/-/merge_requests/426 |
35 |
+ |
36 |
+Signed-off-by: Andreas Sturmlechner <asturm@g.o> |
37 |
+--- |
38 |
+ addons/project/CMakeLists.txt | 5 ++++- |
39 |
+ addons/search/CMakeLists.txt | 7 +++++-- |
40 |
+ 2 files changed, 9 insertions(+), 3 deletions(-) |
41 |
+ |
42 |
+diff --git a/addons/project/CMakeLists.txt b/addons/project/CMakeLists.txt |
43 |
+index 16487f6cc..6fbf5a819 100644 |
44 |
+--- a/addons/project/CMakeLists.txt |
45 |
++++ b/addons/project/CMakeLists.txt |
46 |
+@@ -1,3 +1,4 @@ |
47 |
++find_package(Qt5Concurrent ${QT_MIN_VERSION} QUIET) |
48 |
+ find_package( |
49 |
+ KF5 ${KF5_DEP_VERSION} |
50 |
+ QUIET |
51 |
+@@ -9,7 +10,7 @@ find_package( |
52 |
+ set_package_properties(KFGuiAddons PROPERTIES PURPOSE "Required to build the project addon") |
53 |
+ set_package_properties(KF5NewStuff PROPERTIES PURPOSE "Required to build the project addon") |
54 |
+ |
55 |
+-if(NOT KF5_FOUND) |
56 |
++if(NOT KF5_FOUND OR NOT Qt5Concurrent_FOUND) |
57 |
+ return() |
58 |
+ endif() |
59 |
+ |
60 |
+@@ -18,6 +19,8 @@ target_compile_definitions(kateprojectplugin PRIVATE TRANSLATION_DOMAIN="katepro |
61 |
+ |
62 |
+ target_link_libraries( |
63 |
+ kateprojectplugin |
64 |
++ PUBLIC |
65 |
++ Qt5::Concurrent |
66 |
+ PRIVATE |
67 |
+ KF5::GuiAddons |
68 |
+ KF5::NewStuff |
69 |
+diff --git a/addons/search/CMakeLists.txt b/addons/search/CMakeLists.txt |
70 |
+index 9bbe2c1c9..8dc18699b 100644 |
71 |
+--- a/addons/search/CMakeLists.txt |
72 |
++++ b/addons/search/CMakeLists.txt |
73 |
+@@ -1,7 +1,8 @@ |
74 |
++find_package(Qt5Concurrent ${QT_MIN_VERSION} QUIET) |
75 |
+ find_package(KF5ItemViews ${KF5_DEP_VERSION} QUIET) |
76 |
+ set_package_properties(KF5ItemViews PROPERTIES PURPOSE "Required to build the search addon") |
77 |
+ |
78 |
+-if(NOT KF5ItemViews_FOUND) |
79 |
++if(NOT KF5ItemViews_FOUND OR NOT Qt5Concurrent_FOUND) |
80 |
+ return() |
81 |
+ endif() |
82 |
+ |
83 |
+@@ -9,7 +10,9 @@ add_library(katesearchplugin MODULE "") |
84 |
+ target_compile_definitions(katesearchplugin PRIVATE TRANSLATION_DOMAIN="katesearch") |
85 |
+ |
86 |
+ target_link_libraries( |
87 |
+- katesearchplugin |
88 |
++ katesearchplugin |
89 |
++ PUBLIC |
90 |
++ Qt5::Concurrent |
91 |
+ PRIVATE |
92 |
+ KF5::ItemViews |
93 |
+ KF5::TextEditor |
94 |
+-- |
95 |
+2.31.1 |
96 |
+ |
97 |
|
98 |
diff --git a/kde-apps/kate/kate-21.04.0-r1.ebuild b/kde-apps/kate/kate-21.04.0-r1.ebuild |
99 |
new file mode 100644 |
100 |
index 00000000000..595730cc0ff |
101 |
--- /dev/null |
102 |
+++ b/kde-apps/kate/kate-21.04.0-r1.ebuild |
103 |
@@ -0,0 +1,108 @@ |
104 |
+# Copyright 1999-2021 Gentoo Authors |
105 |
+# Distributed under the terms of the GNU General Public License v2 |
106 |
+ |
107 |
+EAPI=7 |
108 |
+ |
109 |
+ECM_HANDBOOK="optional" |
110 |
+ECM_TEST="true" |
111 |
+KFMIN=5.80.0 |
112 |
+QTMIN=5.15.2 |
113 |
+VIRTUALX_REQUIRED="test" |
114 |
+inherit ecm kde.org optfeature |
115 |
+ |
116 |
+DESCRIPTION="Multi-document editor with network transparency, Plasma integration and more" |
117 |
+HOMEPAGE="https://kate-editor.org/ https://apps.kde.org/en/kate" |
118 |
+ |
119 |
+LICENSE="GPL-2" # TODO: CHECK |
120 |
+SLOT="5" |
121 |
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
122 |
+IUSE="activities +filebrowser lspclient +projects plasma +snippets sql telemetry" |
123 |
+ |
124 |
+# only addons/externaltools depends on kiconthemes, too small for USE |
125 |
+DEPEND=" |
126 |
+ >=dev-qt/qtconcurrent-${QTMIN}:5 |
127 |
+ >=dev-qt/qtdbus-${QTMIN}:5 |
128 |
+ >=dev-qt/qtgui-${QTMIN}:5 |
129 |
+ >=dev-qt/qtwidgets-${QTMIN}:5 |
130 |
+ >=dev-qt/qtxml-${QTMIN}:5 |
131 |
+ >=kde-frameworks/kcodecs-${KFMIN}:5 |
132 |
+ >=kde-frameworks/kcompletion-${KFMIN}:5 |
133 |
+ >=kde-frameworks/kconfig-${KFMIN}:5 |
134 |
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5 |
135 |
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5 |
136 |
+ >=kde-frameworks/kcrash-${KFMIN}:5 |
137 |
+ >=kde-frameworks/kdbusaddons-${KFMIN}:5 |
138 |
+ >=kde-frameworks/kguiaddons-${KFMIN}:5 |
139 |
+ >=kde-frameworks/ki18n-${KFMIN}:5 |
140 |
+ >=kde-frameworks/kiconthemes-${KFMIN}:5 |
141 |
+ >=kde-frameworks/kio-${KFMIN}:5 |
142 |
+ >=kde-frameworks/kitemviews-${KFMIN}:5 |
143 |
+ >=kde-frameworks/kjobwidgets-${KFMIN}:5 |
144 |
+ >=kde-frameworks/kparts-${KFMIN}:5 |
145 |
+ >=kde-frameworks/kservice-${KFMIN}:5 |
146 |
+ >=kde-frameworks/ktexteditor-${KFMIN}:5 |
147 |
+ >=kde-frameworks/ktextwidgets-${KFMIN}:5 |
148 |
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 |
149 |
+ >=kde-frameworks/kwindowsystem-${KFMIN}:5 |
150 |
+ >=kde-frameworks/kxmlgui-${KFMIN}:5 |
151 |
+ activities? ( >=kde-frameworks/kactivities-${KFMIN}:5 ) |
152 |
+ filebrowser? ( >=kde-frameworks/kbookmarks-${KFMIN}:5 ) |
153 |
+ lspclient? ( >=kde-frameworks/kitemmodels-${KFMIN}:5 ) |
154 |
+ plasma? ( >=kde-frameworks/plasma-${KFMIN}:5 ) |
155 |
+ projects? ( |
156 |
+ >=kde-frameworks/knewstuff-${KFMIN}:5 |
157 |
+ >=kde-frameworks/threadweaver-${KFMIN}:5 |
158 |
+ ) |
159 |
+ snippets? ( >=kde-frameworks/knewstuff-${KFMIN}:5 ) |
160 |
+ sql? ( |
161 |
+ >=dev-qt/qtsql-${QTMIN}:5 |
162 |
+ >=kde-frameworks/kwallet-${KFMIN}:5 |
163 |
+ ) |
164 |
+ telemetry? ( dev-libs/kuserfeedback:5 ) |
165 |
+" |
166 |
+RDEPEND="${DEPEND}" |
167 |
+ |
168 |
+PATCHES=( "${FILESDIR}/${P}-implicit-dep.patch" ) # bug 785412 |
169 |
+ |
170 |
+src_prepare() { |
171 |
+ ecm_src_prepare |
172 |
+ |
173 |
+ # delete colliding kwrite translations |
174 |
+ if [[ ${KDE_BUILD_TYPE} = release ]]; then |
175 |
+ find po -type f -name "*po" -and -name "kwrite*" -delete || die |
176 |
+ rm -rf po/*/docs/kwrite || die |
177 |
+ fi |
178 |
+} |
179 |
+ |
180 |
+src_configure() { |
181 |
+ local mycmakeargs=( |
182 |
+ $(cmake_use_find_package activities KF5Activities) |
183 |
+ -DBUILD_filebrowser=$(usex filebrowser) |
184 |
+ -DBUILD_lspclient=$(usex lspclient) |
185 |
+ -DBUILD_sessionapplet=$(usex plasma) |
186 |
+ -DBUILD_project=$(usex projects) |
187 |
+ -DBUILD_snippets=$(usex snippets) |
188 |
+ -DBUILD_katesql=$(usex sql) |
189 |
+ -DBUILD_kwrite=FALSE |
190 |
+ $(cmake_use_find_package telemetry KUserFeedback) |
191 |
+ ) |
192 |
+ |
193 |
+ ecm_src_configure |
194 |
+} |
195 |
+ |
196 |
+src_test() { |
197 |
+ # tests hang |
198 |
+ local myctestargs=( |
199 |
+ -E "(session_manager_test|sessions_action_test)" |
200 |
+ ) |
201 |
+ |
202 |
+ ecm_src_test |
203 |
+} |
204 |
+ |
205 |
+pkg_postinst() { |
206 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
207 |
+ optfeature "Markdown text previews" kde-misc/markdownpart:${SLOT} kde-misc/kmarkdownwebview:${SLOT} |
208 |
+ optfeature "DOT graph file previews" media-gfx/kgraphviewer |
209 |
+ fi |
210 |
+ ecm_pkg_postinst |
211 |
+} |