Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/stardict: ChangeLog stardict-3.0.3-r1.ebuild
Date: Sun, 08 Jan 2012 18:54:03
Message-Id: 20120108185352.C45942004C@flycatcher.gentoo.org
1 ssuominen 12/01/08 18:53:52
2
3 Modified: ChangeLog
4 Added: stardict-3.0.3-r1.ebuild
5 Log:
6 Incorporate OpenSUSE patches for buffer overflows and startup crash.
7
8 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.15 app-text/stardict/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/stardict/ChangeLog?rev=1.15&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/stardict/ChangeLog?rev=1.15&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/stardict/ChangeLog?r1=1.14&r2=1.15
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/stardict/ChangeLog,v
20 retrieving revision 1.14
21 retrieving revision 1.15
22 diff -u -r1.14 -r1.15
23 --- ChangeLog 8 Jan 2012 18:31:37 -0000 1.14
24 +++ ChangeLog 8 Jan 2012 18:53:52 -0000 1.15
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-text/stardict
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-text/stardict/ChangeLog,v 1.14 2012/01/08 18:31:37 ssuominen Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-text/stardict/ChangeLog,v 1.15 2012/01/08 18:53:52 ssuominen Exp $
30 +
31 +*stardict-3.0.3-r1 (08 Jan 2012)
32 +
33 + 08 Jan 2012; Samuli Suominen <ssuominen@g.o>
34 + +stardict-3.0.3-r1.ebuild, +files/stardict-3.0.3-compositelookup_cpp.patch,
35 + +files/stardict-3.0.3-overflow.patch:
36 + Incorporate OpenSUSE patches for buffer overflows and startup crash.
37
38 08 Jan 2012; Samuli Suominen <ssuominen@g.o> stardict-3.0.3.ebuild:
39 Use gnome2.eclass for gconf schema(s).
40
41
42
43 1.1 app-text/stardict/stardict-3.0.3-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/stardict/stardict-3.0.3-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/stardict/stardict-3.0.3-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: stardict-3.0.3-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-text/stardict/stardict-3.0.3-r1.ebuild,v 1.1 2012/01/08 18:53:52 ssuominen Exp $
53
54 # NOTE: Even though the *.dict.dz are the same as dictd/freedict's files,
55 # their indexes seem to be in a different format. So we'll keep them
56 # seperate for now.
57
58 # NOTE: Festival plugin crashes, bug 188684. Disable for now.
59
60 EAPI=4
61
62 GNOME2_LA_PUNT=yes
63 GCONF_DEBUG=no
64
65 inherit eutils gnome2
66
67 DESCRIPTION="A international dictionary supporting fuzzy and glob style matching"
68 HOMEPAGE="http://code.google.com/p/stardict-3/"
69 SRC_URI="http://${PN}-3.googlecode.com/files/${P}.tar.bz2
70 pronounce? ( http://${PN}-3.googlecode.com/files/WyabdcRealPeopleTTS.tar.bz2 )
71 qqwry? ( mirror://gentoo/QQWry.Dat.bz2 )"
72
73 LICENSE="CPL-1.0 GPL-3 LGPL-2"
74 SLOT="0"
75 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
76 IUSE="editor espeak gnome gucharmap qqwry pronounce spell"
77
78 COMMON_DEPEND=">=dev-libs/glib-2.16
79 dev-libs/libsigc++:2
80 sys-libs/zlib
81 >=x11-libs/gtk+-2.20:2
82 editor? (
83 dev-libs/libpcre
84 dev-libs/libxml2
85 virtual/mysql
86 )
87 gnome? (
88 >=gnome-base/libbonobo-2
89 >=gnome-base/libgnome-2
90 >=gnome-base/libgnomeui-2
91 >=gnome-base/gconf-2
92 >=gnome-base/orbit-2
93 )
94 gucharmap? ( >=gnome-extra/gucharmap-2.22.1:0 )
95 spell? ( >=app-text/enchant-1.2 )"
96 RDEPEND="${COMMON_DEPEND}
97 espeak? ( >=app-accessibility/espeak-1.29 )"
98 DEPEND="${COMMON_DEPEND}
99 app-text/docbook-xml-dtd:4.3
100 app-text/gnome-doc-utils
101 dev-libs/libxslt
102 dev-util/intltool
103 dev-util/pkgconfig
104 sys-devel/gettext"
105
106 RESTRICT="test"
107
108 pkg_setup() {
109 G2CONF="$(use_enable editor tools)
110 --disable-scrollkeeper
111 $(use_enable spell)
112 $(use_enable gucharmap)
113 --disable-festival
114 $(use_enable espeak)
115 $(use_enable qqwry)
116 --disable-updateinfo
117 $(use_enable gnome gnome-support)
118 --disable-gpe-support
119 --disable-schemas-install"
120 }
121
122 src_prepare() {
123 epatch \
124 "${FILESDIR}"/${P}-correct-glib-include.patch \
125 "${FILESDIR}"/${P}-entry.patch \
126 "${FILESDIR}"/${P}-gcc46.patch \
127 "${FILESDIR}"/${P}-compositelookup_cpp.patch \
128 "${FILESDIR}"/${P}-overflow.patch
129
130 gnome2_src_prepare
131 }
132
133 src_install() {
134 gnome2_src_install
135
136 dodoc dict/doc/{Documentation,FAQ,HACKING,HowToCreateDictionary,Skins,StarDictFileFormat,Translation}
137
138 if use qqwry; then
139 insinto /usr/share/stardict/data
140 doins ../QQWry.Dat
141 fi
142
143 if use pronounce; then
144 docinto WyabdcRealPeopleTTS
145 dodoc ../WyabdcRealPeopleTTS/{README,readme.txt}
146 rm -f ../WyabdcRealPeopleTTS/{README,readme.txt}
147 insinto /usr/share
148 doins -r ../WyabdcRealPeopleTTS
149 fi
150 }
151
152 pkg_postinst() {
153 elog "Note: festival text to speech (TTS) plugin is not built. To use festival"
154 elog 'TTS plugin, please, emerge festival and enable "Use TTS program." at:'
155 elog '"Preferences -> Dictionary -> Sound" and fill in "Commandline" with:'
156 elog '"echo %s | festival --tts"'
157 elog
158 elog "You will now need to install stardict dictionary files. If"
159 elog "you have not, execute the below to get a list of dictionaries:"
160 elog
161 elog " emerge -s stardict-"
162
163 gnome2_pkg_postinst
164 }