forked from Lainports/freebsd-ports
-- Could NOT find HUNSPELL (missing: HUNSPELL_LIBRARIES)
HunSpell or its developer libraries NOT found - Disabling support for spell checking
[...]
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: lib/scribus/plugins/libhunspellplugin.so
scribus/plugins/tools/hunspellcheck/hunspelldict.cpp:22:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'
char* dictEncoding = m_hunspell->get_dic_encoding();
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
https://github.com/hunspell/hunspell/commit/971f8a9cf52e
PR: 214837
Approved by: portmgr blanket
11 lines
528 B
C++
11 lines
528 B
C++
--- scribus/plugins/tools/hunspellcheck/hunspelldict.cpp.orig 2012-11-20 22:49:14 UTC
|
|
+++ scribus/plugins/tools/hunspellcheck/hunspelldict.cpp
|
|
@@ -19,7 +19,7 @@ HunspellDict::HunspellDict(const QString
|
|
m_hunspell = new Hunspell(affPath.toLocal8Bit().constData(), dictPath.toLocal8Bit().constData());
|
|
if (m_hunspell)
|
|
{
|
|
- char* dictEncoding = m_hunspell->get_dic_encoding();
|
|
+ const char* dictEncoding = m_hunspell->get_dic_encoding();
|
|
if (dictEncoding)
|
|
encoding = QString::fromLatin1(dictEncoding);
|
|
}
|