diff options
author | Dirkjan Ochtman <djc@gentoo.org> | 2011-09-16 08:51:28 +0000 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2011-09-16 08:51:28 +0000 |
commit | 522b81c3b3218c602652b9f07736da290010ad53 (patch) | |
tree | e4f3b6244d93e4468005c922d124cc632d0e537d /dev-python/webtest/webtest-1.3.ebuild | |
parent | Fix unpack stage. Closes bug #383185. (diff) | |
download | historical-522b81c3b3218c602652b9f07736da290010ad53.tar.gz historical-522b81c3b3218c602652b9f07736da290010ad53.tar.bz2 historical-522b81c3b3218c602652b9f07736da290010ad53.zip |
Version bump webtest to 1.3.
Package-Manager: portage-2.1.10.15/cvs/Linux x86_64
Diffstat (limited to 'dev-python/webtest/webtest-1.3.ebuild')
-rw-r--r-- | dev-python/webtest/webtest-1.3.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-python/webtest/webtest-1.3.ebuild b/dev-python/webtest/webtest-1.3.ebuild new file mode 100644 index 000000000000..912550658e74 --- /dev/null +++ b/dev-python/webtest/webtest-1.3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/webtest/webtest-1.3.ebuild,v 1.1 2011/09/16 08:51:28 djc Exp $ + +EAPI="3" +PYTHON_DEPEND="2:2.5" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="2.4 3.*" +DISTUTILS_SRC_TEST="nosetests" + +inherit distutils eutils + +MY_PN="WebTest" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Helper to test WSGI applications" +HOMEPAGE="http://pythonpaste.org/webtest/ http://pypi.python.org/pypi/WebTest" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +RDEPEND=">=dev-python/webob-0.9.2" +DEPEND="${RDEPEND} + dev-python/setuptools + doc? ( dev-python/sphinx ) + test? ( dev-python/pyquery )" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + distutils_src_prepare + epatch "${FILESDIR}/${P}-doctest-ellipsis.patch" +} + +src_compile() { + distutils_src_compile + + if use doc; then + einfo "Generation of documentation" + sphinx-build docs html || die "Building of documentation failed" + fi +} + +src_install() { + distutils_src_install + + # Avoid future-import bug on py2.5.* - lint3 is py3 anyway + delete_lint3() { + [[ "${PYTHON_ABI}" == 3.* ]] && return + rm "${ED}$(python_get_sitedir)/webtest/lint3.py" + } + python_execute_function -q delete_lint3 + + if use doc; then + dohtml -r html/* || die "Error installing docs" + fi +} |