1 |
a3li 13/10/27 18:24:53 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: rbot-0.9.15_p20131020.ebuild |
5 |
Removed: rbot-9999-r10.ebuild |
6 |
Log: |
7 |
Add git snapshot fixing bug 488674. Remove 9999-r10, bug 479812. |
8 |
|
9 |
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key 8E740238) |
10 |
|
11 |
Revision Changes Path |
12 |
1.55 net-irc/rbot/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/rbot/ChangeLog?rev=1.55&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/rbot/ChangeLog?rev=1.55&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/rbot/ChangeLog?r1=1.54&r2=1.55 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-irc/rbot/ChangeLog,v |
21 |
retrieving revision 1.54 |
22 |
retrieving revision 1.55 |
23 |
diff -u -r1.54 -r1.55 |
24 |
--- ChangeLog 20 Aug 2013 12:20:24 -0000 1.54 |
25 |
+++ ChangeLog 27 Oct 2013 18:24:53 -0000 1.55 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for net-irc/rbot |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-irc/rbot/ChangeLog,v 1.54 2013/08/20 12:20:24 patrick Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-irc/rbot/ChangeLog,v 1.55 2013/10/27 18:24:53 a3li Exp $ |
31 |
+ |
32 |
+*rbot-0.9.15_p20131020 (27 Oct 2013) |
33 |
+ |
34 |
+ 27 Oct 2013; Alex Legler <a3li@g.o> +rbot-0.9.15_p20131020.ebuild, |
35 |
+ -rbot-9999-r10.ebuild, +files/rbot-rakefile.patch: |
36 |
+ Add git snapshot fixing bug 488674. Remove 9999-r10, bug 479812. |
37 |
|
38 |
20 Aug 2013; Patrick Lauer <patrick@g.o> -rbot-0.9.10-r1.ebuild: |
39 |
QA: Remove version with unsatisfiable dependencies |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-irc/rbot/rbot-0.9.15_p20131020.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/rbot/rbot-0.9.15_p20131020.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/rbot/rbot-0.9.15_p20131020.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: rbot-0.9.15_p20131020.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-irc/rbot/rbot-0.9.15_p20131020.ebuild,v 1.1 2013/10/27 18:24:53 a3li Exp $ |
53 |
|
54 |
EAPI="2" |
55 |
USE_RUBY="ruby18 ruby19" |
56 |
|
57 |
inherit ruby-ng eutils user |
58 |
|
59 |
DESCRIPTION="rbot is a ruby IRC bot" |
60 |
HOMEPAGE="http://ruby-rbot.org/" |
61 |
SRC_URI="http://dev.a3li.li/gentoo/distfiles/${P}.tar.gz" |
62 |
|
63 |
LICENSE="|| ( feh GPL-2 )" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~x86" |
66 |
IUSE="spell aspell timezone translator shorturl nls dict figlet |
67 |
fortune cal host toilet" |
68 |
ILINGUAS="zh_CN zh_TW ru nl de fi fr it ja" |
69 |
S="${WORKDIR}/${PN}-master" |
70 |
|
71 |
for lang in $ILINGUAS; do |
72 |
IUSE="${IUSE} linguas_${lang}" |
73 |
done |
74 |
|
75 |
RDEPEND+=" |
76 |
spell? ( |
77 |
aspell? ( app-text/aspell ) |
78 |
!aspell? ( app-text/hunspell ) |
79 |
) |
80 |
figlet? ( app-misc/figlet ) |
81 |
toilet? ( app-misc/toilet ) |
82 |
fortune? ( games-misc/fortune-mod ) |
83 |
cal? ( || ( sys-apps/util-linux sys-freebsd/freebsd-ubin ) ) |
84 |
host? ( net-dns/bind-tools )" |
85 |
|
86 |
ruby_add_bdepend " |
87 |
nls? ( |
88 |
>=dev-ruby/ruby-gettext-2 |
89 |
dev-ruby/rake |
90 |
)" |
91 |
|
92 |
ruby_add_rdepend " |
93 |
dev-ruby/tokyocabinet |
94 |
timezone? ( dev-ruby/tzinfo ) |
95 |
translator? ( dev-ruby/mechanize ) |
96 |
shorturl? ( dev-ruby/shorturl ) |
97 |
nls? ( dev-ruby/ruby-gettext >=dev-ruby/locale-2.0.5-r2 ) |
98 |
dict? ( >=dev-ruby/ruby-dict-0.9.4-r2 )" |
99 |
|
100 |
RUBY_PATCHES=( "rbot-rakefile.patch" ) |
101 |
|
102 |
pkg_setup() { |
103 |
enewuser rbot -1 -1 /var/lib/rbot nobody |
104 |
} |
105 |
|
106 |
all_ruby_compile() { |
107 |
disable_rbot_plugin() { |
108 |
mv "${S}"/data/rbot/plugins/$1.rb{,.disabled} |
109 |
} |
110 |
use_rbot_plugin() { |
111 |
use $1 && return |
112 |
disable_rbot_plugin "$2" |
113 |
} |
114 |
rbot_conf() { |
115 |
echo "$1: $2" >> "${T}"/rbot.conf |
116 |
} |
117 |
use_rbot_conf_path() { |
118 |
use "$1" \ |
119 |
&& rbot_conf "$2" "$3" \ |
120 |
|| rbot_conf "$2" /bin/false |
121 |
} |
122 |
|
123 |
local spell_program="/usr/bin/hunspell -i" |
124 |
if use !spell; then |
125 |
disable_rbot_plugin spell |
126 |
spell_program="/bin/false" |
127 |
elif use aspell; then |
128 |
spell_program="/usr/bin/ispell-aspell" |
129 |
fi |
130 |
|
131 |
rbot_conf spell.program "${spell_program}" |
132 |
|
133 |
if use !figlet && use !toilet; then |
134 |
disable_rbot_plugin figlet |
135 |
fi |
136 |
|
137 |
use_rbot_conf_path figlet figlet.path /usr/bin/figlet |
138 |
use_rbot_conf_path toilet toilet.path /usr/bin/toilet |
139 |
|
140 |
use_rbot_plugin timezone time |
141 |
use_rbot_plugin translator translator |
142 |
use_rbot_plugin shorturl shortenurls |
143 |
use_rbot_plugin dict dictclient |
144 |
|
145 |
use_rbot_plugin fortune fortune |
146 |
use_rbot_conf_path fortune fortune.path /usr/bin/fortune |
147 |
|
148 |
use_rbot_plugin cal cal |
149 |
use_rbot_conf_path cal cal.path /usr/bin/cal |
150 |
|
151 |
use_rbot_plugin host host |
152 |
use_rbot_conf_path host host.path /usr/bin/host |
153 |
|
154 |
local rbot_datadir="${D}"/usr/share/rbot |
155 |
|
156 |
# This is unfortunately pretty manual at the moment, but it's just |
157 |
# to avoid having to run special scripts to package new versions |
158 |
# of rbot. The default if new languages are added that are not |
159 |
# considered for an opt-out here is to install them, so you just |
160 |
# need to add them later. |
161 |
if use nls; then |
162 |
strip-linguas ${ILINGUAS} |
163 |
if [[ -n ${LINGUAS} ]]; then |
164 |
# As the the language name used by the rbot data files does |
165 |
# not correspond to the ISO codes we usually use for LINGUAS, |
166 |
# the following list of local varables will work as a |
167 |
# dictionary to get the name used by rbot from the ISO code. |
168 |
local lang_rbot_zh_CN="traditional_chinese" |
169 |
local lang_rbot_ru="russian" |
170 |
local lang_rbot_nl="dutch" |
171 |
local lang_rbot_de="german" |
172 |
local lang_rbot_fi="finnish" |
173 |
local lang_rbot_fr="french" |
174 |
local lang_rbot_it="italian" |
175 |
local lang_rbot_ja="japanese" |
176 |
|
177 |
for lang in ${ILINGUAS}; do |
178 |
use linguas_${lang} && continue |
179 |
|
180 |
lang_varname="lang_rbot_${lang}" |
181 |
lang_rbot=${!lang_varname} |
182 |
|
183 |
rm -r \ |
184 |
"${S}"/data/rbot/languages/${lang_rbot}.lang \ |
185 |
"${S}"/data/rbot/templates/lart/larts-${lang_rbot} \ |
186 |
"${S}"/data/rbot/templates/lart/praises-${lang_rbot} \ |
187 |
"${S}"/data/rbot/templates/salut/salut-${lang_rbot} \ |
188 |
"${S}"/po/${lang} &>/dev/null |
189 |
done |
190 |
fi |
191 |
|
192 |
ruby /usr/bin/rake makemo || die "locale generation failed" |
193 |
fi |
194 |
} |
195 |
|
196 |
each_ruby_compile() { |
197 |
${RUBY} setup.rb config --prefix="/usr" \ |
198 |
|| die "setup.rb install failed" |
199 |
} |
200 |
|
201 |
each_ruby_install() { |
202 |
${RUBY} setup.rb install --prefix="${D}" \ |
203 |
|| die "setup.rb install failed" |
204 |
} |
205 |
|
206 |
all_ruby_install() { |
207 |
diropts -o rbot -g nobody -m 0700 |
208 |
keepdir /var/lib/rbot |
209 |
|
210 |
insinto /etc |
211 |
doins "${T}"/rbot.conf |
212 |
|
213 |
newinitd "${FILESDIR}/rbot.init2" rbot |
214 |
newconfd "${FILESDIR}/rbot.conf2" rbot |
215 |
} |
216 |
|
217 |
pkg_postinst() { |
218 |
elog "rbot can be started as a normal service." |
219 |
elog "Check /etc/conf.d/rbot file for more information about this feature." |
220 |
ewarn "DEPRECATION NOTICE:" |
221 |
ewarn "The bdb database backend is deprecated and only available on Ruby 1.8." |
222 |
ewarn "To migrate to the new tokyocabinet-based backend, change the core.db" |
223 |
ewarn "parameter in your bot's conf.yaml to 'tc' and restart rbot." |
224 |
ewarn "This procedure requires a Ruby version supporting both BDB and TC." |
225 |
} |