texstudio/texstudio-use-system-hunspell-instead-of-bundled-one.patch

51 lines
1.1 KiB
Diff
Raw Normal View History

2013-11-02 07:44:06 +00:00
From ba7a762549297d85e838f07c959786bd35095927 Mon Sep 17 00:00:00 2001
From: hannes <hannes@fedoraproject.org>
2013-11-02 07:44:06 +00:00
Date: Sat, 2 Nov 2013 07:13:52 +0000
Subject: [PATCH] hunspell fix
2011-08-13 16:45:40 +00:00
---
2013-11-02 07:44:06 +00:00
spellerutility.h | 2 +-
texstudio.pro | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
2011-08-13 16:45:40 +00:00
2013-11-02 07:44:06 +00:00
diff --git a/spellerutility.h b/spellerutility.h
2013-06-16 08:51:04 +00:00
index 7e1b980..c973220 100644
2011-08-13 16:45:40 +00:00
--- spellerutility.h
+++ spellerutility.h
@@ -13,7 +13,7 @@
#include "mostQtHeaders.h"
-#include "hunspell/hunspell.hxx"
2013-06-16 08:51:04 +00:00
+#include "hunspell.hxx"
2011-08-13 16:45:40 +00:00
class SpellerUtility: public QObject {
Q_OBJECT
public:
2013-11-02 07:44:06 +00:00
diff --git a/texstudio.pro b/texstudio.pro
index d9c9e64..31e1589 100644
2011-08-13 16:45:40 +00:00
--- texstudio.pro
+++ texstudio.pro
2013-11-02 07:44:06 +00:00
@@ -432,7 +432,7 @@ unix {
utilities
}
-include(hunspell/hunspell.pri)
+include(hunspell.pri)
include(qcodeedit/qcodeedit.pri)
@@ -623,4 +623,10 @@ else {
2013-06-16 08:51:04 +00:00
QMAKE_LFLAGS -= -Wl,-s
QMAKE_LFLAGS_RELEASE -= -Wl,-s
}
2013-11-02 07:44:06 +00:00
+# enable use of pkgconfig
+unix {
+ CONFIG += link_pkgconfig
+ # use system hunspell
+ PKGCONFIG += hunspell
+}
2011-08-13 16:45:40 +00:00
--
2013-11-02 07:44:06 +00:00
1.8.3.1
2011-08-13 16:45:40 +00:00