summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-irc/rbot/rbot-0.9.7.ebuild')
-rw-r--r--net-irc/rbot/rbot-0.9.7.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/net-irc/rbot/rbot-0.9.7.ebuild b/net-irc/rbot/rbot-0.9.7.ebuild
new file mode 100644
index 000000000000..7c539f02f3cd
--- /dev/null
+++ b/net-irc/rbot/rbot-0.9.7.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2004 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.1 2004/07/17 14:32:32 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"
+IUSE="spell"
+
+RDEPEND="virtual/ruby
+ dev-ruby/ruby-bdb
+ dev-ruby/rexml
+ spell? ( app-text/ispell )"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ 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
+
+ dodir ${SITERUBY}
+ cp -a rbot ${D}/${SITERUBY} || die
+
+ dodir /etc/rbot
+ cp -r rbotconf/* ${D}/etc/rbot || die
+
+ dodoc AUTHORS ChangeLog INSTALL REQUIREMENTS TODO
+ dohtml -r doc/*
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Now edit your /etc/rbot/conf.rbot"
+ einfo
+}