Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/umbrello/files/, kde-apps/umbrello/
Date: Sat, 31 Oct 2020 09:26:05
Message-Id: 1604095189.d6b101980b5fc7fc565acd4c5a8ec54f08e50200.asturm@gentoo
1 commit: d6b101980b5fc7fc565acd4c5a8ec54f08e50200
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 30 21:59:49 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 30 21:59:49 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=d6b10198
7
8 kde-apps/umbrello: Unbundle dev-utils/kdevelop-php and update DEPENDs
9
10 Upstream commit 57fef3b1d54959d5b719469c7c67e1d3e7be49dc
11
12 Package-Manager: Portage-3.0.8, Repoman-3.0.2
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 .../umbrello-20.08.3-unbundle-kdevelop-php.patch | 92 ++++++++++++++++++++++
16 kde-apps/umbrello/umbrello-20.08.49.9999.ebuild | 8 +-
17 kde-apps/umbrello/umbrello-9999.ebuild | 3 +-
18 3 files changed, 100 insertions(+), 3 deletions(-)
19
20 diff --git a/kde-apps/umbrello/files/umbrello-20.08.3-unbundle-kdevelop-php.patch b/kde-apps/umbrello/files/umbrello-20.08.3-unbundle-kdevelop-php.patch
21 new file mode 100644
22 index 0000000000..cce395a837
23 --- /dev/null
24 +++ b/kde-apps/umbrello/files/umbrello-20.08.3-unbundle-kdevelop-php.patch
25 @@ -0,0 +1,92 @@
26 +From 57fef3b1d54959d5b719469c7c67e1d3e7be49dc Mon Sep 17 00:00:00 2001
27 +From: Ralf Habacker <ralf.habacker@×××××××.de>
28 +Date: Fri, 30 Oct 2020 08:32:41 +0100
29 +Subject: [PATCH] Add support to use external KDevPHP packaga
30 +
31 +If no external development package has been found fallback to embedded
32 +version.
33 +
34 +This commit adds an additional optional dependency for the KDevPHP package, which
35 +named e.g. on openSUSE 'kdevelop5-plugin-php-devel'.
36 +
37 +BUG:428460
38 +FIXED-IN:2.32.80 (KDE releases 20.11.80)
39 +---
40 + CMakeLists.txt | 20 ++++++++++++++------
41 + umbrello/codeimport/phpimport.cpp | 19 +++++++++++--------
42 + 2 files changed, 25 insertions(+), 14 deletions(-)
43 +
44 +diff --git a/CMakeLists.txt b/CMakeLists.txt
45 +index 221c04e31..398415f09 100644
46 +--- a/CMakeLists.txt
47 ++++ b/CMakeLists.txt
48 +@@ -129,18 +129,26 @@ if(KDEVPGQT_FOUND AND KDEVPLATFORM_FOUND)
49 + include_directories(
50 + ${KDEVPGQT_INCLUDE_DIR}
51 + ${KDEVPLATFORM_INCLUDE_DIR}
52 +- ${CMAKE_SOURCE_DIR}/${KDEV_SOURCE_DIR}/parser
53 +- ${CMAKE_BINARY_DIR}/${KDEV_SOURCE_DIR}/parser
54 + )
55 +- set(NO_INSTALL 1)
56 +- set(BUILD_PARSER_ONLY 1)
57 + set(BUILD_PHP_IMPORT 1)
58 + add_definitions(
59 +- -DKDEVPHPPARSER_EXPORT=
60 + -DENABLE_PHP_IMPORT
61 + )
62 + add_subdirectory(lib/kdevplatform)
63 +- add_subdirectory(${KDEV_SOURCE_DIR})
64 ++ find_package(KDevPHP)
65 ++ if(NOT KDevPHP_FOUND)
66 ++ set(NO_INSTALL 1)
67 ++ set(BUILD_PARSER_ONLY 1)
68 ++ set(BUILD_PHP_IMPORT 1)
69 ++ add_definitions(
70 ++ -DKDEVPHPPARSER_EXPORT=
71 ++ )
72 ++ include_directories(
73 ++ ${CMAKE_SOURCE_DIR}/${KDEV_SOURCE_DIR}
74 ++ ${CMAKE_BINARY_DIR}/${KDEV_SOURCE_DIR}
75 ++ )
76 ++ add_subdirectory(${KDEV_SOURCE_DIR})
77 ++ endif()
78 + else()
79 + set(BUILD_PHP_IMPORT 0)
80 + endif()
81 +diff --git a/umbrello/codeimport/phpimport.cpp b/umbrello/codeimport/phpimport.cpp
82 +index f45f1416f..f714dcbad 100644
83 +--- a/umbrello/codeimport/phpimport.cpp
84 ++++ b/umbrello/codeimport/phpimport.cpp
85 +@@ -39,18 +39,21 @@ QTextStream qout(stdout);
86 + QTextStream qerr(stderr);
87 + QTextStream qin(stdin);
88 +
89 +-#include "parsesession.h"
90 +-#include "phplexer.h"
91 +-#include "phpparser.h"
92 +-#include "phpdebugvisitor.h"
93 +-#include "phpast.h"
94 +-#include "tokenstream.h"
95 +-#include "phptokentext.h"
96 +-
97 ++// kdevphp
98 ++#include <parser/parsesession.h>
99 ++#include <parser/phplexer.h>
100 ++#include <parser/phpparser.h>
101 ++#include <parser/phpdebugvisitor.h>
102 ++#include <parser/phpast.h>
103 ++#include <parser/tokenstream.h>
104 ++#include <parser/phptokentext.h>
105 ++
106 ++// kdevplatform
107 + #include <tests/autotestshell.h>
108 + #include <language/duchain/duchain.h>
109 + #include <language/duchain/problem.h>
110 + #include <language/codegen/coderepresentation.h>
111 ++#include <language/editor/documentrange.h>
112 + #include <tests/testcore.h>
113 +
114 + namespace Php {
115 +--
116 +GitLab
117 +
118
119 diff --git a/kde-apps/umbrello/umbrello-20.08.49.9999.ebuild b/kde-apps/umbrello/umbrello-20.08.49.9999.ebuild
120 index 1ec6ad0543..67eb70e963 100644
121 --- a/kde-apps/umbrello/umbrello-20.08.49.9999.ebuild
122 +++ b/kde-apps/umbrello/umbrello-20.08.49.9999.ebuild
123 @@ -45,12 +45,16 @@ RDEPEND="
124 >=kde-frameworks/kxmlgui-${KFMIN}:5
125 php? (
126 dev-util/kdevelop:5=
127 - dev-util/kdevelop-pg-qt
128 + dev-util/kdevelop-pg-qt:5
129 + dev-util/kdevelop-php:5
130 )
131 "
132 DEPEND="${RDEPEND}"
133
134 -PATCHES=( "${FILESDIR}"/${PN}-20.08.3-{no,unused}-qtwebkit.patch )
135 +PATCHES=(
136 + "${FILESDIR}"/${PN}-20.08.3-{no,unused}-qtwebkit.patch
137 + "${FILESDIR}"/${PN}-20.08.3-unbundle-kdevelop-php.patch
138 +)
139
140 src_configure() {
141 local mycmakeargs=(
142
143 diff --git a/kde-apps/umbrello/umbrello-9999.ebuild b/kde-apps/umbrello/umbrello-9999.ebuild
144 index e1ac904a25..f525d40125 100644
145 --- a/kde-apps/umbrello/umbrello-9999.ebuild
146 +++ b/kde-apps/umbrello/umbrello-9999.ebuild
147 @@ -45,7 +45,8 @@ RDEPEND="
148 >=kde-frameworks/kxmlgui-${KFMIN}:5
149 php? (
150 dev-util/kdevelop:5=
151 - dev-util/kdevelop-pg-qt
152 + dev-util/kdevelop-pg-qt:5
153 + dev-util/kdevelop-php:5
154 )
155 "
156 DEPEND="${RDEPEND}"