Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/stardict/
Date: Sat, 03 Dec 2016 16:47:43
Message-Id: 1480783654.a9260fb4dfb5b76b7a258c2de680494c75557079.bircoph@gentoo
1 commit: a9260fb4dfb5b76b7a258c2de680494c75557079
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 3 06:14:31 2016 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 3 16:47:34 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9260fb4
7
8 app-text/stardict: handle stardict plugins using USE flags
9
10 Previously many stardict plugins were unconditionally enabled or
11 disabled, they are controllable now, except for festival, where
12 app-accessibility/festival should be updated first, and plugins for
13 unsupported interfaces, like maemo or gpe.
14
15 Package-Manager: portage-2.3.2
16 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
17
18 app-text/stardict/metadata.xml | 21 ++++++++++++++++----
19 app-text/stardict/stardict-3.0.6-r3.ebuild | 32 ++++++++++++++++++++----------
20 2 files changed, 38 insertions(+), 15 deletions(-)
21
22 diff --git a/app-text/stardict/metadata.xml b/app-text/stardict/metadata.xml
23 index 283525d..8b2d995 100644
24 --- a/app-text/stardict/metadata.xml
25 +++ b/app-text/stardict/metadata.xml
26 @@ -12,15 +12,28 @@
27 as Full-text translation, Net Dict.
28 </longdescription>
29 <use>
30 - <flag name="espeak">Enable text to speech synthesizer using espeak
31 - engine</flag>
32 + <flag name="advertisement">Enable stardict advertisements plugin</flag>
33 + <flag name="dictdotcn">Enable dict.cn network plugin (for Chinese language)</flag>
34 + <flag name="espeak">Enable text to speech synthesizer plugin using
35 + <pkg>app-accessibility/espeak</pkg> engine</flag>
36 + <flag name="gucharmap">Enable plugin for unicode symbols description
37 + using <pkg>gnome-extra/gucharmap</pkg></flag>
38 + <flag name="htmlparse">Enable plugin to parse dictionaries with html content</flag>
39 + <flag name="man">Enable plugin to read manual pages</flag>
40 <flag name="pronounce">Install WyabdcRealPeopleTTS package (it is just
41 many .wav files) to make StarDict pronounce English words</flag>
42 <flag name="qqwry">Enable QQWry plugin, which provides information (in
43 Chinese language) about geographical positions, owner, etc. for IP
44 addresses</flag>
45 - <flag name="tools">Build and install dictionary management
46 - tools and converters from various dictionary formats</flag>
47 + <flag name="powerwordparse">Enable plugin to parse powerword dictionaries</flag>
48 + <flag name="tools">Build and install dictionary management tools and
49 + converters from various dictionary formats</flag>
50 + <flag name="updateinfo">Enable plugin to check for stardict updates</flag>
51 + <flag name="wikiparse">Enable plugin to parse dictionaries in wikimedia format</flag>
52 + <flag name="wordnet">Enable wordnet plugin to find similar English words
53 + using lexical database</flag>
54 + <flag name="xdxfparse">Enable plugin to parse dictionaries
55 + in xdxf (XML Dictionary eXchange Format)</flag>
56 </use>
57 <upstream>
58 <remote-id type="sourceforge">stardict-4</remote-id>
59
60 diff --git a/app-text/stardict/stardict-3.0.6-r3.ebuild b/app-text/stardict/stardict-3.0.6-r3.ebuild
61 index 1f059fa..2ee16b3 100644
62 --- a/app-text/stardict/stardict-3.0.6-r3.ebuild
63 +++ b/app-text/stardict/stardict-3.0.6-r3.ebuild
64 @@ -21,7 +21,9 @@ SRC_URI="mirror://sourceforge/${PN}-4/${P}.tar.bz2
65 LICENSE="CPL-1.0 GPL-3 LGPL-2"
66 SLOT="0"
67 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
68 -IUSE="debug espeak pronounce spell tools qqwry"
69 +IUSE="advertisement debug dictdotcn espeak +gucharmap +htmlparse
70 +man +powerwordparse pronounce qqwry spell tools updateinfo
71 ++wikiparse +wordnet +xdxfparse"
72
73 RESTRICT="test"
74
75 @@ -33,6 +35,7 @@ COMMON_DEPEND="
76 >=x11-libs/gtk+-2.20:2
77 x11-libs/libX11
78 x11-libs/pango
79 + gucharmap? ( gnome-extra/gucharmap:0= )
80 spell? ( >=app-text/enchant-1.2 )
81 tools? (
82 dev-libs/libpcre:=
83 @@ -67,25 +70,32 @@ src_prepare() {
84 }
85
86 src_configure() {
87 - # NOTE: Festival plugin crashes, bug 188684. Disable for now.
88 -
89 # Hint: EXTRA_ECONF="--enable-gnome-support" and manual install of
90 # libbonobo-2, libgnome-2, libgnomeui-2, gconf-2 and orbit-2 will
91 # give you GNOME 2.x support, that is otherwise considered deprecated
92 # because of the deep GNOME 2.x core library dependencies
93 +
94 + # Festival plugin crashes, bug 188684. Disable for now.
95 gnome2_src_configure \
96 - $(use_enable tools) \
97 + --disable-festival \
98 + --disable-gnome-support \
99 + --disable-gpe-support \
100 + --disable-schemas-install \
101 --disable-scrollkeeper \
102 - $(use_enable spell) \
103 - --disable-gucharmap \
104 + $(use_enable advertisement) \
105 + $(use_enable dictdotcn) \
106 $(use_enable debug) \
107 - --disable-festival \
108 $(use_enable espeak) \
109 + $(use_enable gucharmap) \
110 + $(use_enable htmlparse) \
111 $(use_enable qqwry) \
112 - --disable-updateinfo \
113 - --disable-gnome-support \
114 - --disable-gpe-support \
115 - --disable-schemas-install
116 + $(use_enable powerwordparse) \
117 + $(use_enable spell) \
118 + $(use_enable tools) \
119 + $(use_enable updateinfo) \
120 + $(use_enable wikiparse) \
121 + $(use_enable wordnet) \
122 + $(use_enable xdxfparse)
123 }
124
125 src_install() {