texstudio/texstudio-use-system-hunspe...

51 lines
1.1 KiB
Diff
Raw Normal View History

2013-11-04 19:51:30 +00:00
From 4d8b4c9a0cb9ee40cf36dbf0144fa96556bca487 Mon Sep 17 00:00:00 2001
From: hannes <hannes@fedoraproject.org>
2013-11-04 19:51:30 +00:00
Date: Mon, 4 Nov 2013 20:45:19 +0100
Subject: [PATCH] hunspell_patch
2011-08-13 16:45:40 +00:00
---
2013-11-02 07:44:06 +00:00
spellerutility.h | 2 +-
2013-11-04 19:51:30 +00:00
texstudio.pro | 9 +++++++--
2 files changed, 8 insertions(+), 3 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
2013-11-04 19:51:30 +00:00
--- a/spellerutility.h
+++ b/spellerutility.h
2011-08-13 16:45:40 +00:00
@@ -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
2013-11-04 19:51:30 +00:00
index fedf628..bdc454b 100644
--- a/texstudio.pro
+++ b/texstudio.pro
@@ -433,7 +433,7 @@ unix {
2013-11-02 07:44:06 +00:00
}
2013-11-04 19:51:30 +00:00
DEFINES += HUNSPELL_STATIC
2013-11-02 07:44:06 +00:00
-include(hunspell/hunspell.pri)
+include(hunspell.pri)
include(qcodeedit/qcodeedit.pri)
2013-11-04 19:51:30 +00:00
@@ -624,4 +624,9 @@ else {
2013-06-16 08:51:04 +00:00
QMAKE_LFLAGS -= -Wl,-s
QMAKE_LFLAGS_RELEASE -= -Wl,-s
}
2013-11-04 19:51:30 +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