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

87 lines
2.3 KiB
Diff
Raw Normal View History

2013-06-16 08:51:04 +00:00
From 30c73dbd1c85c86b23db63ebd8adf41e14286c23 Mon Sep 17 00:00:00 2001
From: hannes <hannes@fedoraproject.org>
2013-06-16 08:51:04 +00:00
Date: Sun, 16 Jun 2013 09:53:46 +0200
Subject: [PATCH 1/2] patch_hunspell
2011-08-13 16:45:40 +00:00
---
2012-09-09 09:26:25 +00:00
spellerutility.h | 2 +-
texstudio.pro | 38 ++++++--------------------------------
2 files changed, 7 insertions(+), 33 deletions(-)
2011-08-13 16:45:40 +00:00
2013-06-16 08:51:04 +00:00
diff --git spellerutility.h spellerutility.h
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:
2012-09-09 09:26:25 +00:00
diff --git texstudio.pro texstudio.pro
2013-06-16 08:51:04 +00:00
index b073255..d72f7ea 100644
2011-08-13 16:45:40 +00:00
--- texstudio.pro
+++ texstudio.pro
2013-06-16 08:51:04 +00:00
@@ -53,25 +53,6 @@ HEADERS += texmaker.h \
2012-09-09 09:26:25 +00:00
debughelper.h \
thesaurusdialog.h \
xmltagslistwidget.h \
- hunspell/affentry.hxx \
- hunspell/affixmgr.hxx \
- hunspell/atypes.hxx \
- hunspell/baseaffix.hxx \
- hunspell/csutil.hxx \
- hunspell/dictmgr.hxx \
- hunspell/hashmgr.hxx \
- hunspell/htypes.hxx \
- hunspell/hunspell.hxx \
- hunspell/hunspell.h \
- hunspell/langnum.hxx \
- hunspell/license.hunspell \
- hunspell/phonet.hxx \
- hunspell/suggestmgr.hxx \
- hunspell/license.myspell \
- hunspell/filemgr.hxx \
- hunspell/hunzip.hxx \
- hunspell/w_char.hxx \
2013-06-16 08:51:04 +00:00
- hunspell/replist.hxx \
qcodeedit/lib/qeditorinputbinding.h \
qcodeedit/lib/qeditorinputbindinginterface.h \
2013-06-16 08:51:04 +00:00
qcodeedit/lib/qformat.h \
@@ -171,18 +152,6 @@ SOURCES += main.cpp \
codesnippet.cpp \
thesaurusdialog.cpp \
xmltagslistwidget.cpp \
- hunspell/affentry.cxx \
- hunspell/affixmgr.cxx \
- hunspell/csutil.cxx \
- hunspell/dictmgr.cxx \
- hunspell/hashmgr.cxx \
- hunspell/hunspell.cxx \
- hunspell/phonet.cxx \
- hunspell/replist.cxx \
- hunspell/suggestmgr.cxx \
- hunspell/utf_info.cxx \
- hunspell/filemgr.cxx \
- hunspell/hunzip.cxx \
encodingdialog.cpp \
qcodeedit/lib/qeditorinputbinding.cpp \
2013-06-16 08:51:04 +00:00
qcodeedit/lib/qformat.cpp \
@@ -676,4 +645,9 @@ else {
QMAKE_LFLAGS -= -Wl,-s
QMAKE_LFLAGS_RELEASE -= -Wl,-s
}
-
2013-06-16 08:51:04 +00:00
+# enable use of pkgconfig
+unix {
+ CONFIG += link_pkgconfig
+ # use system hunspell
+ PKGCONFIG += hunspell
+}
2011-08-13 16:45:40 +00:00
--
2013-06-16 08:51:04 +00:00
1.8.2.1
2011-08-13 16:45:40 +00:00