pkgsrc/x11/kdelibs3/patches/patch-cc
2004-02-29 12:00:56 +00:00

40 lines
1.7 KiB
Text

$NetBSD: patch-cc,v 1.5 2004/02/29 12:00:57 markd Exp $
--- kdeui/ksconfig.cpp.orig 2003-11-30 22:46:51.000000000 +1300
+++ kdeui/ksconfig.cpp
@@ -432,6 +432,8 @@ void KSpellConfig::getAvailDictsIspell (
// dictionary path
QFileInfo dir ("/usr/lib/ispell");
if (!dir.exists() || !dir.isDir())
+ dir.setFile ("@LOCALBASE@/lib");
+ if (!dir.exists() || !dir.isDir())
dir.setFile ("/usr/local/lib/ispell");
if (!dir.exists() || !dir.isDir())
dir.setFile ("/usr/local/share/ispell");
@@ -495,6 +497,8 @@ void KSpellConfig::getAvailDictsAspell (
// FIXME: use "aspell dump config" to find out the dict-dir
QFileInfo dir ("/usr/lib/aspell");
if (!dir.exists() || !dir.isDir())
+ dir.setFile ("@LOCALBASE@/lib");
+ if (!dir.exists() || !dir.isDir())
dir.setFile ("/usr/local/lib/aspell");
if (!dir.exists() || !dir.isDir())
dir.setFile ("/usr/share/aspell");
@@ -559,6 +563,8 @@ KSpellConfig::fillDicts( QComboBox* box,
// dictionary path
QFileInfo dir ("/usr/lib/ispell");
if (!dir.exists() || !dir.isDir())
+ dir.setFile ("@LOCALBASE@/lib");
+ if (!dir.exists() || !dir.isDir())
dir.setFile ("/usr/local/lib/ispell");
if (!dir.exists() || !dir.isDir())
dir.setFile ("/usr/local/share/ispell");
@@ -623,6 +629,8 @@ KSpellConfig::fillDicts( QComboBox* box,
// FIXME: use "aspell dump config" to find out the dict-dir
QFileInfo dir ("/usr/lib/aspell");
if (!dir.exists() || !dir.isDir())
+ dir.setFile ("@LOCALBASE@/lib");
+ if (!dir.exists() || !dir.isDir())
dir.setFile ("/usr/local/lib/aspell");
if (!dir.exists() || !dir.isDir())
dir.setFile ("/usr/share/aspell");