Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (da5034d10bb5bbc80c07ba905add78d6defc0ed2)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (da5034d10bb5bbc80c07ba905add78d6defc0ed2)
  • Date: Wed, 28 May 2008 07:04:05 -0500

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

editors/translator/BUILD | 2 +-
editors/translator/DEPENDS | 2 +-
editors/translator/HISTORY | 4 ++++
editors/translator/PRE_BUILD | 1 +
editors/translator/enchant.patch | 37 +++++++++++++++++++++++++++++++++++++
5 files changed, 44 insertions(+), 2 deletions(-)

New commits:
commit da5034d10bb5bbc80c07ba905add78d6defc0ed2
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

translator: added enchant patch

diff --git a/editors/translator/BUILD b/editors/translator/BUILD
index 8f58e6d..758cae2 100755
--- a/editors/translator/BUILD
+++ b/editors/translator/BUILD
@@ -1 +1 @@
-make
+./check.sh && make
diff --git a/editors/translator/DEPENDS b/editors/translator/DEPENDS
index 0efb92a..51344d7 100755
--- a/editors/translator/DEPENDS
+++ b/editors/translator/DEPENDS
@@ -1,4 +1,4 @@
depends g++ &&
depends gtkmm2 &&
depends gtkspell &&
-depends pkgconfig
+depends pkgconfig
diff --git a/editors/translator/HISTORY b/editors/translator/HISTORY
index da5e1ad..50ab5ac 100644
--- a/editors/translator/HISTORY
+++ b/editors/translator/HISTORY
@@ -1,3 +1,7 @@
+2008-05-28 Vlad Glagolev <stealth AT sourcemage.org>
+ * PRE_BUILD: added enchant patch
+ * BUILD: added check.sh script running
+
2008-04-14 Vlad Glagolev <stealth AT sourcemage.org>
* PRE_BUILD: added gcc 4.3 patch

diff --git a/editors/translator/PRE_BUILD b/editors/translator/PRE_BUILD
index 8c9201b..edb849d 100755
--- a/editors/translator/PRE_BUILD
+++ b/editors/translator/PRE_BUILD
@@ -1,4 +1,5 @@
default_pre_build &&
cd $SOURCE_DIRECTORY &&

+patch -p0 < $SPELL_DIRECTORY/enchant.patch &&
patch -p0 < $SPELL_DIRECTORY/gcc43.patch
diff --git a/editors/translator/enchant.patch
b/editors/translator/enchant.patch
new file mode 100644
index 0000000..930f456
--- /dev/null
+++ b/editors/translator/enchant.patch
@@ -0,0 +1,37 @@
+--- Utils.cc.orig 2007-09-25 05:07:26.000000000 +0400
++++ Utils.cc 2008-05-28 15:56:41.253768162 +0400
+@@ -1,18 +1,19 @@
+ #include "Utils.h"
+-#include <aspell.h>
++#include <enchant/enchant.h>
+ #include <vector>
+
++std::vector<Glib::ustring> list;
++
++void enchDictDescCb(const char *const lang_tag, const char *const
provider_name, const char *const provider_desc, const char *const
provider_file, void *user_data) {
++ list.push_back(lang_tag);
++}
++
+ std::vector<Glib::ustring> getDictionaryList() {
+- std::vector<Glib::ustring> list;
++ EnchantBroker *eb;
+
+- struct AspellConfig *a_config = new_aspell_config();
+-
+- AspellDictInfoList *dlist = get_aspell_dict_info_list(a_config);
+- AspellDictInfoEnumeration *dels =
aspell_dict_info_list_elements(dlist);
+- const AspellDictInfo *entry;
+- while ( (entry = aspell_dict_info_enumeration_next(dels)) != 0) {
+- list.push_back(entry->name);
+- }
++ eb = enchant_broker_init();
++ enchant_broker_list_dicts(eb, enchDictDescCb, &list);
++ enchant_broker_free(eb);
+
+ return list;
+ }
+@@ -44,4 +45,3 @@
+ if (u_str1.find(u_str2)!=Glib::ustring::npos) return true;
+ return false;
+ }
+-



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (da5034d10bb5bbc80c07ba905add78d6defc0ed2), Vlad Glagolev, 05/28/2008

Archive powered by MHonArc 2.6.24.

Top of Page