--- /gentoo/portage/app-dicts/stardict/stardict-3.0.1.ebuild 2008-04-14 13:07:03.000000000 -0300 +++ /gentoo/overlay/app-dicts/stardict/stardict-3.0.1.ebuild 2008-04-16 00:00:34.000000000 -0300 @@ -8,10 +8,11 @@ # their indexes seem to be in a different format. So we'll keep them # seperate for now. -IUSE="festival espeak gnome gucharmap spell" +IUSE="festival espeak gnome gucharmap qqwry 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" +SRC_URI="mirror://sourceforge/stardict/${P}.tar.bz2 + qqwry? ( mirror://sourceforge/stardict/QQWry.Dat.bz2 )" RESTRICT="test" LICENSE="GPL-2" @@ -53,13 +54,26 @@ G2CONF="$(use_enable gnome gnome-support) $(use_enable spell) $(use_enable gucharmap) - $(use_enable espeak espeak) + $(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 + cd doc + dodoc FAQ HowToCreateDictionary StarDictFileFormat Translation + # This is only useful for developers + #dodoc HACKING +} + pkg_postinst() { elog "Note: festival text to speach (TTS) plugin is not built. To use festival" elog 'TTS plugin, please, enable "Use TTS program." at:'