diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-11-05 13:14:28 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-11-05 18:58:06 +0100 |
commit | 1fa41c3bc643d2b69f350e513bf4484b53308c5f (patch) | |
tree | 6bf3722d45c6d5a51e2bcc30d9bcb7f61a996ec1 /kde-apps/umbrello | |
parent | kde-apps/poxml: 20.08.3 version bump (diff) | |
download | gentoo-1fa41c3bc643d2b69f350e513bf4484b53308c5f.tar.gz gentoo-1fa41c3bc643d2b69f350e513bf4484b53308c5f.tar.bz2 gentoo-1fa41c3bc643d2b69f350e513bf4484b53308c5f.zip |
kde-apps/umbrello: 20.08.3 version bump
Fix hardcoded docbook install paths for Gentoo's KDE_INSTALL_DOCBUNDLEDIR.
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-apps/umbrello')
5 files changed, 269 insertions, 66 deletions
diff --git a/kde-apps/umbrello/Manifest b/kde-apps/umbrello/Manifest index f43d933e4dd8..a2ec39ee39f2 100644 --- a/kde-apps/umbrello/Manifest +++ b/kde-apps/umbrello/Manifest @@ -1,2 +1,3 @@ DIST umbrello-20.04.3.tar.xz 5546160 BLAKE2B 4ca97a12b066235f8910a1fb91cebe809a6a621f60fa6b988fa90e77970ed21a4dc958d08a425431bd947cff6b9142b53310aacdc7e4e4122ea3fe48b7723594 SHA512 dd85330578a8c9a9568ce40758d76848fee76fa4ac16a44faeeb064480910038d734876ef9e2475e01e75a13f3d0b8d444fbf78542c9648ee6a8f59b4dc9b83c DIST umbrello-20.08.2.tar.xz 5554932 BLAKE2B 9cfeea3ced5fef606b9a1d74a008e6e1e70ad21e03796caddcd2a5c08e7c124cb5b57d05739bc23acca6747de0576aef940e6be9e4d1173e8b44e3ee124aeb7e SHA512 ba0f668fe0ac152b1087f99fb7e8cefd15b537417da9916ae15550f987ca3dd50801a34d987dbc860dcb06ae44deb4e4d33e54296800814fa5dc21bd22b6de65 +DIST umbrello-20.08.3.tar.xz 5555108 BLAKE2B c8ccc39d43f061d78889776e6adc6d1a07a67608b8cbfc8c18e8f94a3d1608b3764c15d496538bb76db2672cd6bdfa8158b30a24f38f3c40e8b18dfe72262155 SHA512 541d637cd892f5b162fa88e3380c9ed4c9c175d5479bb1947b415b8fa59a419fd90eac2e47d939ec3d9b7b43b14fbf6777683f884b7ff10e7dee85eccb59f813 diff --git a/kde-apps/umbrello/files/umbrello-20.08.3-gentoo-docbundledir.patch b/kde-apps/umbrello/files/umbrello-20.08.3-gentoo-docbundledir.patch new file mode 100644 index 000000000000..e3915379be2a --- /dev/null +++ b/kde-apps/umbrello/files/umbrello-20.08.3-gentoo-docbundledir.patch @@ -0,0 +1,41 @@ +From 29186bb3c1c3e4de89d77340db966c660789cdab Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@gentoo.org> +Date: Thu, 5 Nov 2020 14:39:51 +0100 +Subject: [PATCH] Fix hardcoded docbook install paths for Gentoo + +Gentoo sets KDE_INSTALL_DOCBUNDLEDIR="${EPREFIX}/usr/share/help". + +Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> +--- + umbrello/umlappprivate.cpp | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/umbrello/umlappprivate.cpp b/umbrello/umlappprivate.cpp +index d8bae2cfe..8c1c58a02 100644 +--- a/umbrello/umlappprivate.cpp ++++ b/umbrello/umlappprivate.cpp +@@ -36,17 +36,17 @@ QString UMLAppPrivate::findWelcomeFile() + + // from custom install + foreach(const QString &lang, langList) { +- dirList.append(QCoreApplication::applicationDirPath() + QString(QLatin1String("/../share/doc/HTML/%1/umbrello/apphelp")).arg(lang)); ++ dirList.append(QCoreApplication::applicationDirPath() + QString(QLatin1String("/../share/help/%1/umbrello/apphelp")).arg(lang)); + } +- dirList.append(QCoreApplication::applicationDirPath() + QLatin1String("/../share/doc/HTML/en/umbrello/apphelp")); ++ dirList.append(QCoreApplication::applicationDirPath() + QLatin1String("/../share/help/en/umbrello/apphelp")); + + QStringList locations = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation); + // from real installation + foreach(const QString &location, locations) { + foreach(const QString &lang, langList) { +- dirList.append(QString(QLatin1String("%1/doc/HTML/%2/umbrello/apphelp")).arg(location).arg(lang)); ++ dirList.append(QString(QLatin1String("%1/help/%2/umbrello/apphelp")).arg(location).arg(lang)); + } +- dirList.append(QString(QLatin1String("%1/doc/HTML/en/umbrello/apphelp")).arg(location)); ++ dirList.append(QString(QLatin1String("%1/help/en/umbrello/apphelp")).arg(location)); + } + #else + KLocale *local = KGlobal::locale(); +-- +2.29.2 + diff --git a/kde-apps/umbrello/files/umbrello-20.08.3-no-qtwebkit.patch b/kde-apps/umbrello/files/umbrello-20.08.3-no-qtwebkit.patch index 8f1a63675d84..bf41c2d40980 100644 --- a/kde-apps/umbrello/files/umbrello-20.08.3-no-qtwebkit.patch +++ b/kde-apps/umbrello/files/umbrello-20.08.3-no-qtwebkit.patch @@ -1,55 +1,43 @@ -From 0500feddb6ff02cd42624b0d3018c5292481b031 Mon Sep 17 00:00:00 2001 +From eb753a7eb0f49c6ac5b349f81387ca4b4c64342b Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner <asturm@gentoo.org> Date: Mon, 12 Oct 2020 11:46:24 +0200 -Subject: [PATCH] Disable defunct WelcomePage to get rid of QtWebKit +Subject: [PATCH] Make QtWebKit usage in WelcomePage optional, with + QTextBrowser fallback + +Thanks-to: Ralf Habacker <ralf.habacker@freenet.de> for QTextBrowser fallback code. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> --- - CMakeLists.txt | 1 - - cmake/modules/ECMKDE4Macros.cmake | 2 +- - umbrello/CMakeLists.txt | 2 -- - umbrello/uml.cpp | 2 +- - umbrello/umlappprivate.h | 5 ++++- - 5 files changed, 6 insertions(+), 6 deletions(-) + CMakeLists.txt | 7 ++++++- + umbrello/CMakeLists.txt | 4 +++- + umbrello/umlappprivate.h | 13 +++++++++++++ + 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt -index d2d897683..ac70ffe4e 100644 +index 398415f09..7144f0990 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -89,7 +89,6 @@ find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS +@@ -95,9 +95,14 @@ find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Test Widgets Xml - WebKitWidgets ) ++find_package(Qt5WebKitWidgets ${QT_MIN_VERSION}) ++if(Qt5WebKitWidgets_FOUND) ++ add_definitions(-DWEBKIT_WELCOMEPAGE) ++ set(WEBKIT_WELCOMEPAGE 1) ++endif() ++ # search packages used by KDE -diff --git a/cmake/modules/ECMKDE4Macros.cmake b/cmake/modules/ECMKDE4Macros.cmake -index 3de472295..28eb1c180 100644 ---- a/cmake/modules/ECMKDE4Macros.cmake -+++ b/cmake/modules/ECMKDE4Macros.cmake -@@ -106,7 +106,7 @@ macro(find_package package) - #message("-- ${ARGV} --") - if("${package}" MATCHES "^(Qt5)") - #message("-- replaced by finding Qt4 --") -- _find_package(Qt4 4.4.3 REQUIRED QtCore QtGui QtXml QtTest QtWebKit) -+ _find_package(Qt4 4.4.3 REQUIRED QtCore QtGui QtXml QtTest) - elseif("${package}" MATCHES "^(KF5)$") - #message("-- replaced by finding KDE4 --") - _find_package(KDE4 REQUIRED) + find_package(KF5 REQUIRED COMPONENTS + Archive diff --git a/umbrello/CMakeLists.txt b/umbrello/CMakeLists.txt -index 264b25fde..22480642d 100644 +index 264b25fde..f3286ae46 100644 --- a/umbrello/CMakeLists.txt +++ b/umbrello/CMakeLists.txt -@@ -525,7 +525,6 @@ if(NOT BUILD_KF5) - Qt4::QtCore - Qt4::QtGui - Qt4::QtXml -- Qt4::QtWebKit - ${LIBXML2_LIBRARIES} - ${LIBXSLT_LIBRARIES} - ${KDE4_KTEXTEDITOR_LIBS} -@@ -549,7 +548,6 @@ else() +@@ -549,7 +551,6 @@ else() Qt5::Xml Qt5::PrintSupport Qt5::Svg @@ -57,49 +45,55 @@ index 264b25fde..22480642d 100644 KF5::Archive KF5::Completion KF5::CoreAddons -diff --git a/umbrello/uml.cpp b/umbrello/uml.cpp -index 1e0be0c5a..98ce70aef 100644 ---- a/umbrello/uml.cpp -+++ b/umbrello/uml.cpp -@@ -996,7 +996,7 @@ void UMLApp::initView() - m_d->createObjectsWindow(); - #endif - m_d->createStereotypesWindow(); -- m_d->createWelcomeWindow(); -+// m_d->createWelcomeWindow(); - - m_debugDock = new QDockWidget(i18n("&Debug"), this); - m_debugDock->setObjectName(QLatin1String("DebugDock")); +@@ -565,6 +566,9 @@ else() + ${LIBXML2_LIBRARIES} + codeimport + ) ++ if(WEBKIT_WELCOMEPAGE) ++ target_link_libraries(libumbrello Qt5::WebKitWidgets) ++ endif() + ecm_add_app_icon(umbrello_SRCS + ICONS + ${CMAKE_CURRENT_SOURCE_DIR}/pics/global/16-apps-umbrello.png diff --git a/umbrello/umlappprivate.h b/umbrello/umlappprivate.h -index a85de1f22..b9d50a5c1 100644 +index a85de1f22..a7212cc8d 100644 --- a/umbrello/umlappprivate.h +++ b/umbrello/umlappprivate.h -@@ -42,7 +42,7 @@ +@@ -42,7 +42,11 @@ #include <QFileInfo> #include <QListWidget> #include <QObject> --#include <QWebView> -+// #include <QWebView> ++#ifdef WEBKIT_WELCOMEPAGE + #include <QWebView> ++#else ++#include <QTextBrowser> ++#endif class QWidget; -@@ -151,6 +151,8 @@ public slots: - - void createWelcomeWindow() - { -+ return; -+/* - QString file = findWelcomeFile(); - if (file.isEmpty()) - return; -@@ -171,6 +173,7 @@ public slots: +@@ -160,6 +164,7 @@ public slots: + // qDebug() << html; + welcomeWindow = new QDockWidget(i18n("Welcome"), parent); + welcomeWindow->setObjectName(QLatin1String("WelcomeDock")); ++#ifdef WEBKIT_WELCOMEPAGE + QWebView *view = new QWebView; + view->page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks); + view->setContextMenuPolicy(Qt::NoContextMenu); +@@ -167,6 +172,14 @@ public slots: + view->setHtml(html); + view->show(); + welcomeWindow->setWidget(view); ++#else ++ QTextBrowser *tb = new QTextBrowser(dynamic_cast<QWidget*>(this)); ++ tb->setOpenExternalLinks(true); ++ tb->setOpenLinks(false); ++ tb->setHtml(html); ++ connect(tb, SIGNAL(anchorClicked(const QUrl)), this, SLOT(slotWelcomeWindowLinkClicked(const QUrl))); ++ welcomeWindow->setWidget(tb); ++#endif + parent->addDockWidget(Qt::RightDockWidgetArea, welcomeWindow); viewWelcomeWindow = parent->actionCollection()->add<KToggleAction>(QLatin1String("view_show_welcome")); - connect(viewWelcomeWindow, SIGNAL(triggered(bool)), welcomeWindow, SLOT(setVisible(bool))); -+*/ - } - - void slotWelcomeWindowLinkClicked(const QUrl &url) -- -2.28.0 +2.29.2 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 new file mode 100644 index 000000000000..cce395a837ff --- /dev/null +++ b/kde-apps/umbrello/files/umbrello-20.08.3-unbundle-kdevelop-php.patch @@ -0,0 +1,92 @@ +From 57fef3b1d54959d5b719469c7c67e1d3e7be49dc Mon Sep 17 00:00:00 2001 +From: Ralf Habacker <ralf.habacker@freenet.de> +Date: Fri, 30 Oct 2020 08:32:41 +0100 +Subject: [PATCH] Add support to use external KDevPHP packaga + +If no external development package has been found fallback to embedded +version. + +This commit adds an additional optional dependency for the KDevPHP package, which +named e.g. on openSUSE 'kdevelop5-plugin-php-devel'. + +BUG:428460 +FIXED-IN:2.32.80 (KDE releases 20.11.80) +--- + CMakeLists.txt | 20 ++++++++++++++------ + umbrello/codeimport/phpimport.cpp | 19 +++++++++++-------- + 2 files changed, 25 insertions(+), 14 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 221c04e31..398415f09 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -129,18 +129,26 @@ if(KDEVPGQT_FOUND AND KDEVPLATFORM_FOUND) + include_directories( + ${KDEVPGQT_INCLUDE_DIR} + ${KDEVPLATFORM_INCLUDE_DIR} +- ${CMAKE_SOURCE_DIR}/${KDEV_SOURCE_DIR}/parser +- ${CMAKE_BINARY_DIR}/${KDEV_SOURCE_DIR}/parser + ) +- set(NO_INSTALL 1) +- set(BUILD_PARSER_ONLY 1) + set(BUILD_PHP_IMPORT 1) + add_definitions( +- -DKDEVPHPPARSER_EXPORT= + -DENABLE_PHP_IMPORT + ) + add_subdirectory(lib/kdevplatform) +- add_subdirectory(${KDEV_SOURCE_DIR}) ++ find_package(KDevPHP) ++ if(NOT KDevPHP_FOUND) ++ set(NO_INSTALL 1) ++ set(BUILD_PARSER_ONLY 1) ++ set(BUILD_PHP_IMPORT 1) ++ add_definitions( ++ -DKDEVPHPPARSER_EXPORT= ++ ) ++ include_directories( ++ ${CMAKE_SOURCE_DIR}/${KDEV_SOURCE_DIR} ++ ${CMAKE_BINARY_DIR}/${KDEV_SOURCE_DIR} ++ ) ++ add_subdirectory(${KDEV_SOURCE_DIR}) ++ endif() + else() + set(BUILD_PHP_IMPORT 0) + endif() +diff --git a/umbrello/codeimport/phpimport.cpp b/umbrello/codeimport/phpimport.cpp +index f45f1416f..f714dcbad 100644 +--- a/umbrello/codeimport/phpimport.cpp ++++ b/umbrello/codeimport/phpimport.cpp +@@ -39,18 +39,21 @@ QTextStream qout(stdout); + QTextStream qerr(stderr); + QTextStream qin(stdin); + +-#include "parsesession.h" +-#include "phplexer.h" +-#include "phpparser.h" +-#include "phpdebugvisitor.h" +-#include "phpast.h" +-#include "tokenstream.h" +-#include "phptokentext.h" +- ++// kdevphp ++#include <parser/parsesession.h> ++#include <parser/phplexer.h> ++#include <parser/phpparser.h> ++#include <parser/phpdebugvisitor.h> ++#include <parser/phpast.h> ++#include <parser/tokenstream.h> ++#include <parser/phptokentext.h> ++ ++// kdevplatform + #include <tests/autotestshell.h> + #include <language/duchain/duchain.h> + #include <language/duchain/problem.h> + #include <language/codegen/coderepresentation.h> ++#include <language/editor/documentrange.h> + #include <tests/testcore.h> + + namespace Php { +-- +GitLab + diff --git a/kde-apps/umbrello/umbrello-20.08.3.ebuild b/kde-apps/umbrello/umbrello-20.08.3.ebuild new file mode 100644 index 000000000000..3ce55af0dc81 --- /dev/null +++ b/kde-apps/umbrello/umbrello-20.08.3.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +ECM_HANDBOOK="forceoptional" +ECM_QTHELP="false" # TODO: figure out install error +ECM_TEST="forceoptional" +KFMIN=5.74.0 +QTMIN=5.15.1 +VIRTUALX_REQUIRED="test" +inherit ecm kde.org + +DESCRIPTION="KDE UML Modeller" +HOMEPAGE="https://apps.kde.org/en/umbrello https://umbrello.kde.org" + +LICENSE="GPL-2" # TODO: CHECK +SLOT="5" +KEYWORDS="~amd64 ~x86" +IUSE="php" + +RDEPEND=" + dev-libs/libxml2 + dev-libs/libxslt + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtprintsupport-${QTMIN}:5 + >=dev-qt/qtsvg-${QTMIN}:5 + >=dev-qt/qtwidgets-${QTMIN}:5 + >=dev-qt/qtxml-${QTMIN}:5 + >=kde-frameworks/karchive-${KFMIN}:5 + >=kde-frameworks/kcompletion-${KFMIN}:5 + >=kde-frameworks/kconfig-${KFMIN}:5 + >=kde-frameworks/kconfigwidgets-${KFMIN}:5 + >=kde-frameworks/kcoreaddons-${KFMIN}:5 + >=kde-frameworks/kcrash-${KFMIN}:5 + >=kde-frameworks/kdelibs4support-${KFMIN}:5 + >=kde-frameworks/ki18n-${KFMIN}:5 + >=kde-frameworks/kiconthemes-${KFMIN}:5 + >=kde-frameworks/kio-${KFMIN}:5 + >=kde-frameworks/kjobwidgets-${KFMIN}:5 + >=kde-frameworks/ktexteditor-${KFMIN}:5 + >=kde-frameworks/ktextwidgets-${KFMIN}:5 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 + >=kde-frameworks/kwindowsystem-${KFMIN}:5 + >=kde-frameworks/kxmlgui-${KFMIN}:5 + php? ( + dev-util/kdevelop:5= + dev-util/kdevelop-pg-qt:5 + dev-util/kdevelop-php:5 + ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-{no,unused}-qtwebkit.patch + "${FILESDIR}"/${P}-gentoo-docbundledir.patch # downstream fix hardcoded path + "${FILESDIR}"/${P}-unbundle-kdevelop-php.patch +) + +src_configure() { + local mycmakeargs=( + -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON # broken, re-enable w/ ECM_QTHELP + -DBUILD_APIDOC=OFF + -DBUILD_KF5=ON + -DBUILD_PHP_IMPORT=$(usex php) + -DBUILD_unittests=$(usex test) + ) + use test && mycmakeargs+=( + -DCMAKE_DISABLE_FIND_PACKAGE_LLVM=ON + -DCMAKE_DISABLE_FIND_PACKAGE_Clang=ON + -DCMAKE_DISABLE_FIND_PACKAGE_CLANG=ON + ) + + ecm_src_configure +} |