diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-02-26 14:26:46 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-02-26 14:26:46 +0000 |
commit | 1068125758cab9a1d7f5e6df8ca4b6397b438ce8 (patch) | |
tree | e28fddea4da8a43468a17af4cfb95ae08e53b22d /dev-python/cherrypy | |
parent | Bump to 2.0.2, wrt bug #356131 (diff) | |
download | gentoo-2-1068125758cab9a1d7f5e6df8ca4b6397b438ce8.tar.gz gentoo-2-1068125758cab9a1d7f5e6df8ca4b6397b438ce8.tar.bz2 gentoo-2-1068125758cab9a1d7f5e6df8ca4b6397b438ce8.zip |
Version bump.
(Portage version: 2.2.0_alpha25_p8/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/cherrypy')
-rw-r--r-- | dev-python/cherrypy/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/cherrypy/cherrypy-3.2.0.ebuild | 55 |
2 files changed, 63 insertions, 2 deletions
diff --git a/dev-python/cherrypy/ChangeLog b/dev-python/cherrypy/ChangeLog index 4f8cd593c7c8..1db521726e5b 100644 --- a/dev-python/cherrypy/ChangeLog +++ b/dev-python/cherrypy/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/cherrypy -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/cherrypy/ChangeLog,v 1.40 2010/11/14 21:08:12 arfrever Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/cherrypy/ChangeLog,v 1.41 2011/02/26 14:26:46 arfrever Exp $ + +*cherrypy-3.2.0 (26 Feb 2011) + + 26 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +cherrypy-3.2.0.ebuild: + Version bump. *cherrypy-3.2.0_rc1 (14 Nov 2010) diff --git a/dev-python/cherrypy/cherrypy-3.2.0.ebuild b/dev-python/cherrypy/cherrypy-3.2.0.ebuild new file mode 100644 index 000000000000..d609cce0767e --- /dev/null +++ b/dev-python/cherrypy/cherrypy-3.2.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/cherrypy/cherrypy-3.2.0.ebuild,v 1.1 2011/02/26 14:26:46 arfrever Exp $ + +EAPI="3" +SUPPORT_PYTHON_ABIS="1" +DISTUTILS_SRC_TEST="nosetests" + +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="~amd64 ~ia64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-macos" +IUSE="doc" + +DEPEND="dev-python/setuptools" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + distutils_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" nosetests -P -s py$(python_get_version --major)/cherrypy/test + } + python_execute_function testing +} + +src_install() { + distutils_src_install + + delete_tests() { + rm -fr "${ED}$(python_get_sitedir)/cherrypy/test" + } + python_execute_function -q delete_tests + + if use doc; then + insinto /usr/share/doc/${PF} + # py2/cherrypy/tutorial and py3/cherrypy/tutorial are identical. + doins -r py3/cherrypy/tutorial || die "Installation of documentation failed" + fi +} |