blob: 0a53b2682b50d58ccecb909ddbdacf188c2981b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/rbot/rbot-0.9.7.ebuild,v 1.7 2005/09/17 15:48:26 swegener Exp $
DESCRIPTION="rbot is a ruby IRC bot"
HOMEPAGE="http://www.linuxbrit.co.uk/rbot/"
SRC_URI="http://www.linuxbrit.co.uk/downloads/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="x86 ~ppc ~sparc ~amd64"
IUSE="doc spell"
RDEPEND="|| (
>=virtual/ruby-1.8
(
=virtual/ruby-1.6*
|| (
dev-ruby/shim-ruby18
dev-ruby/rexml
)
)
)
dev-ruby/ruby-bdb
spell? ( app-text/ispell )"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
src_unpack() {
unpack ${A}
sed -i -e s:rbotconf:/etc/rbot: ${S}/rbot.rb || die "sed failed"
}
src_install() {
local SITERUBY="$(ruby -r rbconfig -e 'print Config::CONFIG["sitelibdir"]')"
newbin rbot.rb rbot || die "newbin failed"
insinto "${SITERUBY}"
doins -r rbot || die "doins failed"
insinto /etc/rbot
doins rbotconf/* || die "doins failed"
dodoc AUTHORS ChangeLog INSTALL REQUIREMENTS TODO
ude doc && dohtml -r doc/*
}
pkg_postinst() {
einfo
einfo "Now edit your /etc/rbot/conf.rbot"
einfo
}
|