diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-11-14 21:08:12 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-11-14 21:08:12 +0000 |
commit | 2f7720704bba96db6c1b195eda90eaa6aa427eaa (patch) | |
tree | 050862abe844a3f56b5ee51bc162ef46ab8c9244 /dev-python/cherrypy | |
parent | Update DESCRIPTION. (diff) | |
download | gentoo-2-2f7720704bba96db6c1b195eda90eaa6aa427eaa.tar.gz gentoo-2-2f7720704bba96db6c1b195eda90eaa6aa427eaa.tar.bz2 gentoo-2-2f7720704bba96db6c1b195eda90eaa6aa427eaa.zip |
Version bump (bug #319037).
(Portage version: 2.2.0_alpha4_p23/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/cherrypy')
-rw-r--r-- | dev-python/cherrypy/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/cherrypy/cherrypy-3.2.0_rc1.ebuild | 70 |
2 files changed, 77 insertions, 1 deletions
diff --git a/dev-python/cherrypy/ChangeLog b/dev-python/cherrypy/ChangeLog index bcdfea5b1f9c..4f8cd593c7c8 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.39 2010/04/02 18:49:55 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/cherrypy/ChangeLog,v 1.40 2010/11/14 21:08:12 arfrever Exp $ + +*cherrypy-3.2.0_rc1 (14 Nov 2010) + + 14 Nov 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +cherrypy-3.2.0_rc1.ebuild: + Version bump (bug #319037). 02 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> cherrypy-2.3.0.ebuild, cherrypy-3.1.2.ebuild: diff --git a/dev-python/cherrypy/cherrypy-3.2.0_rc1.ebuild b/dev-python/cherrypy/cherrypy-3.2.0_rc1.ebuild new file mode 100644 index 000000000000..83b8f6e2dbc5 --- /dev/null +++ b/dev-python/cherrypy/cherrypy-3.2.0_rc1.ebuild @@ -0,0 +1,70 @@ +# 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.2.0_rc1.ebuild,v 1.1 2010/11/14 21:08:12 arfrever Exp $ + +EAPI="3" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils + +MY_PV="${PV/_/}" +MY_P="CherryPy-${MY_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}/${MY_PV}/${MY_P}.tar.gz + http://download.cherrypy.org/${PN}/${MY_PV}/${MY_P}-py3.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}" + +DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1" + +src_unpack() { + unpack ${MY_P}-py3.tar.gz + mv "${S}" "${S}-py3" + unpack ${MY_P}.tar.gz +} + +src_prepare() { + preparation() { + if [[ "${PYTHON_ABI}" == 3.* ]]; then + pushd "${S}-py3" > /dev/null + sed -e "s/except cherrypy.InternalRedirect, ir:/except cherrypy.InternalRedirect as ir:/" -i cherrypy/_cpnative_server.py + popd > /dev/null + + cp -pr "${S}-py3" "${S}-${PYTHON_ABI}" || return 1 + else + cp -pr "${S}" "${S}-${PYTHON_ABI}" || return 1 + fi + } + python_execute_function preparation +} + +src_test() { + testing() { + PYTHONPATH="build/lib" "$(PYTHON)" cherrypy/test/test.py --dumb + } + python_execute_function -s testing +} + +src_install() { + distutils_src_install + + if use doc; then + insinto /usr/share/doc/${PF} + doins -r cherrypy/tutorial || die "Installation of documentation failed" + fi + + delete_documentation_and_tests() { + rm -fr "${ED}$(python_get_sitedir)/cherrypy/"{test,tutorial} + } + python_execute_function -q delete_documentation_and_tests +} |