blob: 578574228e5473c40955398dbbfd540f80ce4cd2 [file] [log] [blame]
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/cherrypy/cherrypy-3.1.2.ebuild,v 1.8 2010/11/14 21:06:25 arfrever Exp $
EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
inherit distutils
MY_P="CherryPy-${PV}"
DESCRIPTION="CherryPy is a pythonic, object-oriented HTTP framework"
HOMEPAGE="http://www.cherrypy.org/ http://pypi.python.org/pypi/CherryPy"
SRC_URI="http://download.cherrypy.org/${PN}/${PV}/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="*"
IUSE="doc"
DEPEND=""
RDEPEND=""
S="${WORKDIR}/${MY_P}"
src_prepare() {
sed -i \
-e 's/"cherrypy.tutorial",//' \
-e "/('cherrypy\/tutorial',/, /),/d" \
setup.py || die "sed failed"
}
src_test() {
testing() {
PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" cherrypy/test/test.py --dumb
}
python_execute_function testing
}
src_install() {
distutils_src_install
if use doc; then
insinto /usr/share/doc/${PF}
doins -r cherrypy/tutorial
fi
}