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: stardict-3.0.3.ebuild ChangeLog metadata.xml
Date: Sun, 08 Jan 2012 17:33:45
Message-Id: 20120108173333.A618A2004B@flycatcher.gentoo.org
1 ssuominen 12/01/08 17:33:33
2
3 Modified: ChangeLog metadata.xml
4 Added: stardict-3.0.3.ebuild
5 Log:
6 Version bump wrt #351416 by "zvasylvv". Remove unnecessary runtime depend for festival and resort to pkg_postinst() message wrt #330351 by Andrew Savchenko. Fix building with GLIB >= 2.31 wrt #396219 by Oschtan. USE="tools" to install utilities which have been moved to the main package since 3.0.3 wrt #292773 by "andcycle-gentoo.bugs". Punt any reference to esound... read the ChangeLog
7
8 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.11 app-text/stardict/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/stardict/ChangeLog?rev=1.11&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/stardict/ChangeLog?rev=1.11&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/stardict/ChangeLog?r1=1.10&r2=1.11
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/stardict/ChangeLog,v
20 retrieving revision 1.10
21 retrieving revision 1.11
22 diff -u -r1.10 -r1.11
23 --- ChangeLog 21 Sep 2011 23:55:12 -0000 1.10
24 +++ ChangeLog 8 Jan 2012 17:33:33 -0000 1.11
25 @@ -1,6 +1,19 @@
26 # ChangeLog for app-text/stardict
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-text/stardict/ChangeLog,v 1.10 2011/09/21 23:55:12 dirtyepic Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/app-text/stardict/ChangeLog,v 1.11 2012/01/08 17:33:33 ssuominen Exp $
31 +
32 +*stardict-3.0.3 (08 Jan 2012)
33 +
34 + 08 Jan 2012; Samuli Suominen <ssuominen@g.o> +stardict-3.0.3.ebuild,
35 + +files/stardict-3.0.3-correct-glib-include.patch,
36 + +files/stardict-3.0.3-entry.patch, +files/stardict-3.0.3-gcc46.patch,
37 + metadata.xml:
38 + Version bump wrt #351416 by "zvasylvv". Remove unnecessary runtime depend for
39 + festival and resort to pkg_postinst() message wrt #330351 by Andrew
40 + Savchenko. Fix building with GLIB >= 2.31 wrt #396219 by Oschtan. USE="tools"
41 + to install utilities which have been moved to the main package since 3.0.3
42 + wrt #292773 by "andcycle-gentoo.bugs". Punt any reference to esound wrt
43 + #246174 by Yu Yuwei.
44
45 22 Sep 2011; Ryan Hill <dirtyepic@g.o> stardict-3.0.1-r3.ebuild,
46 +files/stardict-3.0.1-gcc46.patch:
47
48
49
50 1.2 app-text/stardict/metadata.xml
51
52 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/stardict/metadata.xml?rev=1.2&view=markup
53 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/stardict/metadata.xml?rev=1.2&content-type=text/plain
54 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/stardict/metadata.xml?r1=1.1&r2=1.2
55
56 Index: metadata.xml
57 ===================================================================
58 RCS file: /var/cvsroot/gentoo-x86/app-text/stardict/metadata.xml,v
59 retrieving revision 1.1
60 retrieving revision 1.2
61 diff -u -r1.1 -r1.2
62 --- metadata.xml 3 Feb 2010 07:54:24 -0000 1.1
63 +++ metadata.xml 8 Jan 2012 17:33:33 -0000 1.2
64 @@ -19,5 +19,6 @@
65 <flag name='qqwry'>Enable QQWry plugin, which provides information (in
66 Chinese language) about geographical positions, owner, etc. for IP
67 addresses</flag>
68 + <flag name='tools'>Build and install tools</flag>
69 </use>
70 </pkgmetadata>
71
72
73
74 1.1 app-text/stardict/stardict-3.0.3.ebuild
75
76 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/stardict/stardict-3.0.3.ebuild?rev=1.1&view=markup
77 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/stardict/stardict-3.0.3.ebuild?rev=1.1&content-type=text/plain
78
79 Index: stardict-3.0.3.ebuild
80 ===================================================================
81 # Copyright 1999-2012 Gentoo Foundation
82 # Distributed under the terms of the GNU General Public License v2
83 # $Header: /var/cvsroot/gentoo-x86/app-text/stardict/stardict-3.0.3.ebuild,v 1.1 2012/01/08 17:33:33 ssuominen Exp $
84
85 # NOTE: Even though the *.dict.dz are the same as dictd/freedict's files,
86 # their indexes seem to be in a different format. So we'll keep them
87 # seperate for now.
88
89 EAPI=4
90 inherit eutils
91
92 DESCRIPTION="A international dictionary supporting fuzzy and glob style matching"
93 HOMEPAGE="http://code.google.com/p/stardict-3/"
94 SRC_URI="http://${PN}-3.googlecode.com/files/${P}.tar.bz2
95 pronounce? ( http://${PN}-3.googlecode.com/files/WyabdcRealPeopleTTS.tar.bz2 )
96 qqwry? ( mirror://gentoo/QQWry.Dat.bz2 )"
97
98 LICENSE="GPL-3"
99 SLOT="0"
100 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
101 IUSE="espeak gnome gucharmap qqwry pronounce spell tools"
102
103 COMMON_DEPEND=">=dev-libs/glib-2.16
104 dev-libs/libsigc++:2
105 sys-libs/zlib
106 >=x11-libs/gtk+-2.20:2
107 gnome? (
108 >=gnome-base/libbonobo-2
109 >=gnome-base/libgnome-2
110 >=gnome-base/libgnomeui-2
111 >=gnome-base/gconf-2
112 >=gnome-base/orbit-2
113 )
114 gucharmap? ( >=gnome-extra/gucharmap-2.22.1:0 )
115 spell? ( >=app-text/enchant-1.2 )
116 tools? (
117 dev-libs/libpcre
118 dev-libs/libxml2
119 virtual/mysql
120 )"
121 RDEPEND="${COMMON_DEPEND}
122 espeak? ( >=app-accessibility/espeak-1.29 )"
123 DEPEND="${COMMON_DEPEND}
124 app-text/docbook-xml-dtd:4.3
125 app-text/gnome-doc-utils
126 dev-libs/libxslt
127 dev-util/intltool
128 dev-util/pkgconfig
129 sys-devel/gettext"
130
131 RESTRICT="test"
132
133 src_prepare() {
134 epatch \
135 "${FILESDIR}"/${P}-correct-glib-include.patch \
136 "${FILESDIR}"/${P}-entry.patch \
137 "${FILESDIR}"/${P}-gcc46.patch
138 }
139
140 src_configure() {
141 econf \
142 $(use_enable tools) \
143 --disable-scrollkeeper \
144 $(use_enable spell) \
145 $(use_enable gucharmap) \
146 --disable-festival \
147 $(use_enable espeak) \
148 $(use_enable qqwry) \
149 --disable-updateinfo \
150 $(use_enable gnome gnome-support) \
151 --disable-gpe-support \
152 --disable-schemas-install
153 }
154
155 src_install() {
156 emake DESTDIR="${D}" install
157
158 dodoc dict/doc/{Documentation,FAQ,HACKING,HowToCreateDictionary,Skins,StarDictFileFormat,Translation}
159
160 if use qqwry; then
161 insinto /usr/share/stardict/data
162 doins ../QQWry.Dat
163 fi
164
165 if use pronounce; then
166 docinto WyabdcRealPeopleTTS
167 dodoc ../WyabdcRealPeopleTTS/{README,readme.txt}
168 rm -f ../WyabdcRealPeopleTTS/{README,readme.txt}
169 insinto /usr/share
170 doins -r ../WyabdcRealPeopleTTS
171 fi
172
173 find "${ED}" -name '*.la' -exec rm -f {} +
174 }
175
176 pkg_postinst() {
177 elog "Note: festival text to speech (TTS) plugin is not built. To use festival"
178 elog 'TTS plugin, please, emerge festival and enable "Use TTS program." at:'
179 elog '"Preferences -> Dictionary -> Sound" and fill in "Commandline" with:'
180 elog '"echo %s | festival --tts"'
181 elog
182 elog "You will now need to install stardict dictionary files. If"
183 elog "you have not, execute the below to get a list of dictionaries:"
184 elog
185 elog " emerge -s stardict-"
186 }