summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-04-28 10:52:15 +0000
committerPeter Volkov <pva@gentoo.org>2008-04-28 10:52:15 +0000
commit866319a19a093700cc6000499e652077641367ba (patch)
tree1bb3028382fcffc90cdff1aa6260fd33d9f6c1d3 /app-dicts
parentAdded pronounce and qqwry local USE flags for app-dicts/stardict. (diff)
downloadhistorical-866319a19a093700cc6000499e652077641367ba.tar.gz
historical-866319a19a093700cc6000499e652077641367ba.tar.bz2
historical-866319a19a093700cc6000499e652077641367ba.zip
Added qqwry USE flag to install QQWry.Dat to make QQWry plugin workable; added pronounce USE flag to install WyabdcRealPeopleTTS wav files; small cleanups, bug #217895, thank Denilson for the ideas/work. Fixed compilation with gcc-4.3, bug #216238, thank Martin Väth for report/fix. Added patch to fix transparency of tray icon (from upstream). Added patch to fix minor typos in ChangeLog (from debian). Removed unused patches/ebuilds.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'app-dicts')
-rw-r--r--app-dicts/stardict/ChangeLog19
-rw-r--r--app-dicts/stardict/Manifest14
-rw-r--r--app-dicts/stardict/files/stardict-3.0.1-changelog-minor-typo-fixes.patch63
-rw-r--r--app-dicts/stardict/files/stardict-3.0.1-gcc43.patch406
-rw-r--r--app-dicts/stardict/files/stardict-3.0.1-transparent_trayicon.patch168
-rw-r--r--app-dicts/stardict/files/stardict-gentoo.patch21
-rw-r--r--app-dicts/stardict/files/stardict-gtk24.patch35
-rw-r--r--app-dicts/stardict/stardict-2.4.2.ebuild58
-rw-r--r--app-dicts/stardict/stardict-2.4.6-r1.ebuild61
-rw-r--r--app-dicts/stardict/stardict-3.0.1-r1.ebuild103
10 files changed, 765 insertions, 183 deletions
diff --git a/app-dicts/stardict/ChangeLog b/app-dicts/stardict/ChangeLog
index 1c8f98fa221d..87eb0abc3d30 100644
--- a/app-dicts/stardict/ChangeLog
+++ b/app-dicts/stardict/ChangeLog
@@ -1,6 +1,23 @@
# ChangeLog for app-dicts/stardict
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-dicts/stardict/ChangeLog,v 1.42 2008/04/14 16:02:15 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-dicts/stardict/ChangeLog,v 1.43 2008/04/28 10:52:15 pva Exp $
+
+*stardict-3.0.1-r1 (28 Apr 2008)
+
+ 28 Apr 2008; Peter Volkov <pva@gentoo.org>
+ +files/stardict-3.0.1-changelog-minor-typo-fixes.patch,
+ +files/stardict-3.0.1-gcc43.patch,
+ +files/stardict-3.0.1-transparent_trayicon.patch,
+ -files/stardict-gentoo.patch, -files/stardict-gtk24.patch,
+ -stardict-2.4.2.ebuild, -stardict-2.4.6-r1.ebuild,
+ +stardict-3.0.1-r1.ebuild:
+ Added qqwry USE flag to install QQWry.Dat to make QQWry plugin workable;
+ added pronounce USE flag to install WyabdcRealPeopleTTS wav files; small
+ cleanups, bug #217895, thank Denilson for the ideas/work. Fixed
+ compilation with gcc-4.3, bug #216238, thank Martin Väth for report/fix.
+ Added patch to fix transparency of tray icon (from upstream). Added patch
+ to fix minor typos in ChangeLog (from debian). Removed unused
+ patches/ebuilds.
14 Apr 2008; Raúl Porcel <armin76@gentoo.org> stardict-3.0.1.ebuild:
sparc stable wrt #216707
diff --git a/app-dicts/stardict/Manifest b/app-dicts/stardict/Manifest
index ae68e66b5901..fd8cff9b20c4 100644
--- a/app-dicts/stardict/Manifest
+++ b/app-dicts/stardict/Manifest
@@ -1,16 +1,16 @@
AUX stardict-2.4.8-ClipboardReceivedCallback.patch 669 RMD160 051e058f3c5cb174ecb461d4ae67115eca26c5e7 SHA1 d65226bef41e19b85114869a434c635b4cdee515 SHA256 c38927160ed618728db391033397801ffd1850c0aeaa98caa4cf4441a668d459
AUX stardict-2.4.8-floatwin-disappear.patch 591 RMD160 334bc9fce6f765c17ac38c0bbf95ed2b1ba86803 SHA1 ad7ff07266de13c958bcdad08538a2327d1fc255 SHA256 a9b6d4269bc546004fa0535b5562b733de6f502483deb9346f1a40fe4a3026f6
+AUX stardict-3.0.1-changelog-minor-typo-fixes.patch 3415 RMD160 b6938e9a0f1272863187770bf5a893d239eb0c9a SHA1 117bcf2eb2478a932b9b0535cb06012a04e50293 SHA256 36543e608207de14eafd8b943afd855fe718856ede1c3c13a8e0a0808c6ef0b0
AUX stardict-3.0.1-configure.in-EST.diff 459 RMD160 d8d3de801eedbab337fab87d7cb1e60be2517805 SHA1 85f56191176cd16fa2c13e951ce05f7bfb708c33 SHA256 cad6dcbb615b90d4e14e7578f53efcf8c78c3f36d7ba20a66dedef3a260510c5
+AUX stardict-3.0.1-gcc43.patch 12626 RMD160 068e8af4430d0c137fe41664fcae12053aec5ef3 SHA1 cd15116ac9a74ed4847fe0149a5093e6e36fef7b SHA256 49a7db8765b3add63c7774237903b7bcc5c6df8e713d00ee14a067877a695bf3
AUX stardict-3.0.1-gconf-m4.diff 1720 RMD160 e4fea58f8730207a2de6d64f33c563f2fb758011 SHA1 a1fff45ee0ee30fa27ac9e512c9a9b7539117d9b SHA256 dac7841720aa693fc65150beff507120346b1a6b1040a33baf26cb7485cf5939
-AUX stardict-gentoo.patch 547 RMD160 2098f21b51f1c27f37a772c49b8696a5bcb1a291 SHA1 0c8cfe57f6b9b5c87c4f472b88317c59a1c3df18 SHA256 0f9e70dd4979d64f816610dfdef84879bca3e67f6b66659b627caea1f702def3
-AUX stardict-gtk24.patch 1210 RMD160 8d6d4fe16305ef22fb2e7e7251efa74794434a69 SHA1 1b795e419247163c3d342e5a5da813a11e1b21ba SHA256 bd392354067da7800adedb20708ccc82f68c56a1107a90838726d1ae6c9fc0af
-DIST stardict-2.4.2.tar.bz2 702901 RMD160 0e86a66eb9ea290aaada87bf44d0919aecd02ee0 SHA1 50d49dafec6f66a3d75ec89363596baeaf61b5b3 SHA256 84854f328496420ce7a0f901a275503759f92c674a4bc2aa6ae74aa19b4a5882
-DIST stardict-2.4.6.tar.bz2 1088338 RMD160 e929363686ec3ce0fa728f50c3405938db957280 SHA1 92b5bef53f2f69a05c06eb4462995209b0400895 SHA256 994e6311379a268aa60df0c45cc762d6000d3594db172b4d1c4728b3dca0f816
+AUX stardict-3.0.1-transparent_trayicon.patch 5712 RMD160 3ff5b688c264258d980c9168fff151d75164de65 SHA1 891f23e7be8e0b277f32414fa786874eed965344 SHA256 9171ae1aeb154d1159fe7fd2dee1ab30accd834fcdaa56f62bb66dac4fcbd741
+DIST QQWry.Dat.bz2 4114875 RMD160 646916f7ac234a95526f9e43cfca674c2b4b7bd1 SHA1 de7ff7208da0f889ec08911119948780d7ee4738 SHA256 3eda90ee8ea13ec88767336b078d2dfe2c971d6a31df60f409d526e3e29a4f83
+DIST WyabdcRealPeopleTTS.tar.bz2 84329208 RMD160 9c9bd37cf85aaed8d5b090b2014c3122e98ba8e4 SHA1 056609ec9743bda105ff6db956b321436ae50b90 SHA256 96a398eaef3e84f6f23e61683e6439913a4d44055e695dd4a1936f9340d64870
DIST stardict-2.4.8.tar.bz2 1235020 RMD160 ba4655dae9004fae97ccab7a345b70f7b0481087 SHA1 cbb312281f7a01290de4c2a213635deee8bc8a92 SHA256 160dd1dfe46ae0b9d44f9059a40eee71ff389be498aa4478355ff4640969680f
DIST stardict-3.0.1.tar.bz2 1964195 RMD160 296d73bd9acdbb53c21a4fb17e608a25f01b76de SHA1 a0357e88105eaf7d6a4aa4803bf8617759bf0315 SHA256 504b3a7748933b9bd998cb85f37d4fa0a8575306643ffe6a9742450e66cd556f
-EBUILD stardict-2.4.2.ebuild 1768 RMD160 837f066e45852b5d4532cf1728503c0db0a1f209 SHA1 419a3325be6e7319c2cf1619594494597afc9ac4 SHA256 c6ef044f9b26728db59e53d9aacaced64734f00ec88dbfe9529729dbfd5371a0
-EBUILD stardict-2.4.6-r1.ebuild 1838 RMD160 f6bc9d843959d052c55752907cb4345704b4df4d SHA1 311151b71d38c526ff3b3d678d203d60c267e24f SHA256 8d98471e65175d0b934c5f4b44cec6eb89a1e72bc1c07c0de63b65f2996c2a5f
EBUILD stardict-2.4.8-r1.ebuild 2005 RMD160 aac8e0f36a84cb4efffa908166987d752cacc5aa SHA1 e78ac2420fb287cfc10521ff6b5138b38a446469 SHA256 0d555aea403c52118fc894873f985d5be08284eb1f6c8c8ee790ee6adc5d3048
+EBUILD stardict-3.0.1-r1.ebuild 3137 RMD160 b3f56259133354bfe2d4e99df2c38599ac2cf3a4 SHA1 614427d3815a6ebd2d81e840d80a71396d93610a SHA256 1330b03832a0e735ccb0df177e0b58ff416ef106c742e6cfed5ab343f12d3ffe
EBUILD stardict-3.0.1.ebuild 2237 RMD160 49e7913eff69c0dcdc4651b4162cb1f35e000ec9 SHA1 5a28c09ca81d92e295fd30619f7764c97faaca34 SHA256 f4fccc7d1773352b8f5be6cb9fc0c2f6da183f5abd3f4db12dbf259b3b28ad66
-MISC ChangeLog 6662 RMD160 f3ae9738523570a9f6cc77fce521bafa399936b0 SHA1 3b08a3a608bf8e78870d8716134eae8b31cbc1ce SHA256 62d6424f54d9f5d22f6a1fb2f8cd7d9b3960536c94e029639340985697efbe76
+MISC ChangeLog 7479 RMD160 c1b140690d9d3b07970582e6e0915f7b1cd0c4f6 SHA1 d030228c705e2e9435fc4d2df364da4ffcf0f23c SHA256 06bfc17e97c276a44455c0e30023cdb91d30f59cb9fbf8ff9e60d53c5a70550f
MISC metadata.xml 246 RMD160 847d6318340c97dfec7e2319040ef00aa46b15eb SHA1 da1ad8fbc01a83d78ce30ee358972d6805b4c559 SHA256 726bff7a01be74d06c9da2e7d223327e1246bf186f98c494465ac974f88e239e
diff --git a/app-dicts/stardict/files/stardict-3.0.1-changelog-minor-typo-fixes.patch b/app-dicts/stardict/files/stardict-3.0.1-changelog-minor-typo-fixes.patch
new file mode 100644
index 000000000000..bd7248a36c48
--- /dev/null
+++ b/app-dicts/stardict/files/stardict-3.0.1-changelog-minor-typo-fixes.patch
@@ -0,0 +1,63 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04_changelog-minor-typo-fixes.dpatch by Anthony Fok <foka@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Minor typo fixes to upstream ChangeLog.
+
+@DPATCH@
+
+--- stardict-3.0.1.orig/ChangeLog
++++ stardict-3.0.1/ChangeLog
+@@ -12,7 +12,7 @@
+
+ 2007.8.13
+ StarDict-3.0.0 (RedHat) released.
+-http://www.StarDict.org on-line dictionries website is out in 2006.9.25. We have developed the stardictd dictionary server for it.
++http://www.StarDict.org on-line dictionaries website is out in 2006.9.25. We have developed the stardictd dictionary server for it.
+ StarDict's total download count reached two millions in 2007.3.8.
+ Network dictionaries support.
+ Plugin system.
+@@ -38,14 +38,14 @@
+ KingSoft PowerWord support. This added 158 dictionaries. The data is cracked by Dwing(http://free5.ys168.com/?dwing).
+ Synonym support.
+ Sort word list by collate function support.
+-XDXF project(http://xdxf.sourceforge.net) has port its dictionaries to StarDict format, some dictionries are come from Sdictionary. This added 615 dictionries.
++XDXF project (http://xdxf.sourceforge.net) has port its dictionaries to StarDict format, some dictionaries are come from Sdictionary. This added 615 dictionaries.
+ French translation, thanks Christophe Durville <cdurpp@ifrance.com>.
+ Brazilian Portuguese translation, thanks Ernesto <ernesto_mor@yahoo.com.ar>.
+ Add cfdict dictionary, thanks Gilles Vigner <xiaogil@yahoo.fr>.
+ Add English-Thai Lexitron Dictionary and Thai-English Lexitron Dictionary, thanks Suphanut Thanyaboon <suphanut@tcllab.org>.
+ Add many Japanese dictionaries.
+ Add some Chinese dictionaries, data comes from KDic.
+-Add two Germany dictionries: ldaf, xindehan.
++Add two Germany dictionaries: ldaf, xindehan.
+ Add duden Germany dictionary, thanks Liu Guizhu <zhuzi813@gmail.com> for providing data file.
+ Add fundset dictionary, thanks Lin Fanshun <fundset@hotmail.com> for providing data file.
+ Add DrEye4in1 dictionary, thanks Lilian <fairyland@gmail.com> for providing data file.
+@@ -54,7 +54,7 @@
+
+ 2006.4.18
+ StarDict-2.4.7 (complete) released.
+-Port to GPE(http://gpe.handhelds.org).
++Port to GPE (http://gpe.handhelds.org).
+ Full-text search.
+ Acrobat plug-in in Win32, thanks Dewolf Xue <dewolf_matri_x@msn.com>.
+ Evgeniy's patches for special character search and other changes.
+@@ -94,14 +94,14 @@
+
+ 2005.7.20
+ StarDict-2.4.5 (final) released.
+-Source code optimize and many changes, thanks Evgeney <dushistov@mail.ru>.
++Source code optimize and many changes, thanks Evgeniy <dushistov@mail.ru>.
+ Dutch translation and help document translation, thanks Ruud Slaats <ruudslaats@eurotechgroup.nl>.
+
+ 2004.11.28
+ StarDict-2.4.4 (fine) released.
+-sdcv-0.1(StarDict command line version) is out, developed by Evgeney <dushistov@mail.ru>.
++sdcv-0.1(StarDict command line version) is out, developed by Evgeniy <dushistov@mail.ru>.
+ Try to create .idx.oft file to speed up the interpretation of the .idx file. This feature is especially useful to sdcv.
+-Mueller7 optimized, thanks Evgeney.
++Mueller7 optimized, thanks Evgeniy.
+ quick_eng-gre, quick_gre-eng dictionary encoding fix, thanks Christophe Combelles <ccomb@free.fr> for bug reporting.
+ Add Hanzi Master dictionary, thanks Michael Robinson <robinson@netrinsics.com>.
+ zh_TW help document translation and a small bug fix, thanks Roy Chan <roy.chan@debian.org.hk>.
diff --git a/app-dicts/stardict/files/stardict-3.0.1-gcc43.patch b/app-dicts/stardict/files/stardict-3.0.1-gcc43.patch
new file mode 100644
index 000000000000..f90642b3fdb5
--- /dev/null
+++ b/app-dicts/stardict/files/stardict-3.0.1-gcc43.patch
@@ -0,0 +1,406 @@
+=== modified file 'src/config_file.hpp'
+--- src/config_file.hpp 2008-04-26 21:05:23 +0000
++++ src/config_file.hpp 2008-04-26 21:05:29 +0000
+@@ -5,7 +5,7 @@
+ #include <list>
+ #include <string>
+
+-#include "sigc++/sigc++.h"
++#include <sigc++/sigc++.h>
+
+ class config_file;
+
+
+=== modified file 'src/gconf_file.cpp'
+--- src/gconf_file.cpp 2008-04-26 21:05:23 +0000
++++ src/gconf_file.cpp 2008-04-26 21:05:29 +0000
+@@ -22,6 +22,7 @@
+ # include "config.h"
+ #endif
+
++#include <memory>
+ #include <glib/gi18n.h>
+
+ #include "gconf_file.hpp"
+
+=== modified file 'src/inifile.cpp'
+--- src/inifile.cpp 2008-04-26 21:05:23 +0000
++++ src/inifile.cpp 2008-04-26 21:05:29 +0000
+@@ -28,6 +28,7 @@
+ #include <cstdio>
+ #include <glib/gi18n.h>
+ #include <glib/gstdio.h>
++#include <stdlib.h>
+
+ #include "utils.h"
+
+
+=== modified file 'src/lib/common.cpp'
+--- src/lib/common.cpp 2008-04-26 21:05:23 +0000
++++ src/lib/common.cpp 2008-04-26 21:05:29 +0000
+@@ -24,6 +24,8 @@
+ # include "config.h"
+ #endif
+
++#include <cstring>
++#include <stdlib.h>
+ #include "common.hpp"
+
+ static void parse_description(const char *p, long len, std::string &description)
+
+=== modified file 'src/lib/data.cpp'
+--- src/lib/data.cpp 2008-04-26 21:05:23 +0000
++++ src/lib/data.cpp 2008-04-26 21:05:29 +0000
+@@ -26,6 +26,7 @@
+
+ #include "data.hpp"
+ #include "getuint32.h"
++#include <cstring>
+
+
+ DictBase::DictBase()
+
+=== modified file 'src/lib/http_client.cpp'
+--- src/lib/http_client.cpp 2008-04-26 21:05:23 +0000
++++ src/lib/http_client.cpp 2008-04-26 21:05:29 +0000
+@@ -4,6 +4,7 @@
+
+ #include "http_client.h"
+ #include "sockets.hpp"
++#include <cstring>
+
+ sigc::signal<void, HttpClient *, const char *> HttpClient::on_error_;
+ sigc::signal<void, HttpClient *> HttpClient::on_response_;
+
+=== modified file 'src/lib/pluginmanager.cpp'
+--- src/lib/pluginmanager.cpp 2008-04-26 21:05:23 +0000
++++ src/lib/pluginmanager.cpp 2008-04-26 21:05:29 +0000
+@@ -1,6 +1,7 @@
+ #include "pluginmanager.h"
+ #include "file.hpp"
+ #include <string>
++#include <cstring>
+
+ StarDictPluginBaseObject::StarDictPluginBaseObject(const char *filename, GModule *module_, plugin_configure_func_t configure_func_):
+ plugin_filename(filename), module(module_), configure_func(configure_func_)
+
+=== modified file 'src/lib/stardict_client.cpp'
+--- src/lib/stardict_client.cpp 2008-04-26 21:05:23 +0000
++++ src/lib/stardict_client.cpp 2008-04-26 21:05:29 +0000
+@@ -25,6 +25,8 @@
+ #include <glib.h>
+ #include <glib/gi18n.h>
+
++#include <cstring>
++#include <stdlib.h>
+ #include "sockets.hpp"
+ #include "md5.h"
+ #include "getuint32.h"
+
+=== modified file 'src/lib/stddict.cpp'
+--- src/lib/stddict.cpp 2008-04-26 21:05:23 +0000
++++ src/lib/stddict.cpp 2008-04-26 21:05:29 +0000
+@@ -28,6 +28,7 @@
+ # include "config.h"
+ #endif
+
++#include <cstring>
+ #include <glib/gi18n.h>
+ #include <glib/gstdio.h>
+
+
+=== modified file 'src/lib/treedict.cpp'
+--- src/lib/treedict.cpp 2008-04-26 21:05:23 +0000
++++ src/lib/treedict.cpp 2008-04-26 21:05:29 +0000
+@@ -25,6 +25,7 @@
+ # include "config.h"
+ #endif
+
++#include <cstring>
+ #include "file.hpp"
+ #include "getuint32.h"
+
+
+=== modified file 'src/pangoview.cpp'
+--- src/pangoview.cpp 2008-04-26 21:05:23 +0000
++++ src/pangoview.cpp 2008-04-26 21:05:29 +0000
+@@ -22,6 +22,7 @@
+ # include "config.h"
+ #endif
+
++#include <cstring>
+ #include "gtktextviewpango.h"
+ #include "utils.h"
+ #include "skin.h"//for SkinCursor definition
+
+=== modified file 'src/prefsdlg.cpp'
+--- src/prefsdlg.cpp 2008-04-26 21:05:23 +0000
++++ src/prefsdlg.cpp 2008-04-26 21:07:58 +0000
+@@ -34,6 +34,7 @@
+ #include "utils.h"
+ #include "iskeyspressed.hpp"
+ #include "lib/md5.h"
++#include <cstdlib>
+
+ #include "prefsdlg.h"
+
+
+=== modified file 'src/readword.cpp'
+--- src/readword.cpp 2008-04-26 21:05:23 +0000
++++ src/readword.cpp 2008-04-26 21:08:42 +0000
+@@ -4,6 +4,7 @@
+
+ #include <cstring>
+ #include <string>
++#include <cstdlib>
+
+ #include <glib/gi18n.h>
+
+
+=== modified file 'src/sigc++/signal.h'
+--- src/sigc++/signal.h 2008-04-26 21:05:23 +0000
++++ src/sigc++/signal.h 2008-04-26 21:06:11 +0000
+@@ -18,7 +18,7 @@
+ //Compilers, such as older versions of SUN Forte C++, that do not allow this also often
+ //do not allow a typedef to have the same name as a class in the typedef's definition.
+ //For Sun Forte CC 5.7 (SUN Workshop 10), comment this out to fix the build.
+- #define SIGC_TYPEDEF_REDEFINE_ALLOWED 1
++ //#define SIGC_TYPEDEF_REDEFINE_ALLOWED 1
+ #endif
+
+ namespace sigc {
+
+=== modified file 'src/utils.cpp'
+--- src/utils.cpp 2008-04-26 21:05:23 +0000
++++ src/utils.cpp 2008-04-26 21:05:29 +0000
+@@ -22,6 +22,7 @@
+ # include "config.h"
+ #endif
+
++#include <cstring>
+ #include <glib.h>
+ #include <glib/gi18n.h>
+ #include <cstdlib>
+
+=== modified file 'src/x11_iskeyspressed.hpp'
+--- src/x11_iskeyspressed.hpp 2008-04-26 21:05:23 +0000
++++ src/x11_iskeyspressed.hpp 2008-04-26 21:05:29 +0000
+@@ -5,6 +5,8 @@
+ #include <X11/keysym.h>
+ #include <gtk/gtk.h>
+
++#include <memory>
++
+ #include "iskeyspressed.hpp"
+
+ typedef enum { SYM, CODE, BUTTON } KeyType_t;
+
+=== modified file 'stardict-plugins/stardict-advertisement-plugin/advertisement.cpp'
+--- stardict-plugins/stardict-advertisement-plugin/advertisement.cpp 2008-04-26 21:05:23 +0000
++++ stardict-plugins/stardict-advertisement-plugin/advertisement.cpp 2008-04-26 21:05:29 +0000
+@@ -2,6 +2,7 @@
+ #include <glib.h>
+ #include <glib/gi18n.h>
+ #include <glib/gstdio.h>
++#include <cstring>
+ #include <string>
+ #include <map>
+ #include <list>
+
+=== modified file 'stardict-plugins/stardict-dictdotcn-plugin/stardict_dictdotcn.cpp'
+--- stardict-plugins/stardict-dictdotcn-plugin/stardict_dictdotcn.cpp 2008-04-26 21:05:23 +0000
++++ stardict-plugins/stardict-dictdotcn-plugin/stardict_dictdotcn.cpp 2008-04-26 21:05:29 +0000
+@@ -1,5 +1,6 @@
+ #include "stardict_dictdotcn.h"
+ #include <glib/gi18n.h>
++#include <cstring>
+ #include <string>
+ #include <list>
+
+
+=== modified file 'stardict-plugins/stardict-espeak-tts-plugin/stardict_espeak.cpp'
+--- stardict-plugins/stardict-espeak-tts-plugin/stardict_espeak.cpp 2008-04-26 21:05:23 +0000
++++ stardict-plugins/stardict-espeak-tts-plugin/stardict_espeak.cpp 2008-04-26 21:05:29 +0000
+@@ -1,6 +1,7 @@
+ #include "stardict_espeak.h"
+ #include <espeak/speak_lib.h>
+ #include <glib/gi18n.h>
++#include <cstring>
+
+ static const StarDictPluginSystemInfo *plugin_info = NULL;
+ static std::string voice_engine;
+
+=== modified file 'stardict-plugins/stardict-gucharmap-plugin/stardict_gucharmap.cpp'
+--- stardict-plugins/stardict-gucharmap-plugin/stardict_gucharmap.cpp 2008-04-26 21:05:23 +0000
++++ stardict-plugins/stardict-gucharmap-plugin/stardict_gucharmap.cpp 2008-04-26 21:05:29 +0000
+@@ -1,6 +1,8 @@
+ #include "stardict_gucharmap.h"
+ #include <glib/gi18n.h>
+ #include <gucharmap/gucharmap.h>
++#include <stdlib.h>
++#include <cstring>
+ #include <string>
+
+ static char *build_dictdata(char type, const char *definition)
+
+=== modified file 'stardict-plugins/stardict-html-parsedata-plugin/stardict_html_parsedata.cpp'
+--- stardict-plugins/stardict-html-parsedata-plugin/stardict_html_parsedata.cpp 2008-04-26 21:05:23 +0000
++++ stardict-plugins/stardict-html-parsedata-plugin/stardict_html_parsedata.cpp 2008-04-26 21:05:29 +0000
+@@ -1,5 +1,7 @@
+ #include "stardict_html_parsedata.h"
+ #include <glib/gi18n.h>
++#include <cstring>
++#include <stdlib.h>
+
+ #ifdef _WIN32
+ #include <windows.h>
+
+=== modified file 'stardict-plugins/stardict-man-plugin/stardict_man.cpp'
+--- stardict-plugins/stardict-man-plugin/stardict_man.cpp 2008-04-26 21:05:23 +0000
++++ stardict-plugins/stardict-man-plugin/stardict_man.cpp 2008-04-26 21:05:29 +0000
+@@ -1,5 +1,6 @@
+ #include "stardict_man.h"
+ #include <glib/gi18n.h>
++#include <cstring>
+ #include <string>
+
+ static const StarDictPluginSystemInfo *plugin_info = NULL;
+
+=== modified file 'stardict-plugins/stardict-powerword-parsedata-plugin/stardict_powerword_parsedata.cpp'
+--- stardict-plugins/stardict-powerword-parsedata-plugin/stardict_powerword_parsedata.cpp 2008-04-26 21:05:23 +0000
++++ stardict-plugins/stardict-powerword-parsedata-plugin/stardict_powerword_parsedata.cpp 2008-04-26 21:05:29 +0000
+@@ -1,4 +1,5 @@
+ #include "stardict_powerword_parsedata.h"
++#include <cstring>
+ #include <glib/gi18n.h>
+
+ #ifdef _WIN32
+
+=== modified file 'stardict-plugins/stardict-qqwry-plugin/stardict_qqwry.cpp'
+--- stardict-plugins/stardict-qqwry-plugin/stardict_qqwry.cpp 2008-04-26 21:05:23 +0000
++++ stardict-plugins/stardict-qqwry-plugin/stardict_qqwry.cpp 2008-04-26 21:05:29 +0000
+@@ -1,6 +1,8 @@
+ #include "stardict_qqwry.h"
+ #include <glib/gi18n.h>
+ #include <glib/gstdio.h>
++#include <cstring>
++#include <stdlib.h>
+ #include <string>
+
+ #ifdef _WIN32
+
+=== modified file 'stardict-plugins/stardict-spell-plugin/stardict_spell.cpp'
+--- stardict-plugins/stardict-spell-plugin/stardict_spell.cpp 2008-04-26 21:05:23 +0000
++++ stardict-plugins/stardict-spell-plugin/stardict_spell.cpp 2008-04-26 21:05:29 +0000
+@@ -3,6 +3,7 @@
+ #include <glib/gi18n.h>
+ #include <enchant.h>
+ #include <pango/pango.h>
++#include <cstring>
+ #include <string>
+ #include <vector>
+
+
+=== modified file 'stardict-plugins/stardict-update-info-plugin/stardict_update_info.cpp'
+--- stardict-plugins/stardict-update-info-plugin/stardict_update_info.cpp 2008-04-26 21:05:23 +0000
++++ stardict-plugins/stardict-update-info-plugin/stardict_update_info.cpp 2008-04-26 21:05:29 +0000
+@@ -1,5 +1,7 @@
+ #include "stardict_update_info.h"
+ #include <glib/gi18n.h>
++#include <cstring>
++#include <stdlib.h>
+
+ #ifdef _WIN32
+ #include <windows.h>
+
+=== modified file 'stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki2xml.cpp'
+--- stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki2xml.cpp 2008-04-26 21:05:23 +0000
++++ stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki2xml.cpp 2008-04-26 21:05:29 +0000
+@@ -1,5 +1,6 @@
+ #include "stardict_wiki2xml.h"
+ #include "WIKI2XML.h"
++#include <cstring>
+ #include <glib.h>
+
+ std::string wiki2xml(std::string &str)
+
+=== modified file 'stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki_parsedata.cpp'
+--- stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki_parsedata.cpp 2008-04-26 21:05:23 +0000
++++ stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki_parsedata.cpp 2008-04-26 21:05:29 +0000
+@@ -1,5 +1,6 @@
+ #include "stardict_wiki_parsedata.h"
+ #include "stardict_wiki2xml.h"
++#include <cstring>
+ #include <glib/gi18n.h>
+
+ #ifdef _WIN32
+
+=== modified file 'stardict-plugins/stardict-wordnet-plugin/court_widget.cpp'
+--- stardict-plugins/stardict-wordnet-plugin/court_widget.cpp 2008-04-26 21:05:23 +0000
++++ stardict-plugins/stardict-wordnet-plugin/court_widget.cpp 2008-04-26 21:05:29 +0000
+@@ -1,6 +1,7 @@
+ #include "court_widget.h"
+ #include <math.h>
+ #include <list>
++#include <cstring>
+
+
+ wnobj::wnobj(partic_t & p, unsigned int t) : _p(p), _t(t), highlight(false)
+
+=== modified file 'stardict-plugins/stardict-wordnet-plugin/stardict_wordnet.cpp'
+--- stardict-plugins/stardict-wordnet-plugin/stardict_wordnet.cpp 2008-04-26 21:05:23 +0000
++++ stardict-plugins/stardict-wordnet-plugin/stardict_wordnet.cpp 2008-04-26 21:05:29 +0000
+@@ -1,6 +1,7 @@
+ #include "stardict_wordnet.h"
+ #include "court_widget.h"
+ #include <glib/gi18n.h>
++#include <cstring>
+
+ #ifdef _WIN32
+ #include <windows.h>
+
+=== modified file 'stardict-plugins/stardict-wordnet-plugin/stardict_wordnet_parsedata.cpp'
+--- stardict-plugins/stardict-wordnet-plugin/stardict_wordnet_parsedata.cpp 2008-04-26 21:05:23 +0000
++++ stardict-plugins/stardict-wordnet-plugin/stardict_wordnet_parsedata.cpp 2008-04-26 21:05:29 +0000
+@@ -1,4 +1,5 @@
+ #include "stardict_wordnet_parsedata.h"
++#include <cstring>
+ #include <glib/gi18n.h>
+
+ #ifdef _WIN32
+
+=== modified file 'stardict-plugins/stardict-xdxf-parsedata-plugin/stardict_xdxf_parsedata.cpp'
+--- stardict-plugins/stardict-xdxf-parsedata-plugin/stardict_xdxf_parsedata.cpp 2008-04-26 21:05:23 +0000
++++ stardict-plugins/stardict-xdxf-parsedata-plugin/stardict_xdxf_parsedata.cpp 2008-04-26 21:05:29 +0000
+@@ -1,5 +1,6 @@
+ #include "stardict_xdxf_parsedata.h"
+ #include <glib/gi18n.h>
++#include <cstring>
+
+ #ifdef _WIN32
+ #include <windows.h>
+
+=== modified file 'tests/t_config_file.cpp'
+--- tests/t_config_file.cpp 2008-04-26 21:05:23 +0000
++++ tests/t_config_file.cpp 2008-04-26 21:05:29 +0000
+@@ -2,6 +2,7 @@
+ # include "config.h"
+ #endif
+
++#include <memory>
+ #include <cerrno>
+ #include <cstdio>
+ #include <cstdlib>
+
+=== modified file 'tests/t_xml.cpp'
+--- tests/t_xml.cpp 2008-04-26 21:05:23 +0000
++++ tests/t_xml.cpp 2008-04-26 21:05:29 +0000
+@@ -3,6 +3,7 @@
+ #endif
+
+ #include <glib.h>
++#include <cstring>
+ #include <cstdlib>
+ #include <string>
+
+
diff --git a/app-dicts/stardict/files/stardict-3.0.1-transparent_trayicon.patch b/app-dicts/stardict/files/stardict-3.0.1-transparent_trayicon.patch
new file mode 100644
index 000000000000..1522a2a760c3
--- /dev/null
+++ b/app-dicts/stardict/files/stardict-3.0.1-transparent_trayicon.patch
@@ -0,0 +1,168 @@
+--- stardict-3.0.1/src/docklet.cpp 2007-10-25 10:57:22.000000000 +0400
++++ stardict/src/docklet.cpp 2008-02-25 16:32:08.000000000 +0300
+@@ -25,15 +25,15 @@
+ void DockLet::create_docklet()
+ {
+ docklet_ = egg_tray_icon_new("StarDict");
+- box_ = gtk_event_box_new();
++ gtk_widget_add_events (GTK_WIDGET(docklet_), GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
+ if (is_hide_state()) {
+- gtk_widget_set_tooltip_text(box_, _("StarDict"));
++ gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict"));
+ image_ = gtk_image_new_from_pixbuf(normal_icon_);
+ } else if (is_scan_on()) {
+- gtk_widget_set_tooltip_text(box_, _("StarDict - Scanning"));
++ gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict - Scanning"));
+ image_ = gtk_image_new_from_pixbuf(scan_icon_);
+ } else {
+- gtk_widget_set_tooltip_text(box_, _("StarDict - Stopped"));
++ gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict - Stopped"));
+ image_ = gtk_image_new_from_pixbuf(stop_icon_);
+ }
+
+@@ -41,11 +41,10 @@
+ G_CALLBACK(on_embedded), this);
+ g_signal_connect(G_OBJECT(docklet_), "destroy",
+ G_CALLBACK(on_destroyed), this);
+- g_signal_connect(G_OBJECT(box_), "button-press-event",
++ g_signal_connect(G_OBJECT(docklet_), "button-press-event",
+ G_CALLBACK(on_btn_press), this);
+
+- gtk_container_add(GTK_CONTAINER(box_), image_);
+- gtk_container_add(GTK_CONTAINER(docklet_), box_);
++ gtk_container_add(GTK_CONTAINER(docklet_), image_);
+ gtk_widget_show_all(GTK_WIDGET(docklet_));
+
+ /* ref the docklet_ before we bandy it about the place */
+@@ -179,13 +178,13 @@
+
+ void DockLet::scan_on()
+ {
+- gtk_widget_set_tooltip_text(box_, _("StarDict - Scanning"));
++ gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict - Scanning"));
+ gtk_image_set_from_pixbuf(GTK_IMAGE(image_), scan_icon_);
+ }
+
+ void DockLet::scan_off()
+ {
+- gtk_widget_set_tooltip_text(box_, _("StarDict - Stopped"));
++ gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict - Stopped"));
+ gtk_image_set_from_pixbuf(GTK_IMAGE(image_), stop_icon_);
+ }
+
+@@ -193,7 +192,7 @@
+ {
+ if (!image_)
+ return;
+- gtk_widget_set_tooltip_text(box_, _("StarDict"));
++ gtk_widget_set_tooltip_text(GTK_WIDGET(docklet_), _("StarDict"));
+ gtk_image_set_from_pixbuf(GTK_IMAGE(image_), normal_icon_);
+ }
+
+--- stardict-3.0.1/src/docklet.h 2007-10-25 10:53:06.000000000 +0400
++++ stardict/src/docklet.h 2008-02-25 16:32:08.000000000 +0300
+@@ -16,7 +16,6 @@
+ void set_scan_mode(bool);
+ private:
+ EggTrayIcon *docklet_;
+- GtkWidget *box_;
+ GtkWidget *image_; //icon image.
+ typedef ResourceWrapper<GtkWidget, GtkWidget, gtk_widget_destroy> GMenu;
+ GMenu menu_;
+--- stardict-3.0.1/src/eggtrayicon.c 2007-07-10 11:16:04.000000000 +0400
++++ stardict/src/eggtrayicon.c 2008-02-25 16:32:08.000000000 +0300
+@@ -66,6 +66,8 @@
+
+ static void egg_tray_icon_realize (GtkWidget *widget);
+ static void egg_tray_icon_unrealize (GtkWidget *widget);
++static void egg_tray_icon_add (GtkContainer *container,
++ GtkWidget *widget);
+
+ #ifdef GDK_WINDOWING_X11
+ static void egg_tray_icon_update_manager_window (EggTrayIcon *icon,
+@@ -113,6 +115,7 @@
+ {
+ GObjectClass *gobject_class = (GObjectClass *)klass;
+ GtkWidgetClass *widget_class = (GtkWidgetClass *)klass;
++ GtkContainerClass *container_class = (GtkContainerClass *)klass;
+
+ parent_class = g_type_class_peek_parent (klass);
+
+@@ -121,6 +124,8 @@
+ widget_class->realize = egg_tray_icon_realize;
+ widget_class->unrealize = egg_tray_icon_unrealize;
+
++ container_class->add = egg_tray_icon_add;
++
+ g_object_class_install_property (gobject_class,
+ PROP_ORIENTATION,
+ g_param_spec_enum ("orientation",
+@@ -159,6 +164,35 @@
+ }
+
+ #ifdef GDK_WINDOWING_X11
++static gboolean
++transparent_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer user_data)
++{
++ gdk_window_clear_area (widget->window, event->area.x, event->area.y,
++ event->area.width, event->area.height);
++ return FALSE;
++}
++
++static void
++make_transparent_again (GtkWidget *widget, GtkStyle *previous_style,
++ gpointer user_data)
++{
++ gdk_window_set_back_pixmap(widget->window, NULL, TRUE);
++}
++
++static void
++make_transparent (GtkWidget *widget, gpointer user_data)
++{
++ if (GTK_WIDGET_NO_WINDOW (widget) || GTK_WIDGET_APP_PAINTABLE (widget))
++ return;
++
++ gtk_widget_set_app_paintable (widget, TRUE);
++ gtk_widget_set_double_buffered (widget, FALSE);
++ gdk_window_set_back_pixmap (widget->window, NULL, TRUE);
++ g_signal_connect (widget, "expose_event",
++ G_CALLBACK (transparent_expose_event), NULL);
++ g_signal_connect_after (widget, "style_set",
++ G_CALLBACK (make_transparent_again), NULL);
++}
+
+ static void
+ egg_tray_icon_get_orientation_property (EggTrayIcon *icon)
+@@ -238,10 +272,22 @@
+ }
+ return GDK_FILTER_CONTINUE;
+ }
+-
++#else
++static void
++make_transparent (GtkWidget *widget, gpointer user_data)
++{
++}
+ #endif
+
+ static void
++egg_tray_icon_add (GtkContainer *container, GtkWidget *widget)
++{
++ g_signal_connect (widget, "realize",
++ G_CALLBACK (make_transparent), NULL);
++ GTK_CONTAINER_CLASS (parent_class)->add (container, widget);
++}
++
++static void
+ egg_tray_icon_unrealize (GtkWidget *widget)
+ {
+ #ifdef GDK_WINDOWING_X11
+@@ -381,6 +427,8 @@
+ if (GTK_WIDGET_CLASS (parent_class)->realize)
+ GTK_WIDGET_CLASS (parent_class)->realize (widget);
+
++ make_transparent (widget, NULL);
++
+ screen = gtk_widget_get_screen (widget);
+ display = gdk_screen_get_display (screen);
+ xdisplay = gdk_x11_display_get_xdisplay (display);
diff --git a/app-dicts/stardict/files/stardict-gentoo.patch b/app-dicts/stardict/files/stardict-gentoo.patch
deleted file mode 100644
index 3a94d96600c9..000000000000
--- a/app-dicts/stardict/files/stardict-gentoo.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff -p -r zh-stardict-1.3/src/image.h zh-stardict-1.3.fix/src/image.h
-*** zh-stardict-1.3/src/image.h 2000-05-26 09:33:16.000000000 +0800
---- zh-stardict-1.3.fix/src/image.h 2002-10-12 06:34:04.000000000 +0800
-***************
-*** 17,23 ****
- #ifndef IMAGE_H
- #define IMAGE_H
-
-! #include <stdiostream.h>
- #include <stdlib.h>
- #include <memory.h>
- #include <string.h>
---- 17,24 ----
- #ifndef IMAGE_H
- #define IMAGE_H
-
-! //#include <stdiostream.h>
-! #include <iostream.h>
- #include <stdlib.h>
- #include <memory.h>
- #include <string.h>
diff --git a/app-dicts/stardict/files/stardict-gtk24.patch b/app-dicts/stardict/files/stardict-gtk24.patch
deleted file mode 100644
index bc79052f93ad..000000000000
--- a/app-dicts/stardict/files/stardict-gtk24.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-diff -ruN stardict-2.4.2.old/src/Makefile.am stardict-2.4.2/src/Makefile.am
---- stardict-2.4.2.old/src/Makefile.am 2004-04-22 15:37:45.326039331 -0700
-+++ stardict-2.4.2/src/Makefile.am 2004-04-22 15:40:13.902664279 -0700
-@@ -9,12 +9,7 @@
- -DGNOME_ICONDIR=\""$(datadir)/pixmaps"\" \
- -DSTARDICT_LOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
- -DSTARDICT_DATA_DIR=\""$(datadir)/stardict"\" \
-- -DG_DISABLE_DEPRECATED \
-- -DGDK_DISABLE_DEPRECATED \
-- -DGTK_DISABLE_DEPRECATED \
-- -DGDK_PIXBUF_DISABLE_DEPRECATED \
-- -DGNOME_DISABLE_DEPRECATED
--
-+
-
- stardict_LDFLAGS =
-
-diff -ruN stardict-2.4.2.old/src/Makefile.in stardict-2.4.2/src/Makefile.in
---- stardict-2.4.2.old/src/Makefile.in 2004-04-22 15:37:45.332037580 -0700
-+++ stardict-2.4.2/src/Makefile.in 2004-04-22 15:40:13.902664279 -0700
-@@ -141,13 +141,7 @@
- -DGNOME_ICONDIR=\""$(datadir)/pixmaps"\" \
- -DSTARDICT_LOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
- -DSTARDICT_DATA_DIR=\""$(datadir)/stardict"\" \
-- -DG_DISABLE_DEPRECATED \
-- -DGDK_DISABLE_DEPRECATED \
-- -DGTK_DISABLE_DEPRECATED \
-- -DGDK_PIXBUF_DISABLE_DEPRECATED \
-- -DGNOME_DISABLE_DEPRECATED
--
--
-+
- stardict_LDFLAGS =
-
- stardict_LDADD = \
diff --git a/app-dicts/stardict/stardict-2.4.2.ebuild b/app-dicts/stardict/stardict-2.4.2.ebuild
deleted file mode 100644
index 73d7fafc25c6..000000000000
--- a/app-dicts/stardict/stardict-2.4.2.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-dicts/stardict/stardict-2.4.2.ebuild,v 1.17 2008/02/25 14:45:56 pva Exp $
-
-inherit gnome2 eutils
-
-# NOTE: Even though the *.dict.dz are the same as dictd/freedict's files,
-# their indexes seem to be in a different format. So we'll keep them
-# seperate for now.
-
-IUSE=""
-DESCRIPTION="A GNOME2 international dictionary supporting fuzzy and glob style matching"
-HOMEPAGE="http://stardict.sourceforge.net/ http://cosoft.org.cn/projects/stardict/"
-SRC_URI="mirror://sourceforge/stardict/${P}.tar.bz2"
-
-RESTRICT="test"
-LICENSE="GPL-2"
-SLOT="0"
-# when adding keywords, remember to add to stardict.eclass
-KEYWORDS="x86 ppc sparc"
-
-RDEPEND=">=gnome-base/libbonobo-2.2.0
- >=gnome-base/libgnome-2.2.0
- >=gnome-base/libgnomeui-2.2.0
- >=sys-libs/zlib-1.1.4
- >=gnome-base/gconf-1.2
- >=dev-libs/popt-1.7
- >=gnome-base/orbit-2.6
- >=x11-libs/gtk+-2
- app-text/scrollkeeper"
-
-DEPEND="${RDEPEND}
- dev-util/pkgconfig"
-
-src_unpack() {
- unpack ${A}
- gnome2_omf_fix
-
- # Fix gtk-2.4 deprecation issues
- epatch "${FILESDIR}"/stardict-gtk24.patch
-}
-
-src_install() {
- gnome2_src_install
- # dictionary index generation files
- exeinto /usr/share/stardict/tools
- doexe "${S}"/src/tools/{dictd2dic,directory2dict,olddic2newdic,oxford2dic,pydict2dict,wquick2dict,stardict_dict_update}
-}
-
-pkg_postinst() {
- elog "You will now need to install stardict dictionary files. If"
- elog "you have not, execute the below to get a list of dictionaries:"
- elog
- elog " emerge -s stardict-"
- elog
- ewarn "If you upgraded from 2.4.1 or lower and use your own dictionary"
- ewarn "files, you'll need to run: /usr/share/stardict/tools/stardict_dict_update"
-}
diff --git a/app-dicts/stardict/stardict-2.4.6-r1.ebuild b/app-dicts/stardict/stardict-2.4.6-r1.ebuild
deleted file mode 100644
index 4509af10dd1a..000000000000
--- a/app-dicts/stardict/stardict-2.4.6-r1.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-dicts/stardict/stardict-2.4.6-r1.ebuild,v 1.9 2007/07/11 05:41:18 mr_bones_ Exp $
-
-inherit gnome2 eutils
-
-# NOTE: Even though the *.dict.dz are the same as dictd/freedict's files,
-# their indexes seem to be in a different format. So we'll keep them
-# seperate for now.
-
-IUSE="gnome"
-DESCRIPTION="A GNOME2 international dictionary supporting fuzzy and glob style matching"
-HOMEPAGE="http://stardict.sourceforge.net/ http://cosoft.org.cn/projects/stardict/"
-SRC_URI="mirror://sourceforge/stardict/${P}.tar.bz2"
-
-RESTRICT="test"
-LICENSE="GPL-2"
-SLOT="0"
-# when adding keywords, remember to add to stardict.eclass
-KEYWORDS="~amd64 ppc ppc64 sparc x86"
-
-RDEPEND="gnome? ( >=gnome-base/libbonobo-2.2.0
- >=gnome-base/libgnome-2.2.0
- >=gnome-base/libgnomeui-2.2.0
- >=gnome-base/gconf-1.2
- >=gnome-base/orbit-2.6
- app-text/scrollkeeper )
- >=sys-libs/zlib-1.1.4
- >=dev-libs/popt-1.7
- >=x11-libs/gtk+-2"
-
-DEPEND="${RDEPEND}
- >=dev-util/intltool-0.22
- dev-util/pkgconfig"
-
-src_unpack() {
- unpack ${A}
- gnome2_omf_fix
-}
-
-src_compile() {
- G2CONF="$(use_enable gnome gnome-support)"
- gnome2_src_compile
-}
-
-src_install() {
- gnome2_src_install
- # dictionary index generation files
- exeinto /usr/share/stardict/tools
- doexe "${S}"/src/tools/{dictd2dic,directory2dic,olddic2newdic,oxford2dic,pydict2dic,wquick2dic,stardict_dict_update}
-}
-
-pkg_postinst() {
- elog "You will now need to install stardict dictionary files. If"
- elog "you have not, execute the below to get a list of dictionaries:"
- elog
- elog " emerge -s stardict-"
- elog
- ewarn "If you upgraded from 2.4.1 or lower and use your own dictionary"
- ewarn "files, you'll need to run: /usr/share/stardict/tools/stardict_dict_update"
-}
diff --git a/app-dicts/stardict/stardict-3.0.1-r1.ebuild b/app-dicts/stardict/stardict-3.0.1-r1.ebuild
new file mode 100644
index 000000000000..ef94bf5f630f
--- /dev/null
+++ b/app-dicts/stardict/stardict-3.0.1-r1.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-dicts/stardict/stardict-3.0.1-r1.ebuild,v 1.1 2008/04/28 10:52:15 pva Exp $
+
+inherit gnome2 eutils autotools
+
+# NOTE: Even though the *.dict.dz are the same as dictd/freedict's files,
+# their indexes seem to be in a different format. So we'll keep them
+# seperate for now.
+
+IUSE="festival espeak gnome gucharmap qqwry pronounce spell"
+DESCRIPTION="A GNOME2 international dictionary supporting fuzzy and glob style matching"
+HOMEPAGE="http://stardict.sourceforge.net/"
+SRC_URI="mirror://sourceforge/stardict/${P}.tar.bz2
+ qqwry? ( mirror://sourceforge/stardict/QQWry.Dat.bz2 )
+ pronounce? ( mirror://sourceforge/stardict/WyabdcRealPeopleTTS.tar.bz2 )"
+
+RESTRICT="test"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+
+DEP="gnome? ( >=gnome-base/libbonobo-2.2.0
+ >=gnome-base/libgnome-2.2.0
+ >=gnome-base/libgnomeui-2.2.0
+ >=gnome-base/gconf-2
+ >=gnome-base/orbit-2.6
+ app-text/scrollkeeper )
+ spell? ( app-text/enchant )
+ gucharmap? ( >=gnome-extra/gucharmap-1.4.0 )
+ >=sys-libs/zlib-1.1.4
+ >=x11-libs/gtk+-2.12"
+
+RDEPEND="${DEP}
+ espeak? ( >=app-accessibility/espeak-1.29 )
+ festival? ( =app-accessibility/festival-1.96_beta )"
+
+DEPEND="${DEP}
+ >=dev-util/intltool-0.22
+ dev-util/pkgconfig"
+
+pkg_setup() {
+ built_with_use gnome-base/libgnome esd || \
+ if use gnome && use pronounce; then
+ ewarn 'Note, being built with USE="gnome" stardict uses gnome_sound_play()'
+ ewarn 'to play RealPeopleTTS sounds, which plays sounds only in case'
+ ewarn 'gnome-base/libgnome was built with USE="esd".'
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-configure.in-EST.diff
+ epatch "${FILESDIR}"/${P}-gconf-m4.diff
+ epatch "${FILESDIR}"/${P}-gcc43.patch
+ epatch "${FILESDIR}"/${P}-transparent_trayicon.patch
+ epatch "${FILESDIR}"/${P}-changelog-minor-typo-fixes.patch
+ AT_M4DIR="m4" eautoreconf
+ gnome2_omf_fix
+}
+
+src_compile() {
+ export PKG_CONFIG=$(type -P pkg-config)
+ # Festival plugin crashes, bug 188684. Disable for now.
+ G2CONF="$(use_enable gnome gnome-support)
+ $(use_enable spell)
+ $(use_enable gucharmap)
+ $(use_enable espeak)
+ $(use_enable qqwry)
+ --disable-festival
+ --disable-advertisement
+ --disable-updateinfo"
+ gnome2_src_compile
+}
+
+src_install() {
+ gnome2_src_install
+ if use qqwry; then
+ insinto /usr/share/stardict/data
+ doins ../QQWry.Dat
+ fi
+ if use pronounce; then
+ dodir /usr/share/
+ mv ../WyabdcRealPeopleTTS "${D}"/usr/share/
+ fi
+ dodoc doc/{FAQ,HowToCreateDictionary,StarDictFileFormat,Translation,HACKING}
+}
+
+pkg_postinst() {
+ if use festival; then
+ elog "Note: festival text to speach (TTS) plugin is not built. To use festival"
+ elog 'TTS plugin, please, enable "Use TTS program." at:'
+ elog '"Preferences -> Dictionary -> Sound" and fill in "Commandline" with:'
+ elog '"echo %s | festival --tts"'
+ elog
+ fi
+ elog "You will now need to install stardict dictionary files. If"
+ elog "you have not, execute the below to get a list of dictionaries:"
+ elog
+ elog " emerge -s stardict-"
+}