summaryrefslogtreecommitdiff
blob: 1f57c703abee13db4a6c26a0b78d6e0be131b91d (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/supybot-plugins/supybot-plugins-20060723.ebuild,v 1.2 2007/09/28 07:19:20 mr_bones_ Exp $

inherit python

MY_PNAME="Supybot-plugins"
MY_P="${MY_PNAME}-${PV}"

DESCRIPTION="Official set of extra plugins for Supybot"
HOMEPAGE="http://supybot.com"
SRC_URI="mirror://sourceforge/supybot/${MY_P}.tar.bz2"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND=""
RDEPEND="net-irc/supybot"

src_install() {
	cd "${WORKDIR}"/${MY_P}
	python_version
	PLUGIN_BASE="/usr/$(get_libdir)/python${PYVER}/site-packages/supybot/plugins"
	for plugin in *; do
		insinto ${PLUGIN_BASE}/${plugin}
		doins $plugin/* || die "Install failed"
	done
}

pkg_postinst() {
	python_mod_optimize	"${ROOT}"usr/$(get_libdir)/python*/site-packages/supybot/plugins
}

pkg_postrm() {
	python_mod_cleanup "${ROOT}"usr/$(get_libdir)/python*/site-packages/supybot/plugins
}