87 lines
2.3 KiB
Diff
87 lines
2.3 KiB
Diff
From 30c73dbd1c85c86b23db63ebd8adf41e14286c23 Mon Sep 17 00:00:00 2001
|
|
From: hannes <hannes@fedoraproject.org>
|
|
Date: Sun, 16 Jun 2013 09:53:46 +0200
|
|
Subject: [PATCH 1/2] patch_hunspell
|
|
|
|
---
|
|
spellerutility.h | 2 +-
|
|
texstudio.pro | 38 ++++++--------------------------------
|
|
2 files changed, 7 insertions(+), 33 deletions(-)
|
|
|
|
diff --git spellerutility.h spellerutility.h
|
|
index 7e1b980..c973220 100644
|
|
--- spellerutility.h
|
|
+++ spellerutility.h
|
|
@@ -13,7 +13,7 @@
|
|
|
|
#include "mostQtHeaders.h"
|
|
|
|
-#include "hunspell/hunspell.hxx"
|
|
+#include "hunspell.hxx"
|
|
class SpellerUtility: public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
diff --git texstudio.pro texstudio.pro
|
|
index b073255..d72f7ea 100644
|
|
--- texstudio.pro
|
|
+++ texstudio.pro
|
|
@@ -53,25 +53,6 @@ HEADERS += texmaker.h \
|
|
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 \
|
|
- hunspell/replist.hxx \
|
|
qcodeedit/lib/qeditorinputbinding.h \
|
|
qcodeedit/lib/qeditorinputbindinginterface.h \
|
|
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 \
|
|
qcodeedit/lib/qformat.cpp \
|
|
@@ -676,4 +645,9 @@ else {
|
|
QMAKE_LFLAGS -= -Wl,-s
|
|
QMAKE_LFLAGS_RELEASE -= -Wl,-s
|
|
}
|
|
-
|
|
+# enable use of pkgconfig
|
|
|
|
+unix {
|
|
|
|
+ CONFIG += link_pkgconfig
|
|
|
|
+ # use system hunspell
|
|
|
|
+ PKGCONFIG += hunspell
|
|
|
|
+}
|
|
--
|
|
1.8.2.1
|
|
|