# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit distutils eutils DESCRIPTION="Bitten is a Python-based framework for collecting various software metrics via continuous integration." HOMEPAGE="http://bitten.edgewall.org" MY_PV=${PV/_beta/b} SRC_URI="mirror://sourceforge/bitten/Bitten-${MY_PV}.tar.gz" LICENSE="BSD-revised" KEYWORDS="~x86 ~amd64" IUSE="+master" SLOT="0" RDEPEND="master? ( =www-apps/trac-0.11* ) =dev-lang/python-2*" BDEPEND=" >=dev-python/setuptools-0.6_rc1" S="${WORKDIR}/Bitten-${MY_PV}" src_install() { if use master; then distutils_src_install; else distutils_src_install $(use_with master); fi } src_test() { "${python}" setup.py test || die "tests failed" } pkg_postinst() { elog "To enable the Bitten plugin in your Trac environments, you have to add:" elog " [components]" elog " bitten.* = enabled" elog "to your trac.ini files." }