1 |
flameeyes 08/07/02 14:04:55 |
2 |
|
3 |
Modified: rbot-9999-r10.ebuild ChangeLog |
4 |
Added: rbot-0.9.11_rc1.ebuild |
5 |
Log: |
6 |
Add an ebuild for the first release candidate of the new 0.9.11 rbot. As the new version is long overdue, I'm not masking it for now, but I am dropping all the keywords beside the one where I tested it. Note that this RC does not contain nls support for a problem with packaging. Fixed up the live ebuild so that it can be re-used for the next RC too. |
7 |
(Portage version: 2.2_rc1/cvs/Linux 2.6.25-gentoo-r4 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.2 net-irc/rbot/rbot-9999-r10.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/rbot/rbot-9999-r10.ebuild?rev=1.2&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/rbot/rbot-9999-r10.ebuild?rev=1.2&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/rbot/rbot-9999-r10.ebuild?r1=1.1&r2=1.2 |
15 |
|
16 |
Index: rbot-9999-r10.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-irc/rbot/rbot-9999-r10.ebuild,v |
19 |
retrieving revision 1.1 |
20 |
retrieving revision 1.2 |
21 |
diff -u -r1.1 -r1.2 |
22 |
--- rbot-9999-r10.ebuild 30 Jun 2008 16:53:24 -0000 1.1 |
23 |
+++ rbot-9999-r10.ebuild 2 Jul 2008 14:04:55 -0000 1.2 |
24 |
@@ -1,19 +1,19 @@ |
25 |
# Copyright 1999-2008 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-irc/rbot/rbot-9999-r10.ebuild,v 1.1 2008/06/30 16:53:24 flameeyes Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-irc/rbot/rbot-9999-r10.ebuild,v 1.2 2008/07/02 14:04:55 flameeyes Exp $ |
29 |
|
30 |
inherit ruby eutils |
31 |
|
32 |
-[[ ${PV} == "9999" ]] && inherit git |
33 |
+[[ ${PV} == *"9999" ]] && inherit git |
34 |
|
35 |
DESCRIPTION="rbot is a ruby IRC bot" |
36 |
HOMEPAGE="http://ruby-rbot.org/" |
37 |
|
38 |
-LICENSE="as-is" |
39 |
+LICENSE="GPL-2 as-is" |
40 |
SLOT="0" |
41 |
KEYWORDS="" |
42 |
IUSE="spell aspell timezone translator shorturl nls dict figlet |
43 |
- fortune cal host nls toilet hunspell" |
44 |
+ fortune cal host toilet hunspell" |
45 |
ILINGUAS="zh_CN zh_TW ru nl de fr it ja" |
46 |
|
47 |
for lang in $ILINGUAS; do |
48 |
@@ -38,16 +38,16 @@ |
49 |
toilet? ( app-misc/toilet ) |
50 |
fortune? ( games-misc/fortune-mod ) |
51 |
cal? ( || ( sys-apps/util-linux sys-freebsd/freebsd-ubin ) ) |
52 |
- host? ( net-dns/bind-tools ) |
53 |
- nls? ( dev-ruby/ruby-gettext )" |
54 |
+ host? ( net-dns/bind-tools )" |
55 |
DEPEND="nls? ( dev-ruby/ruby-gettext )" |
56 |
|
57 |
-if [[ ${PV} == "9999" ]]; then |
58 |
+if [[ ${PV} == *"9999" ]]; then |
59 |
SRC_URI="" |
60 |
EGIT_REPO_URI="git://ruby-rbot.org/rbot.git" |
61 |
else |
62 |
- # wait for the new releases... |
63 |
- SRC_URI="" |
64 |
+ MY_P="${P/_/-}" |
65 |
+ S="${WORKDIR}/${P%_*}" |
66 |
+ SRC_URI="http://ruby-rbot.org/download/${MY_P}-no-mo.tgz" |
67 |
fi |
68 |
|
69 |
pkg_setup() { |
70 |
@@ -55,12 +55,15 @@ |
71 |
} |
72 |
|
73 |
src_unpack() { |
74 |
- [[ ${PV} == "9999" ]] || return 0 |
75 |
- git_src_unpack |
76 |
+ if [[ ${PV} == *"9999" ]]; then |
77 |
+ git_src_unpack |
78 |
|
79 |
- cd "${S}" |
80 |
- sed -i -e '/\$version=/s:".\+":"'9999'":' bin/rbot \ |
81 |
- || die "Unable to fix rbot script version." |
82 |
+ cd "${S}" |
83 |
+ sed -i -e '/\$version=/s:".\+":"'${PV}'":' bin/rbot \ |
84 |
+ || die "Unable to fix rbot script version." |
85 |
+ else |
86 |
+ unpack ${A} |
87 |
+ fi |
88 |
} |
89 |
|
90 |
src_compile() { |
91 |
|
92 |
|
93 |
|
94 |
1.33 net-irc/rbot/ChangeLog |
95 |
|
96 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/rbot/ChangeLog?rev=1.33&view=markup |
97 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/rbot/ChangeLog?rev=1.33&content-type=text/plain |
98 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/rbot/ChangeLog?r1=1.32&r2=1.33 |
99 |
|
100 |
Index: ChangeLog |
101 |
=================================================================== |
102 |
RCS file: /var/cvsroot/gentoo-x86/net-irc/rbot/ChangeLog,v |
103 |
retrieving revision 1.32 |
104 |
retrieving revision 1.33 |
105 |
diff -u -r1.32 -r1.33 |
106 |
--- ChangeLog 30 Jun 2008 16:53:24 -0000 1.32 |
107 |
+++ ChangeLog 2 Jul 2008 14:04:55 -0000 1.33 |
108 |
@@ -1,6 +1,16 @@ |
109 |
# ChangeLog for net-irc/rbot |
110 |
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
111 |
-# $Header: /var/cvsroot/gentoo-x86/net-irc/rbot/ChangeLog,v 1.32 2008/06/30 16:53:24 flameeyes Exp $ |
112 |
+# $Header: /var/cvsroot/gentoo-x86/net-irc/rbot/ChangeLog,v 1.33 2008/07/02 14:04:55 flameeyes Exp $ |
113 |
+ |
114 |
+*rbot-0.9.11_rc1 (02 Jul 2008) |
115 |
+ |
116 |
+ 02 Jul 2008; Diego Pettenò <flameeyes@g.o> |
117 |
+ +rbot-0.9.11_rc1.ebuild, rbot-9999-r10.ebuild: |
118 |
+ Add an ebuild for the first release candidate of the new 0.9.11 rbot. As |
119 |
+ the new version is long overdue, I'm not masking it for now, but I am |
120 |
+ dropping all the keywords beside the one where I tested it. Note that this |
121 |
+ RC does not contain nls support for a problem with packaging. Fixed up the |
122 |
+ live ebuild so that it can be re-used for the next RC too. |
123 |
|
124 |
*rbot-9999-r10 (30 Jun 2008) |
125 |
|
126 |
|
127 |
|
128 |
|
129 |
1.1 net-irc/rbot/rbot-0.9.11_rc1.ebuild |
130 |
|
131 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/rbot/rbot-0.9.11_rc1.ebuild?rev=1.1&view=markup |
132 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/rbot/rbot-0.9.11_rc1.ebuild?rev=1.1&content-type=text/plain |
133 |
|
134 |
Index: rbot-0.9.11_rc1.ebuild |
135 |
=================================================================== |
136 |
# Copyright 1999-2008 Gentoo Foundation |
137 |
# Distributed under the terms of the GNU General Public License v2 |
138 |
# $Header: /var/cvsroot/gentoo-x86/net-irc/rbot/rbot-0.9.11_rc1.ebuild,v 1.1 2008/07/02 14:04:55 flameeyes Exp $ |
139 |
|
140 |
inherit ruby eutils |
141 |
|
142 |
[[ ${PV} == *"9999" ]] && inherit git |
143 |
|
144 |
DESCRIPTION="rbot is a ruby IRC bot" |
145 |
HOMEPAGE="http://ruby-rbot.org/" |
146 |
|
147 |
LICENSE="GPL-2 as-is" |
148 |
SLOT="0" |
149 |
KEYWORDS="~amd64" |
150 |
IUSE="spell aspell timezone translator shorturl dict figlet |
151 |
fortune cal host toilet hunspell" |
152 |
ILINGUAS="zh_CN zh_TW ru nl de fr it ja" |
153 |
|
154 |
for lang in $ILINGUAS; do |
155 |
IUSE="${IUSE} linguas_${lang}" |
156 |
done |
157 |
|
158 |
RDEPEND=">=virtual/ruby-1.8 |
159 |
dev-ruby/ruby-bdb |
160 |
timezone? ( dev-ruby/tzinfo ) |
161 |
spell? ( |
162 |
aspell? ( app-text/aspell ) |
163 |
!aspell? ( |
164 |
hunspell? ( app-text/hunspell ) |
165 |
!hunspell? ( app-text/ispell ) |
166 |
) |
167 |
) |
168 |
translator? ( dev-ruby/mechanize ) |
169 |
shorturl? ( dev-ruby/shorturl ) |
170 |
dict? ( dev-ruby/ruby-dict ) |
171 |
figlet? ( app-misc/figlet ) |
172 |
toilet? ( app-misc/toilet ) |
173 |
fortune? ( games-misc/fortune-mod ) |
174 |
cal? ( || ( sys-apps/util-linux sys-freebsd/freebsd-ubin ) ) |
175 |
host? ( net-dns/bind-tools )" |
176 |
|
177 |
if [[ ${PV} == *"9999" ]]; then |
178 |
SRC_URI="" |
179 |
EGIT_REPO_URI="git://ruby-rbot.org/rbot.git" |
180 |
else |
181 |
MY_P="${P/_/-}" |
182 |
S="${WORKDIR}/${P%_*}" |
183 |
SRC_URI="http://ruby-rbot.org/download/${MY_P}-no-mo.tgz" |
184 |
fi |
185 |
|
186 |
pkg_setup() { |
187 |
enewuser rbot -1 -1 /var/lib/rbot nobody |
188 |
} |
189 |
|
190 |
src_unpack() { |
191 |
if [[ ${PV} == *"9999" ]]; then |
192 |
git_src_unpack |
193 |
|
194 |
cd "${S}" |
195 |
sed -i -e '/\$version=/s:".\+":"'${PV}'":' bin/rbot \ |
196 |
|| die "Unable to fix rbot script version." |
197 |
else |
198 |
unpack ${A} |
199 |
fi |
200 |
} |
201 |
|
202 |
src_compile() { |
203 |
disable_rbot_plugin() { |
204 |
mv "${S}"/data/rbot/plugins/$1.rb{,.disabled} |
205 |
} |
206 |
use_rbot_plugin() { |
207 |
use $1 && return |
208 |
disable_rbot_plugin "$2" |
209 |
} |
210 |
rbot_conf() { |
211 |
echo "$1: $2" >> "${T}"/rbot.conf |
212 |
} |
213 |
use_rbot_conf_path() { |
214 |
use "$1" \ |
215 |
&& rbot_conf "$2" "$3" \ |
216 |
|| rbot_conf "$2" /bin/false |
217 |
} |
218 |
|
219 |
local spell_program="/usr/bin/ispell" |
220 |
if use !spell; then |
221 |
disable_rbot_plugin spell |
222 |
spell_program="/bin/false" |
223 |
elif use aspell; then |
224 |
spell_program="/usr/bin/ispell-aspell" |
225 |
elif use hunspell; then |
226 |
spell_program="/usr/bin/hunspell -i" |
227 |
fi |
228 |
|
229 |
rbot_conf spell.program "${spell_program}" |
230 |
|
231 |
if use !figlet && use !toilet; then |
232 |
disable_rbot_plugin figlet |
233 |
fi |
234 |
|
235 |
use_rbot_conf_path figlet figlet.path /usr/bin/figlet |
236 |
use_rbot_conf_path toilet toilet.path /usr/bin/toilet |
237 |
|
238 |
use_rbot_plugin timezone time |
239 |
use_rbot_plugin translator translator |
240 |
use_rbot_plugin shorturl shortenurls |
241 |
use_rbot_plugin dict dictclient |
242 |
|
243 |
use_rbot_plugin fortune fortune |
244 |
use_rbot_conf_path fortune fortune.path /usr/bin/fortune |
245 |
|
246 |
use_rbot_plugin cal cal |
247 |
use_rbot_conf_path cal cal.path /usr/bin/cal |
248 |
|
249 |
use_rbot_plugin host host |
250 |
use_rbot_conf_path host host.path /usr/bin/host |
251 |
|
252 |
local rbot_datadir="${D}"/usr/share/rbot |
253 |
|
254 |
ruby_econf || die "ruby_econf failed" |
255 |
} |
256 |
|
257 |
src_install() { |
258 |
${RUBY} setup.rb install --prefix="${D}" \ |
259 |
|| die "setup.rb install failed" |
260 |
|
261 |
diropts -o rbot -g nobody -m 0700 |
262 |
keepdir /var/lib/rbot |
263 |
|
264 |
insinto /etc |
265 |
doins "${T}"/rbot.conf |
266 |
|
267 |
newinitd "${FILESDIR}/rbot.init" rbot |
268 |
newconfd "${FILESDIR}/rbot.conf" rbot |
269 |
} |
270 |
|
271 |
pkg_postinst() { |
272 |
einfo |
273 |
elog "rbot now can be started as a normal service." |
274 |
elog "Check /etc/conf.d/rbot file for more information about this feature." |
275 |
einfo |
276 |
} |
277 |
|
278 |
|
279 |
|
280 |
-- |
281 |
gentoo-commits@l.g.o mailing list |