1 |
commit: d57408f1eebf1425a48d66db8c9a8bb0c5d47674 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 31 13:47:29 2016 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 31 14:23:26 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d57408f1 |
7 |
|
8 |
dev-util/kdevelop: version bump |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
.../kdevelop/files/kdevelop-5.0.0-fix-cpp.patch | 47 ++++++++++ |
13 |
.../kdevelop/files/kdevelop-ninja-optional.patch | 11 +++ |
14 |
dev-util/kdevelop/kdevelop-5.0.0.ebuild | 99 ++++++++++++++++++++++ |
15 |
dev-util/kdevelop/metadata.xml | 2 + |
16 |
4 files changed, 159 insertions(+) |
17 |
|
18 |
diff --git a/dev-util/kdevelop/files/kdevelop-5.0.0-fix-cpp.patch b/dev-util/kdevelop/files/kdevelop-5.0.0-fix-cpp.patch |
19 |
new file mode 100644 |
20 |
index 00000000..9b15fe9 |
21 |
--- /dev/null |
22 |
+++ b/dev-util/kdevelop/files/kdevelop-5.0.0-fix-cpp.patch |
23 |
@@ -0,0 +1,47 @@ |
24 |
+From: Milian Wolff <mail@×××××××.de> |
25 |
+Date: Mon, 22 Aug 2016 10:47:26 +0000 |
26 |
+Subject: Fix compile |
27 |
+X-Git-Url: http://quickgit.kde.org/?p=kdevelop.git&a=commitdiff&h=f4b5b7538be64328cf8462ee438caaac6c0907aa |
28 |
+--- |
29 |
+Fix compile |
30 |
+ |
31 |
+BUG: 367659 |
32 |
+--- |
33 |
+ |
34 |
+ |
35 |
+--- a/languages/cpp/cppduchain/cppducontext.cpp |
36 |
++++ b/languages/cpp/cppduchain/cppducontext.cpp |
37 |
+@@ -39,7 +39,8 @@ |
38 |
+ REGISTER_DUCHAIN_ITEM_WITH_DATA(CppNormalDUContext, DUContextData); |
39 |
+ |
40 |
+ template<> |
41 |
+-QWidget* CppDUContext<TopDUContext>::createNavigationWidget( Declaration* decl, TopDUContext* topContext, const QString& htmlPrefix, const QString& htmlSuffix ) const { |
42 |
++QWidget* CppDUContext<TopDUContext>::createNavigationWidget(Declaration* decl, TopDUContext* topContext, const QString& htmlPrefix, const QString& htmlSuffix, |
43 |
++ AbstractNavigationWidget::DisplayHints /*hints*/) const { |
44 |
+ if( decl == 0 ) { |
45 |
+ Path path( url().str() ); |
46 |
+ IncludeItem i; |
47 |
+@@ -55,7 +56,8 @@ |
48 |
+ } |
49 |
+ |
50 |
+ template<> |
51 |
+-QWidget* CppDUContext<DUContext>::createNavigationWidget(Declaration* decl, TopDUContext* topContext, const QString& htmlPrefix, const QString& htmlSuffix) const { |
52 |
++QWidget* CppDUContext<DUContext>::createNavigationWidget(Declaration* decl, TopDUContext* topContext, const QString& htmlPrefix, const QString& htmlSuffix, |
53 |
++ AbstractNavigationWidget::DisplayHints /*hints*/) const { |
54 |
+ if( decl == 0 ) { |
55 |
+ if( owner() ) |
56 |
+ return new NavigationWidget( DeclarationPointer(owner()), TopDUContextPointer(topContext ? topContext : this->topContext()), htmlPrefix, htmlSuffix ); |
57 |
+ |
58 |
+--- a/languages/cpp/cppduchain/cppducontext.h |
59 |
++++ b/languages/cpp/cppduchain/cppducontext.h |
60 |
+@@ -652,7 +652,8 @@ |
61 |
+ return instantiateDeclarationAndContext( surroundingContext, source, this, info, 0, 0 ); |
62 |
+ } |
63 |
+ |
64 |
+- virtual QWidget* createNavigationWidget(Declaration* decl, TopDUContext* topContext, const QString& htmlPrefix, const QString& htmlSuffix) const override; |
65 |
++ virtual QWidget* createNavigationWidget(Declaration* decl, TopDUContext* topContext, const QString& htmlPrefix, const QString& htmlSuffix, |
66 |
++ KDevelop::AbstractNavigationWidget::DisplayHints hints = KDevelop::AbstractNavigationWidget::NoHints) const override; |
67 |
+ |
68 |
+ enum { |
69 |
+ Identity = BaseContext::Identity + 50 |
70 |
+ |
71 |
|
72 |
diff --git a/dev-util/kdevelop/files/kdevelop-ninja-optional.patch b/dev-util/kdevelop/files/kdevelop-ninja-optional.patch |
73 |
new file mode 100644 |
74 |
index 00000000..a60da91 |
75 |
--- /dev/null |
76 |
+++ b/dev-util/kdevelop/files/kdevelop-ninja-optional.patch |
77 |
@@ -0,0 +1,11 @@ |
78 |
+diff --git a/projectbuilders/CMakeLists.txt b/projectbuilders/CMakeLists.txt |
79 |
+index 80d7866..825ca8b 100644 |
80 |
+--- a/projectbuilders/CMakeLists.txt |
81 |
++++ b/projectbuilders/CMakeLists.txt |
82 |
+@@ -1,5 +1,5 @@ |
83 |
+ add_subdirectory(makebuilder) |
84 |
+-add_subdirectory(ninjabuilder) |
85 |
++ecm_optional_add_subdirectory(ninjabuilder) |
86 |
+ ecm_optional_add_subdirectory(cmakebuilder) |
87 |
+ if (KDevelop-PG-Qt_FOUND) |
88 |
+ ecm_optional_add_subdirectory(qmakebuilder) |
89 |
|
90 |
diff --git a/dev-util/kdevelop/kdevelop-5.0.0.ebuild b/dev-util/kdevelop/kdevelop-5.0.0.ebuild |
91 |
new file mode 100644 |
92 |
index 00000000..c533824 |
93 |
--- /dev/null |
94 |
+++ b/dev-util/kdevelop/kdevelop-5.0.0.ebuild |
95 |
@@ -0,0 +1,99 @@ |
96 |
+# Copyright 1999-2016 Gentoo Foundation |
97 |
+# Distributed under the terms of the GNU General Public License v2 |
98 |
+# $Id$ |
99 |
+ |
100 |
+EAPI=6 |
101 |
+ |
102 |
+EGIT_BRANCH="5.0" |
103 |
+KDE_HANDBOOK="forceoptional" |
104 |
+KDE_TEST="forceoptional-recursive" |
105 |
+VIRTUALX_REQUIRED="test" |
106 |
+inherit kde5 |
107 |
+ |
108 |
+DESCRIPTION="Integrated Development Environment, supporting KF5/Qt, C/C++ and much more" |
109 |
+LICENSE="GPL-2 LGPL-2" |
110 |
+IUSE="+cxx +cmake +gdbui +ninja okteta +plasma +qmake qthelp" |
111 |
+[[ ${KDE_BUILD_TYPE} = release ]] && KEYWORDS="~amd64 ~x86" |
112 |
+ |
113 |
+COMMON_DEPEND=" |
114 |
+ $(add_frameworks_dep kcmutils) |
115 |
+ $(add_frameworks_dep kcompletion) |
116 |
+ $(add_frameworks_dep kconfig) |
117 |
+ $(add_frameworks_dep kconfigwidgets) |
118 |
+ $(add_frameworks_dep kcoreaddons) |
119 |
+ $(add_frameworks_dep kcrash) |
120 |
+ $(add_frameworks_dep kdeclarative) |
121 |
+ $(add_frameworks_dep ki18n) |
122 |
+ $(add_frameworks_dep kiconthemes) |
123 |
+ $(add_frameworks_dep kio) |
124 |
+ $(add_frameworks_dep kitemmodels) |
125 |
+ $(add_frameworks_dep kitemviews) |
126 |
+ $(add_frameworks_dep kjobwidgets) |
127 |
+ $(add_frameworks_dep knewstuff) |
128 |
+ $(add_frameworks_dep knotifyconfig) |
129 |
+ $(add_frameworks_dep kparts) |
130 |
+ $(add_frameworks_dep kservice) |
131 |
+ $(add_frameworks_dep ktexteditor) |
132 |
+ $(add_frameworks_dep kwidgetsaddons) |
133 |
+ $(add_frameworks_dep kwindowsystem) |
134 |
+ $(add_frameworks_dep kxmlgui) |
135 |
+ $(add_frameworks_dep threadweaver) |
136 |
+ $(add_qt_dep qtdbus) |
137 |
+ $(add_qt_dep qtdeclarative) |
138 |
+ $(add_qt_dep qtgui) |
139 |
+ $(add_qt_dep qtnetwork) |
140 |
+ $(add_qt_dep qtwebkit) |
141 |
+ $(add_qt_dep qtwidgets) |
142 |
+ $(add_qt_dep qtxml) |
143 |
+ >=dev-util/kdevplatform-${PV}:5 |
144 |
+ x11-misc/shared-mime-info |
145 |
+ cxx? ( >=sys-devel/clang-3.5.0 ) |
146 |
+ gdbui? ( $(add_plasma_dep libksysguard) ) |
147 |
+ okteta? ( $(add_kdeapps_dep okteta) ) |
148 |
+ plasma? ( |
149 |
+ $(add_frameworks_dep krunner) |
150 |
+ $(add_frameworks_dep plasma) |
151 |
+ ) |
152 |
+ qmake? ( dev-util/kdevelop-pg-qt:5 ) |
153 |
+ qthelp? ( $(add_qt_dep qthelp) ) |
154 |
+" |
155 |
+DEPEND="${COMMON_DEPEND} |
156 |
+ $(add_qt_dep qtconcurrent) |
157 |
+" |
158 |
+RDEPEND="${COMMON_DEPEND} |
159 |
+ $(add_kdeapps_dep kapptemplate) |
160 |
+ $(add_kdeapps_dep kio-extras) |
161 |
+ >=sys-devel/gdb-7.0[python] |
162 |
+ ninja? ( dev-util/ninja ) |
163 |
+ !dev-util/kdevelop:4 |
164 |
+ !dev-util/kdevelop-clang |
165 |
+ !dev-util/kdevelop-qmake |
166 |
+ !dev-util/kdevelop-qmljs |
167 |
+ !<kde-apps/kapptemplate-16.04.0 |
168 |
+" |
169 |
+ |
170 |
+RESTRICT+=" test" |
171 |
+# see bug 366471 |
172 |
+ |
173 |
+PATCHES=( |
174 |
+ "${FILESDIR}/${PN}-ninja-optional.patch" |
175 |
+ "${FILESDIR}/${P}-fix-cpp.patch" |
176 |
+) |
177 |
+ |
178 |
+src_configure() { |
179 |
+ local mycmakeargs=( |
180 |
+ -DLEGACY_CPP_SUPPORT=$(usex !cxx) |
181 |
+ -DBUILD_cpp=OFF |
182 |
+ -DBUILD_cmake=$(usex cmake) |
183 |
+ -DBUILD_cmakebuilder=$(usex cmake) |
184 |
+ $(cmake-utils_use_find_package gdbui KF5SysGuard) |
185 |
+ -DBUILD_executeplasmoid=$(usex plasma) |
186 |
+ $(cmake-utils_use_find_package plasma KF5Plasma) |
187 |
+ -DBUILD_ninjabuilder=$(usex ninja) |
188 |
+ $(cmake-utils_use_find_package okteta OktetaKastenControllers) |
189 |
+ $(cmake-utils_use_find_package qmake KDevelop-PG-Qt) |
190 |
+ -DBUILD_qthelp=$(usex qthelp) |
191 |
+ ) |
192 |
+ |
193 |
+ kde5_src_configure |
194 |
+} |
195 |
|
196 |
diff --git a/dev-util/kdevelop/metadata.xml b/dev-util/kdevelop/metadata.xml |
197 |
index e60001d..a83234df7 100644 |
198 |
--- a/dev-util/kdevelop/metadata.xml |
199 |
+++ b/dev-util/kdevelop/metadata.xml |
200 |
@@ -8,7 +8,9 @@ |
201 |
<use> |
202 |
<flag name="cmake">Enable support for CMake build system</flag> |
203 |
<flag name="gdbui">Enable GUI for attaching GDB to a running process</flag> |
204 |
+ <flag name="ninja">Enable support for Ninja build system</flag> |
205 |
<flag name="okteta">Enable hex editor plugin</flag> |
206 |
+ <flag name="qmake">Enable support for QMake build system</flag> |
207 |
<flag name="qthelp">Enable support for QtHelp documentation browsing</flag> |
208 |
</use> |
209 |
</pkgmetadata> |