kde5_latest.ktexteditor: update patches and dependencies

ktexteditor-5.18.0 needs its patches updated. An optional dependency on
`libgit2` was also added. `makeQtWrapper` was added to
`nativeBuildInputs` to set `XDG_DATA_DIRS` correctly.
This commit is contained in:
Thomas Tuegel 2016-01-10 10:58:03 -06:00
parent 67d63d24e0
commit ab16bbd0a4
3 changed files with 18 additions and 25 deletions

View File

@ -1,17 +1,21 @@
{ kdeFramework, lib, extra-cmake-modules, karchive, kconfig { kdeFramework, lib, copyPathsToStore
, kguiaddons, ki18n, kio, kiconthemes, kparts, perl, qtscript , extra-cmake-modules, makeQtWrapper, perl
, qtxmlpatterns, sonnet , karchive, kconfig, kguiaddons, kiconthemes, kparts
, libgit2
, qtscript, qtxmlpatterns
, ki18n, kio, sonnet
}: }:
kdeFramework { kdeFramework {
name = "ktexteditor"; name = "ktexteditor";
nativeBuildInputs = [ extra-cmake-modules perl ]; nativeBuildInputs = [ extra-cmake-modules makeQtWrapper perl ];
buildInputs = [ buildInputs = [
karchive kconfig kguiaddons kiconthemes kparts qtscript karchive kconfig kguiaddons kiconthemes kparts
qtxmlpatterns libgit2
qtscript qtxmlpatterns
]; ];
propagatedBuildInputs = [ ki18n kio sonnet ]; propagatedBuildInputs = [ ki18n kio sonnet ];
patches = [ ./0001-no-qcoreapplication.patch ]; patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
meta = { meta = {
maintainers = [ lib.maintainers.ttuegel ]; maintainers = [ lib.maintainers.ttuegel ];
}; };

View File

@ -1,17 +1,8 @@
From dc50fffdc72b76498384ce2f9065c3757b786d71 Mon Sep 17 00:00:00 2001 Index: ktexteditor-5.18.0/src/syntax/data/katehighlightingindexer.cpp
From: Thomas Tuegel <ttuegel@gmail.com> ===================================================================
Date: Wed, 14 Oct 2015 09:08:59 -0500 --- ktexteditor-5.18.0.orig/src/syntax/data/katehighlightingindexer.cpp
Subject: [PATCH] no qcoreapplication +++ ktexteditor-5.18.0/src/syntax/data/katehighlightingindexer.cpp
@@ -55,19 +55,16 @@ QStringList readListing(const QString &f
---
src/syntax/data/katehighlightingindexer.cpp | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/src/syntax/data/katehighlightingindexer.cpp b/src/syntax/data/katehighlightingindexer.cpp
index 3c63140..e3d5efe 100644
--- a/src/syntax/data/katehighlightingindexer.cpp
+++ b/src/syntax/data/katehighlightingindexer.cpp
@@ -51,19 +51,16 @@ QStringList readListing(const QString &fileName)
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
@ -34,7 +25,7 @@ index 3c63140..e3d5efe 100644
if (hlFilenamesListing.isEmpty()) { if (hlFilenamesListing.isEmpty()) {
return 1; return 1;
} }
@@ -147,7 +144,7 @@ int main(int argc, char *argv[]) @@ -152,7 +149,7 @@ int main(int argc, char *argv[])
return anyError; return anyError;
// create outfile, after all has worked! // create outfile, after all has worked!
@ -43,6 +34,3 @@ index 3c63140..e3d5efe 100644
if (!outFile.open(QIODevice::WriteOnly | QIODevice::Truncate)) if (!outFile.open(QIODevice::WriteOnly | QIODevice::Truncate))
return 7; return 7;
--
2.5.2

View File

@ -0,0 +1 @@
no-qcoreapplication.patch