# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

PYTHON_COMPAT=( python2_6 python2_7 )

inherit python-single-r1 git-2

DESCRIPTION="xib-bot is an XMPP-IRC bridge bot written in python."
HOMEPAGE="http://changaco.net/code/xib/"
EGIT_REPO_URI="git://github.com/Changaco/xib.git"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

RDEPEND="dev-python/xmppony
		dev-python/argparse"

src_install() {
	python_fix_shebang start_bots_from_xml_config.py
	python_moduleroot=xib-bot
	python_domodule *.py
	dodoc README.md example_config.xml
	newinitd "${FILESDIR}/xib-bot.initd" xib-bot
}
