Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/stardict: ChangeLog stardict-3.0.1-r2.ebuild metadata.xml stardict-3.0.1-r1.ebuild stardict-2.4.8-r1.ebuild
Date: Wed, 03 Feb 2010 07:54:35
Message-Id: E1Nca49-0001ZW-SU@stork.gentoo.org
1 pva 10/02/03 07:54:25
2
3 Added: ChangeLog stardict-3.0.1-r2.ebuild metadata.xml
4 stardict-3.0.1-r1.ebuild stardict-2.4.8-r1.ebuild
5 Log:
6 Moved from app-dicts/stardict, bug #289475, thank Ihar Hrachyshka for report.
7 (Portage version: 2.2_rc61/cvs/Linux x86_64, RepoMan options: --force)
8
9 Revision Changes Path
10 1.3 app-text/stardict/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/ChangeLog?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/ChangeLog?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/ChangeLog?r1=1.2&r2=1.3
15
16
17
18
19 1.1 app-text/stardict/stardict-3.0.1-r2.ebuild
20
21 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/stardict-3.0.1-r2.ebuild?rev=1.1&view=markup
22 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/stardict-3.0.1-r2.ebuild?rev=1.1&content-type=text/plain
23
24 Index: stardict-3.0.1-r2.ebuild
25 ===================================================================
26 # Copyright 1999-2010 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 # $Header: /var/cvsroot/gentoo-x86/app-text/stardict/stardict-3.0.1-r2.ebuild,v 1.1 2010/02/03 07:54:24 pva Exp $
29
30 EAPI="2"
31
32 inherit gnome2 eutils autotools
33
34 # NOTE: Even though the *.dict.dz are the same as dictd/freedict's files,
35 # their indexes seem to be in a different format. So we'll keep them
36 # seperate for now.
37
38 IUSE="festival espeak gnome gucharmap qqwry pronounce spell"
39 DESCRIPTION="A GNOME2 international dictionary supporting fuzzy and glob style matching"
40 HOMEPAGE="http://stardict.sourceforge.net/"
41 SRC_URI="mirror://sourceforge/stardict/${P}.tar.bz2
42 qqwry? ( mirror://sourceforge/stardict/QQWry.Dat.bz2 )
43 pronounce? ( mirror://sourceforge/stardict/WyabdcRealPeopleTTS.tar.bz2 )"
44
45 RESTRICT="test"
46 LICENSE="GPL-2"
47 SLOT="0"
48 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
49
50 DEP="gnome? ( >=gnome-base/libbonobo-2.2.0
51 >=gnome-base/libgnome-2.2.0
52 pronounce? ( >=gnome-base/libgnome-2.2.0[esd] )
53 >=gnome-base/libgnomeui-2.2.0
54 >=gnome-base/gconf-2
55 >=gnome-base/orbit-2.6
56 app-text/scrollkeeper )
57 spell? ( app-text/enchant )
58 gucharmap? ( >=gnome-extra/gucharmap-1.4.0 )
59 dev-libs/libsigc++
60 >=sys-libs/zlib-1.1.4
61 >=x11-libs/gtk+-2.12"
62
63 RDEPEND="${DEP}
64 espeak? ( >=app-accessibility/espeak-1.29 )
65 festival? ( ~app-accessibility/festival-1.96_beta )"
66
67 DEPEND="${DEP}
68 >=dev-util/intltool-0.22
69 dev-util/pkgconfig"
70
71 src_prepare() {
72 epatch "${FILESDIR}"/${P}-configure.in-EST.diff
73 epatch "${FILESDIR}"/${P}-gconf-m4.diff
74 epatch "${FILESDIR}"/${P}-gcc43.patch
75 epatch "${FILESDIR}"/${P}-transparent_trayicon.patch
76 epatch "${FILESDIR}"/${P}-changelog-minor-typo-fixes.patch
77 epatch "${FILESDIR}"/${P}-gcc44.patch
78
79 # Fix compatibility with gucharmap-2, bug #240728
80 epatch "${FILESDIR}/${P}-gucharmap2.patch"
81
82 AT_M4DIR="m4" eautoreconf
83 gnome2_omf_fix
84 }
85
86 src_configure() {
87 export PKG_CONFIG=$(type -P pkg-config)
88 # Festival plugin crashes, bug 188684. Disable for now.
89 G2CONF="$(use_enable gnome gnome-support)
90 $(use_enable spell)
91 $(use_enable gucharmap)
92 $(use_enable espeak)
93 $(use_enable qqwry)
94 --disable-festival
95 --disable-advertisement
96 --disable-updateinfo"
97 gnome2_src_configure
98 }
99
100 src_install() {
101 gnome2_src_install
102 if use qqwry; then
103 insinto /usr/share/stardict/data
104 doins ../QQWry.Dat
105 fi
106 if use pronounce; then
107 dodir /usr/share/
108 mv ../WyabdcRealPeopleTTS "${D}"/usr/share/
109 fi
110 dodoc doc/{FAQ,HowToCreateDictionary,StarDictFileFormat,Translation,HACKING}
111 }
112
113 pkg_postinst() {
114 if use festival; then
115 elog "Note: festival text to speech (TTS) plugin is not built. To use festival"
116 elog 'TTS plugin, please, enable "Use TTS program." at:'
117 elog '"Preferences -> Dictionary -> Sound" and fill in "Commandline" with:'
118 elog '"echo %s | festival --tts"'
119 elog
120 fi
121 elog "You will now need to install stardict dictionary files. If"
122 elog "you have not, execute the below to get a list of dictionaries:"
123 elog
124 elog " emerge -s stardict-"
125 }
126
127
128
129 1.1 app-text/stardict/metadata.xml
130
131 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/metadata.xml?rev=1.1&view=markup
132 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/metadata.xml?rev=1.1&content-type=text/plain
133
134 Index: metadata.xml
135 ===================================================================
136 <?xml version="1.0" encoding="UTF-8"?>
137 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
138 <pkgmetadata>
139 <herd>app-dicts</herd>
140 <longdescription>
141 StarDict is an international dictionary Software. It has powerful features
142 such as "Glob-style pattern matching", "Scan selection word," "Fuzzy
143 query," etc. Stardict Version3.0 has developed a lot of new functions, such
144 as Full-text translation, Net Dict.
145 </longdescription>
146 <use>
147 <flag name='espeak'>Enable text to speech synthesizer using espeak
148 engine</flag>
149 <flag name='festival'>Enable text to speech synthesizer using festival
150 engine</flag>
151 <flag name='gucharmap'>Enable gucharmap dictionary plugin</flag>
152 <flag name='pronounce'>Install WyabdcRealPeopleTTS package (it is just
153 many .wav files) to make StarDict pronounce English words</flag>
154 <flag name='qqwry'>Enable QQWry plugin, which provides information (in
155 Chinese language) about geographical positions, owner, etc. for IP
156 addresses</flag>
157 </use>
158 </pkgmetadata>
159
160
161
162 1.1 app-text/stardict/stardict-3.0.1-r1.ebuild
163
164 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/stardict-3.0.1-r1.ebuild?rev=1.1&view=markup
165 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/stardict-3.0.1-r1.ebuild?rev=1.1&content-type=text/plain
166
167 Index: stardict-3.0.1-r1.ebuild
168 ===================================================================
169 # Copyright 1999-2010 Gentoo Foundation
170 # Distributed under the terms of the GNU General Public License v2
171 # $Header: /var/cvsroot/gentoo-x86/app-text/stardict/stardict-3.0.1-r1.ebuild,v 1.1 2010/02/03 07:54:24 pva Exp $
172
173 inherit gnome2 eutils autotools
174
175 # NOTE: Even though the *.dict.dz are the same as dictd/freedict's files,
176 # their indexes seem to be in a different format. So we'll keep them
177 # seperate for now.
178
179 IUSE="festival espeak gnome gucharmap qqwry pronounce spell"
180 DESCRIPTION="A GNOME2 international dictionary supporting fuzzy and glob style matching"
181 HOMEPAGE="http://stardict.sourceforge.net/"
182 SRC_URI="mirror://sourceforge/stardict/${P}.tar.bz2
183 qqwry? ( mirror://sourceforge/stardict/QQWry.Dat.bz2 )
184 pronounce? ( mirror://sourceforge/stardict/WyabdcRealPeopleTTS.tar.bz2 )"
185
186 RESTRICT="test"
187 LICENSE="GPL-2"
188 SLOT="0"
189 KEYWORDS="amd64 ppc ppc64 sparc x86"
190
191 DEP="gnome? ( >=gnome-base/libbonobo-2.2.0
192 >=gnome-base/libgnome-2.2.0
193 >=gnome-base/libgnomeui-2.2.0
194 >=gnome-base/gconf-2
195 >=gnome-base/orbit-2.6
196 app-text/scrollkeeper )
197 spell? ( app-text/enchant )
198 gucharmap? ( >=gnome-extra/gucharmap-1.4.0 )
199 >=sys-libs/zlib-1.1.4
200 >=x11-libs/gtk+-2.12"
201
202 RDEPEND="${DEP}
203 espeak? ( >=app-accessibility/espeak-1.29 )
204 festival? ( =app-accessibility/festival-1.96_beta )"
205
206 DEPEND="${DEP}
207 >=dev-util/intltool-0.22
208 dev-util/pkgconfig"
209
210 pkg_setup() {
211 if (use gnome && use pronounce && ! built_with_use gnome-base/libgnome esd); then
212 ewarn 'Note, being built with USE="gnome" stardict uses gnome_sound_play()'
213 ewarn 'to play RealPeopleTTS sounds, which plays sounds only in case'
214 ewarn 'gnome-base/libgnome was built with USE="esd".'
215 fi
216 }
217
218 src_unpack() {
219 unpack ${A}
220 cd "${S}"
221
222 epatch "${FILESDIR}"/${P}-configure.in-EST.diff
223 epatch "${FILESDIR}"/${P}-gconf-m4.diff
224 epatch "${FILESDIR}"/${P}-gcc43.patch
225 epatch "${FILESDIR}"/${P}-transparent_trayicon.patch
226 epatch "${FILESDIR}"/${P}-changelog-minor-typo-fixes.patch
227 AT_M4DIR="m4" eautoreconf
228 gnome2_omf_fix
229 }
230
231 src_compile() {
232 export PKG_CONFIG=$(type -P pkg-config)
233 # Festival plugin crashes, bug 188684. Disable for now.
234 G2CONF="$(use_enable gnome gnome-support)
235 $(use_enable spell)
236 $(use_enable gucharmap)
237 $(use_enable espeak)
238 $(use_enable qqwry)
239 --disable-festival
240 --disable-advertisement
241 --disable-updateinfo"
242 gnome2_src_compile
243 }
244
245 src_install() {
246 gnome2_src_install
247 if use qqwry; then
248 insinto /usr/share/stardict/data
249 doins ../QQWry.Dat
250 fi
251 if use pronounce; then
252 dodir /usr/share/
253 mv ../WyabdcRealPeopleTTS "${D}"/usr/share/
254 fi
255 dodoc doc/{FAQ,HowToCreateDictionary,StarDictFileFormat,Translation,HACKING}
256 }
257
258 pkg_postinst() {
259 if use festival; then
260 elog "Note: festival text to speach (TTS) plugin is not built. To use festival"
261 elog 'TTS plugin, please, enable "Use TTS program." at:'
262 elog '"Preferences -> Dictionary -> Sound" and fill in "Commandline" with:'
263 elog '"echo %s | festival --tts"'
264 elog
265 fi
266 elog "You will now need to install stardict dictionary files. If"
267 elog "you have not, execute the below to get a list of dictionaries:"
268 elog
269 elog " emerge -s stardict-"
270 }
271
272
273
274 1.1 app-text/stardict/stardict-2.4.8-r1.ebuild
275
276 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/stardict-2.4.8-r1.ebuild?rev=1.1&view=markup
277 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/stardict/stardict-2.4.8-r1.ebuild?rev=1.1&content-type=text/plain
278
279 Index: stardict-2.4.8-r1.ebuild
280 ===================================================================
281 # Copyright 1999-2010 Gentoo Foundation
282 # Distributed under the terms of the GNU General Public License v2
283 # $Header: /var/cvsroot/gentoo-x86/app-text/stardict/stardict-2.4.8-r1.ebuild,v 1.1 2010/02/03 07:54:24 pva Exp $
284
285 inherit gnome2 eutils
286
287 # NOTE: Even though the *.dict.dz are the same as dictd/freedict's files,
288 # their indexes seem to be in a different format. So we'll keep them
289 # seperate for now.
290
291 IUSE="gnome"
292 DESCRIPTION="A GNOME2 international dictionary supporting fuzzy and glob style matching"
293 HOMEPAGE="http://stardict.sourceforge.net/ http://cosoft.org.cn/projects/stardict/"
294 SRC_URI="mirror://sourceforge/stardict/${P}.tar.bz2"
295
296 RESTRICT="test"
297 LICENSE="GPL-2"
298 SLOT="0"
299 # when adding keywords, remember to add to stardict.eclass
300 KEYWORDS="~amd64 ppc ~ppc64 ~sparc x86"
301
302 RDEPEND="gnome? ( >=gnome-base/libbonobo-2.2.0
303 >=gnome-base/libgnome-2.2.0
304 >=gnome-base/libgnomeui-2.2.0
305 >=gnome-base/gconf-2
306 >=gnome-base/orbit-2.6
307 app-text/scrollkeeper )
308 >=sys-libs/zlib-1.1.4
309 >=dev-libs/popt-1.7
310 >=x11-libs/gtk+-2.6"
311
312 DEPEND="${RDEPEND}
313 >=dev-util/intltool-0.22
314 dev-util/pkgconfig"
315
316 src_unpack() {
317 unpack ${A}
318
319 cd "${S}"/src
320 epatch "${FILESDIR}"/${P}-ClipboardReceivedCallback.patch
321 epatch "${FILESDIR}"/${P}-floatwin-disappear.patch
322 gnome2_omf_fix
323 }
324
325 src_compile() {
326 export PKG_CONFIG=$(type -P pkg-config)
327 G2CONF="$(use_enable gnome gnome-support)"
328 gnome2_src_compile
329 }
330
331 src_install() {
332 gnome2_src_install
333 # dictionary index generation files
334 exeinto /usr/share/stardict/tools
335 doexe "${S}"/src/tools/{dictd2dic,directory2dic,olddic2newdic,oxford2dic,pydict2dic,wquick2dic,stardict_dict_update}
336 }
337
338 pkg_postinst() {
339 elog "You will now need to install stardict dictionary files. If"
340 elog "you have not, execute the below to get a list of dictionaries:"
341 elog
342 elog " emerge -s stardict-"
343 elog
344 ewarn "If you upgraded from 2.4.1 or lower and use your own dictionary"
345 ewarn "files, you'll need to run: /usr/share/stardict/tools/stardict_dict_update"
346 }