git » kate.git » commit d44bf9b

KDE Applications 15.04

author Antonio Rojas
2015-04-10 06:56:26 UTC
committer Antonio Rojas
2015-04-10 06:56:26 UTC
parent 38f17e93774edfb072a92acb222450f019a42d6e

KDE Applications 15.04

PKGBUILD +8 -17
fix-dolphin-hang.patch +0 -76

diff --git a/PKGBUILD b/PKGBUILD
index a2c420c..8b31deb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,24 +4,18 @@
 pkgbase=kate
 pkgname=('kwrite'
          'kate')
-pkgver=14.12.3
-pkgrel=2
+pkgver=15.04.0
+pkgrel=1
 arch=('i686' 'x86_64')
 license=('GPL' 'LGPL' 'FDL')
 depends=('knewstuff' 'ktexteditor' 'threadweaver' 'kded' 'kitemmodels')
 makedepends=('extra-cmake-modules' 'kdoctools' 'python' 'plasma-framework')
 optdepends=('kio-extras: extra protocols support (sftp, fish and more)')
-source=("http://download.kde.org/stable/applications/${pkgver}/src/${pkgbase}-${pkgver}.tar.xz"
-        fix-dolphin-hang.patch)
-sha1sums=('57a34ad4dfb8e1a8c8f76244cf571cb1ce8f5c28'
-          '4b15188df9d6cce000022f6f7969bf00ebe702af')
+source=("http://download.kde.org/stable/applications/${pkgver}/src/${pkgbase}-${pkgver}.tar.xz")
+sha1sums=('2ba29201f2b41f545874f9a58b229bd6acdc5163')
 
 prepare() {
   mkdir build
-
-  # FS#43513 / https://bugs.kde.org/show_bug.cgi?id=339094
-  cd ${pkgbase}-${pkgver}
-  patch -p1 -i ../fix-dolphin-hang.patch
 }
 
 build() {
@@ -38,7 +32,7 @@ build() {
 
 package_kwrite() {
   pkgdesc="Text Editor"
-  groups=('kde' 'kdebase')
+  groups=('kde-applications' 'kdebase')
   url="http://www.kde.org/applications/utilities/kwrite/"
   install='kwrite.install'
   replaces=('kdebase-kwrite')
@@ -54,7 +48,7 @@ package_kwrite() {
 
 package_kate() {
   pkgdesc="Advanced Text Editor"
-  groups=('kde' 'kdesdk')
+  groups=('kde-applications' 'kdebase')
   url="http://www.kde.org/applications/utilities/kate/"
   install='kate.install'
   replaces=('kdesdk-kate')
@@ -65,12 +59,9 @@ package_kate() {
   cd build/kate
   make DESTDIR="${pkgdir}" install
 
-  cd "$srcdir"/build/addons
-  make DESTDIR="${pkgdir}" install
-
-  cd "$srcdir"/build/doc/kate
+  cd ../../build/doc/kate
   make DESTDIR="${pkgdir}" install
 
-  cd "$srcdir"/build/doc/katepart
+  cd ../../../build/addons
   make DESTDIR="${pkgdir}" install
 }
diff --git a/fix-dolphin-hang.patch b/fix-dolphin-hang.patch
deleted file mode 100644
index 5e9f3ac..0000000
--- a/fix-dolphin-hang.patch
+++ /dev/null
@@ -1,76 +0,0 @@
-diff -rup kate-14.12.1/CMakeLists.txt kate/CMakeLists.txt
---- kate-14.12.1/CMakeLists.txt	2014-12-09 19:35:28.000000000 +0800
-+++ kate/CMakeLists.txt	2015-01-25 17:16:16.570425122 +0800
-@@ -47,6 +47,12 @@ find_package(KF5 REQUIRED COMPONENTS
-   XmlGui
- )
- 
-+find_package(X11)
-+set(HAVE_X11 ${X11_FOUND})
-+if (HAVE_X11)
-+    find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED X11Extras)
-+endif()
-+
- # use sane compile flags
- add_definitions(
-   -DQT_USE_QSTRINGBUILDER
-diff -rup kate-14.12.1/config.h.cmake kate/config.h.cmake
---- kate-14.12.1/config.h.cmake	2014-12-09 19:35:28.000000000 +0800
-+++ kate/config.h.cmake	2015-01-25 17:08:36.686329148 +0800
-@@ -8,4 +8,6 @@
- #cmakedefine HAVE_CTERMID 1
- #cmakedefine KActivities_FOUND 1
- 
-+#cmakedefine01 HAVE_X11
-+
- #endif
-diff -rup kate-14.12.1/kate/src/kateapp.cpp kate/kate/src/kateapp.cpp
---- kate-14.12.1/kate/src/kateapp.cpp	2014-12-09 19:35:28.000000000 +0800
-+++ kate/kate/src/kateapp.cpp	2015-01-25 17:23:45.624284162 +0800
-@@ -151,9 +151,9 @@ bool KateApp::startupKate()
-     } else if (!m_args.isSet(QStringLiteral("stdin")) && (m_args.positionalArguments().count() == 0)) { // only start session if no files specified
-         // let the user choose session if possible
-         if (!sessionManager()->chooseSession()) {
--#ifdef Q_WS_X11
-+#ifdef HAVE_X11
-             // we will exit kate now, notify the rest of the world we are done
--            KStartupInfo::appStarted(startupId());
-+            KStartupInfo::appStarted(KStartupInfo::startupId());
- #endif
-             return false;
-         }
-@@ -167,8 +167,8 @@ bool KateApp::startupKate()
-     }
- 
-     // notify about start
--#ifdef Q_WS_X11
--    KStartupInfo::setNewStartupId(activeKateMainWindow(), startupId());
-+#ifdef HAVE_X11
-+    KStartupInfo::setNewStartupId(activeKateMainWindow(), KStartupInfo::startupId());
- #endif
- 
-     QTextCodec *codec = m_args.isSet(QStringLiteral("encoding")) ? QTextCodec::codecForName(m_args.value(QStringLiteral("encoding")).toUtf8()) : 0;
-diff -rup kate-14.12.1/kate/src/main.cpp kate/kate/src/main.cpp
---- kate-14.12.1/kate/src/main.cpp	2014-12-09 19:35:28.000000000 +0800
-+++ kate/kate/src/main.cpp	2015-01-25 20:34:33.613003810 +0800
-@@ -25,6 +25,7 @@
- 
- #include <KAboutData>
- #include <KLocalizedString>
-+#include <KStartupInfo>
- #include <kdbusservice.h>
- 
- #include <QByteArray>
-@@ -385,7 +386,11 @@ extern "C" Q_DECL_EXPORT int kdemain(int
-                 QDBusConnection::sessionBus().connect(serviceName, QStringLiteral("/MainApplication"), QStringLiteral("org.kde.Kate.Application"), QStringLiteral("documentClosed"), waiter, SLOT(documentClosed(QString)));
-             }
- 
--    #ifdef Q_WS_X11
-+            // KToolInvocation (and KRun) will wait until we register on dbus
-+            KDBusService dbusService(KDBusService::Multiple);
-+            dbusService.unregister();
-+
-+    #ifdef HAVE_X11
-             // make the world happy, we are started, kind of...
-             KStartupInfo::appStarted();
-     #endif