[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs
From:       Hasso Tepper <hasso () kde ! org>
Date:       2007-08-21 13:56:11
Message-ID: 1187704571.940852.12494.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 702908 by hasso:

Make spellchecking (both ispell and aspell) work on systems using pkgsrc
like NetBSD and DragonFly.


 M  +8 -0      kdeui/ksconfig.cpp  
 M  +1 -0      kspell2/plugins/ispell/ispell_checker.cpp  


--- branches/KDE/3.5/kdelibs/kdeui/ksconfig.cpp #702907:702908
@@ -447,6 +447,8 @@
     dir.setFile ("/usr/local/share/ispell");
   if (!dir.exists() || !dir.isDir())
     dir.setFile ("/usr/share/ispell");
+  if (!dir.exists() || !dir.isDir())
+    dir.setFile ("/usr/pkg/lib");
   /* TODO get them all instead of just one of them.
    * If /usr/local/lib exists, it skips the rest
   if (!dir.exists() || !dir.isDir())
@@ -516,6 +518,8 @@
     dir.setFile ("/usr/share/aspell");
   if (!dir.exists() || !dir.isDir())
     dir.setFile ("/usr/local/share/aspell");
+  if (!dir.exists() || !dir.isDir())
+    dir.setFile ("/usr/pkg/lib/aspell");
   if (!dir.exists() || !dir.isDir()) return;
 
   kdDebug(750) << "KSpellConfig::getAvailDictsAspell "
@@ -597,6 +601,8 @@
         dir.setFile ("/usr/local/share/ispell");
       if (!dir.exists() || !dir.isDir())
         dir.setFile ("/usr/share/ispell");
+      if (!dir.exists() || !dir.isDir())
+        dir.setFile ("/usr/pkg/lib");
       /* TODO get them all instead of just one of them.
        * If /usr/local/lib exists, it skips the rest
        if (!dir.exists() || !dir.isDir())
@@ -672,6 +678,8 @@
         dir.setFile ("/usr/share/aspell");
       if (!dir.exists() || !dir.isDir())
         dir.setFile ("/usr/local/share/aspell");
+      if (!dir.exists() || !dir.isDir())
+        dir.setFile ("/usr/pkg/lib/aspell");
       if (!dir.exists() || !dir.isDir()) return;
 
       kdDebug(750) << "KSpellConfig::getAvailDictsAspell "
--- branches/KDE/3.5/kdelibs/kspell2/plugins/ispell/ispell_checker.cpp #702907:702908
@@ -57,6 +57,7 @@
 	"/usr/local/lib/ispell",
 	"/usr/local/share/ispell",
 	"/usr/share/ispell",
+	"/usr/pkg/lib",
 	0
 };
 static const IspellMap ispell_map [] = {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic