1 |
flameeyes 08/06/30 16:53:24 |
2 |
|
3 |
Modified: ChangeLog metadata.xml |
4 |
Added: rbot-9999-r10.ebuild |
5 |
Removed: rbot-9999-r9.ebuild |
6 |
Log: |
7 |
Updated live ebuild. Adds USE flags for toilet (figlet replacement) and hunspell (through ispell-compatibility interface -- use rbot-hunspell if you want full hunspell support). Configure the path to tools in the global configuration file rather than editing the plugins themselves. Set to run /bin/false when the tools are disabled. |
8 |
(Portage version: 2.2_rc1/cvs/Linux 2.6.25-gentoo-r4 x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.32 net-irc/rbot/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/rbot/ChangeLog?rev=1.32&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/rbot/ChangeLog?rev=1.32&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/rbot/ChangeLog?r1=1.31&r2=1.32 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-irc/rbot/ChangeLog,v |
20 |
retrieving revision 1.31 |
21 |
retrieving revision 1.32 |
22 |
diff -u -r1.31 -r1.32 |
23 |
--- ChangeLog 23 Jun 2008 15:46:00 -0000 1.31 |
24 |
+++ ChangeLog 30 Jun 2008 16:53:24 -0000 1.32 |
25 |
@@ -1,6 +1,16 @@ |
26 |
# ChangeLog for net-irc/rbot |
27 |
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-irc/rbot/ChangeLog,v 1.31 2008/06/23 15:46:00 flameeyes Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-irc/rbot/ChangeLog,v 1.32 2008/06/30 16:53:24 flameeyes Exp $ |
30 |
+ |
31 |
+*rbot-9999-r10 (30 Jun 2008) |
32 |
+ |
33 |
+ 30 Jun 2008; Diego Pettenò <flameeyes@g.o> metadata.xml, |
34 |
+ -rbot-9999-r9.ebuild, +rbot-9999-r10.ebuild: |
35 |
+ Updated live ebuild. Adds USE flags for toilet (figlet replacement) and |
36 |
+ hunspell (through ispell-compatibility interface -- use rbot-hunspell if |
37 |
+ you want full hunspell support). Configure the path to tools in the global |
38 |
+ configuration file rather than editing the plugins themselves. Set to run |
39 |
+ /bin/false when the tools are disabled. |
40 |
|
41 |
*rbot-9999-r9 (23 Jun 2008) |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
1.9 net-irc/rbot/metadata.xml |
47 |
|
48 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/rbot/metadata.xml?rev=1.9&view=markup |
49 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/rbot/metadata.xml?rev=1.9&content-type=text/plain |
50 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/rbot/metadata.xml?r1=1.8&r2=1.9 |
51 |
|
52 |
Index: metadata.xml |
53 |
=================================================================== |
54 |
RCS file: /var/cvsroot/gentoo-x86/net-irc/rbot/metadata.xml,v |
55 |
retrieving revision 1.8 |
56 |
retrieving revision 1.9 |
57 |
diff -u -r1.8 -r1.9 |
58 |
--- metadata.xml 23 Jun 2008 14:51:12 -0000 1.8 |
59 |
+++ metadata.xml 30 Jun 2008 16:53:24 -0000 1.9 |
60 |
@@ -6,11 +6,6 @@ |
61 |
<email>flameeyes@g.o</email> |
62 |
</maintainer> |
63 |
<use> |
64 |
- <flag name="snapshot" restrict="=net-irc/rbot-9999"> |
65 |
- Name the generated Ruby Gem in a proper manner to be used for a |
66 |
- snapshot ebuild. The format used is 9998_pre followed by the SVN |
67 |
- checked out revision number. |
68 |
- </flag> |
69 |
<flag name="timezone"> |
70 |
Add dependency over <pkg>dev-ruby/tzinfo</pkg> to enable the "time" |
71 |
plugin for rbot. If the USE flag is disabled the plugin is also |
72 |
@@ -19,7 +14,14 @@ |
73 |
<flag name="aspell"> |
74 |
Use aspell instead of ispell in the "spell" plugin for rbot. The |
75 |
vanilla plugin uses ispell, but enabling this flag makes it use |
76 |
- the ispell interface for aspell instead. |
77 |
+ the ispell interface from aspell instead. |
78 |
+ </flag> |
79 |
+ <flag name="hunspell"> |
80 |
+ Use hunspell instead of ispell in the "spell" plugin for rbot. The |
81 |
+ vanilla plugin uses ispell, but enabling this flag makes it use |
82 |
+ the ispell interface from hunspell instead. It's overridden by the |
83 |
+ aspell USE flag. For native hunspell support check the |
84 |
+ rbot-hunspell plugin. |
85 |
</flag> |
86 |
<flag name="translator"> |
87 |
Add dependency over <pkg>dev-ruby/mechanize</pkg>, which is needed |
88 |
@@ -32,8 +34,8 @@ |
89 |
disabled the plugin is also disabled by default. |
90 |
</flag> |
91 |
<flag name="nls"> |
92 |
- Add dependency over <pkg>dev-ruby/ruby-gettext</pkg>, which is |
93 |
- needed for the translation of the bot's messages to work. |
94 |
+ Build and install translation for the messages coming from the bot |
95 |
+ and its plugins (through <pkg>dev-ruby/ruby-gettext</pkg>). |
96 |
</flag> |
97 |
<flag name="dict"> |
98 |
Add dependency over <pkg>dev-ruby/ruby-dict</pkg>, which is needed |
99 |
@@ -41,24 +43,31 @@ |
100 |
the plugin is also disabled by default. |
101 |
</flag> |
102 |
<flag name="figlet"> |
103 |
- Add dependency over <pkg>app-misc/figlet</pkg>, which is needed to |
104 |
- enable the "figlet" plugin for rbot. If the USE flag is disable |
105 |
- dthe plugin is also disabled by default. |
106 |
+ Add dependency over <pkg>app-misc/figlet</pkg>, which is used by |
107 |
+ the "figlet" plugin for rbot. If the USE flag is disabled the |
108 |
+ plugin will be unable to use figlet; if toilet is also disabled, |
109 |
+ the plugin will be disabled. |
110 |
+ </flag> |
111 |
+ <flag name="toilet"> |
112 |
+ Add dependency over <pkg>app-misc/toilet</pkg>, which is used by |
113 |
+ the "figlet" plugin for rbot. If the USE flag is disabled the |
114 |
+ plugin will be unable to use toilet; if figlet is also disabled, |
115 |
+ the plugin will be disabled. |
116 |
</flag> |
117 |
<flag name="fortune"> |
118 |
Add dependency over <pkg>games-misc/fortune-mod</pkg>, which is |
119 |
needed to enable the "fortune" plugin for rbot. If the USE flag is |
120 |
- disable dthe plugin is also disabled by default. |
121 |
+ disabled the plugin is also disabled by default. |
122 |
</flag> |
123 |
<flag name="cal"> |
124 |
Add dependency over a package providing the /usr/bin/cal command, |
125 |
which is needed to enable the "cal" plugin for rbot. If the USE |
126 |
- flag is disable dthe plugin is also disabled by default. |
127 |
+ flag is disabled the plugin is also disabled by default. |
128 |
</flag> |
129 |
<flag name="host"> |
130 |
Add dependency over <pkg>net-dns/bind-tools</pkg> (providing |
131 |
/usr/bin/host), which is needed to enable the "host" plugin for |
132 |
- rbot. If the USE flag is disable dthe plugin is also disabled by |
133 |
+ rbot. If the USE flag is disabled the plugin is also disabled by |
134 |
default. |
135 |
</flag> |
136 |
</use> |
137 |
|
138 |
|
139 |
|
140 |
1.1 net-irc/rbot/rbot-9999-r10.ebuild |
141 |
|
142 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/rbot/rbot-9999-r10.ebuild?rev=1.1&view=markup |
143 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/rbot/rbot-9999-r10.ebuild?rev=1.1&content-type=text/plain |
144 |
|
145 |
Index: rbot-9999-r10.ebuild |
146 |
=================================================================== |
147 |
# Copyright 1999-2008 Gentoo Foundation |
148 |
# Distributed under the terms of the GNU General Public License v2 |
149 |
# $Header: /var/cvsroot/gentoo-x86/net-irc/rbot/rbot-9999-r10.ebuild,v 1.1 2008/06/30 16:53:24 flameeyes Exp $ |
150 |
|
151 |
inherit ruby eutils |
152 |
|
153 |
[[ ${PV} == "9999" ]] && inherit git |
154 |
|
155 |
DESCRIPTION="rbot is a ruby IRC bot" |
156 |
HOMEPAGE="http://ruby-rbot.org/" |
157 |
|
158 |
LICENSE="as-is" |
159 |
SLOT="0" |
160 |
KEYWORDS="" |
161 |
IUSE="spell aspell timezone translator shorturl nls dict figlet |
162 |
fortune cal host nls toilet hunspell" |
163 |
ILINGUAS="zh_CN zh_TW ru nl de fr it ja" |
164 |
|
165 |
for lang in $ILINGUAS; do |
166 |
IUSE="${IUSE} linguas_${lang}" |
167 |
done |
168 |
|
169 |
RDEPEND=">=virtual/ruby-1.8 |
170 |
dev-ruby/ruby-bdb |
171 |
timezone? ( dev-ruby/tzinfo ) |
172 |
spell? ( |
173 |
aspell? ( app-text/aspell ) |
174 |
!aspell? ( |
175 |
hunspell? ( app-text/hunspell ) |
176 |
!hunspell? ( app-text/ispell ) |
177 |
) |
178 |
) |
179 |
translator? ( dev-ruby/mechanize ) |
180 |
shorturl? ( dev-ruby/shorturl ) |
181 |
nls? ( dev-ruby/ruby-gettext ) |
182 |
dict? ( dev-ruby/ruby-dict ) |
183 |
figlet? ( app-misc/figlet ) |
184 |
toilet? ( app-misc/toilet ) |
185 |
fortune? ( games-misc/fortune-mod ) |
186 |
cal? ( || ( sys-apps/util-linux sys-freebsd/freebsd-ubin ) ) |
187 |
host? ( net-dns/bind-tools ) |
188 |
nls? ( dev-ruby/ruby-gettext )" |
189 |
DEPEND="nls? ( dev-ruby/ruby-gettext )" |
190 |
|
191 |
if [[ ${PV} == "9999" ]]; then |
192 |
SRC_URI="" |
193 |
EGIT_REPO_URI="git://ruby-rbot.org/rbot.git" |
194 |
else |
195 |
# wait for the new releases... |
196 |
SRC_URI="" |
197 |
fi |
198 |
|
199 |
pkg_setup() { |
200 |
enewuser rbot -1 -1 /var/lib/rbot nobody |
201 |
} |
202 |
|
203 |
src_unpack() { |
204 |
[[ ${PV} == "9999" ]] || return 0 |
205 |
git_src_unpack |
206 |
|
207 |
cd "${S}" |
208 |
sed -i -e '/\$version=/s:".\+":"'9999'":' bin/rbot \ |
209 |
|| die "Unable to fix rbot script version." |
210 |
} |
211 |
|
212 |
src_compile() { |
213 |
disable_rbot_plugin() { |
214 |
mv "${S}"/data/rbot/plugins/$1.rb{,.disabled} |
215 |
} |
216 |
use_rbot_plugin() { |
217 |
use $1 && return |
218 |
disable_rbot_plugin "$2" |
219 |
} |
220 |
rbot_conf() { |
221 |
echo "$1: $2" >> "${T}"/rbot.conf |
222 |
} |
223 |
use_rbot_conf_path() { |
224 |
use "$1" \ |
225 |
&& rbot_conf "$2" "$3" \ |
226 |
|| rbot_conf "$2" /bin/false |
227 |
} |
228 |
|
229 |
local spell_program="/usr/bin/ispell" |
230 |
if use !spell; then |
231 |
disable_rbot_plugin spell |
232 |
spell_program="/bin/false" |
233 |
elif use aspell; then |
234 |
spell_program="/usr/bin/ispell-aspell" |
235 |
elif use hunspell; then |
236 |
spell_program="/usr/bin/hunspell -i" |
237 |
fi |
238 |
|
239 |
rbot_conf spell.program "${spell_program}" |
240 |
|
241 |
if use !figlet && use !toilet; then |
242 |
disable_rbot_plugin figlet |
243 |
fi |
244 |
|
245 |
use_rbot_conf_path figlet figlet.path /usr/bin/figlet |
246 |
use_rbot_conf_path toilet toilet.path /usr/bin/toilet |
247 |
|
248 |
use_rbot_plugin timezone time |
249 |
use_rbot_plugin translator translator |
250 |
use_rbot_plugin shorturl shortenurls |
251 |
use_rbot_plugin dict dictclient |
252 |
|
253 |
use_rbot_plugin fortune fortune |
254 |
use_rbot_conf_path fortune fortune.path /usr/bin/fortune |
255 |
|
256 |
use_rbot_plugin cal cal |
257 |
use_rbot_conf_path cal cal.path /usr/bin/cal |
258 |
|
259 |
use_rbot_plugin host host |
260 |
use_rbot_conf_path host host.path /usr/bin/host |
261 |
|
262 |
local rbot_datadir="${D}"/usr/share/rbot |
263 |
|
264 |
# This is unfortunately pretty manual at the moment, but it's just |
265 |
# to avoid having to run special scripts to package new versions |
266 |
# of rbot. The default if new languages are added that are not |
267 |
# considered for an opt-out here is to install them, so you just |
268 |
# need to add them later. |
269 |
if use nls; then |
270 |
strip-linguas ${ILINGUAS} |
271 |
if [[ -n ${LINGUAS} ]]; then |
272 |
# As the the language name used by the rbot data files does |
273 |
# not correspond to the ISO codes we usually use for LINGUAS, |
274 |
# the following list of local varables will work as a |
275 |
# dictionary to get the name used by rbot from the ISO code. |
276 |
local lang_rbot_zh_CN="traditional_chinese" |
277 |
local lang_rbot_ru="russian" |
278 |
local lang_rbot_nl="dutch" |
279 |
local lang_rbot_de="german" |
280 |
local lang_rbot_fr="french" |
281 |
local lang_rbot_it="italian" |
282 |
local lang_rbot_ja="japanese" |
283 |
|
284 |
for lang in ${ILINGUAS}; do |
285 |
use linguas_${lang} && continue |
286 |
|
287 |
lang_varname="lang_rbot_${lang}" |
288 |
lang_rbot=${!lang_varname} |
289 |
|
290 |
rm -r \ |
291 |
"${S}"/data/rbot/languages/${lang_rbot}.lang \ |
292 |
"${S}"/data/rbot/templates/lart/larts-${lang_rbot} \ |
293 |
"${S}"/data/rbot/templates/lart/praises-${lang_rbot} \ |
294 |
"${S}"/data/rbot/templates/salut/salut-${lang_rbot} \ |
295 |
"${S}"/po/${lang} |
296 |
done |
297 |
fi |
298 |
|
299 |
rake makemo || die "locale generation failed" |
300 |
fi |
301 |
|
302 |
ruby_econf || die "ruby_econf failed" |
303 |
} |
304 |
|
305 |
src_install() { |
306 |
${RUBY} setup.rb install --prefix="${D}" \ |
307 |
|| die "setup.rb install failed" |
308 |
|
309 |
diropts -o rbot -g nobody -m 0700 |
310 |
keepdir /var/lib/rbot |
311 |
|
312 |
insinto /etc |
313 |
doins "${T}"/rbot.conf |
314 |
|
315 |
newinitd "${FILESDIR}/rbot.init" rbot |
316 |
newconfd "${FILESDIR}/rbot.conf" rbot |
317 |
} |
318 |
|
319 |
pkg_postinst() { |
320 |
einfo |
321 |
elog "rbot now can be started as a normal service." |
322 |
elog "Check /etc/conf.d/rbot file for more information about this feature." |
323 |
einfo |
324 |
} |
325 |
|
326 |
|
327 |
|
328 |
-- |
329 |
gentoo-commits@l.g.o mailing list |