diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-11-30 03:10:32 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-11-30 03:10:32 +0000 |
commit | 76b5eb85d8b3d60b55c07256b2a4bfbf1273184d (patch) | |
tree | aad485e733cfa95872d980bd6f0973d69cb5237e /dev-python/nevow/nevow-0.10.0.ebuild | |
parent | Fix src_compile(). (diff) | |
download | gentoo-2-76b5eb85d8b3d60b55c07256b2a4bfbf1273184d.tar.gz gentoo-2-76b5eb85d8b3d60b55c07256b2a4bfbf1273184d.tar.bz2 gentoo-2-76b5eb85d8b3d60b55c07256b2a4bfbf1273184d.zip |
Version bump. Set SUPPORT_PYTHON_ABIS.
(Portage version: 14920-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/nevow/nevow-0.10.0.ebuild')
-rw-r--r-- | dev-python/nevow/nevow-0.10.0.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/dev-python/nevow/nevow-0.10.0.ebuild b/dev-python/nevow/nevow-0.10.0.ebuild new file mode 100644 index 000000000000..fb431eeb96fd --- /dev/null +++ b/dev-python/nevow/nevow-0.10.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/nevow/nevow-0.10.0.ebuild,v 1.1 2009/11/30 03:10:32 arfrever Exp $ + +EAPI="2" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils multilib twisted + +MY_PN="Nevow" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A web templating framework that provides LivePage, an automatic AJAX toolkit." +HOMEPAGE="http://divmod.org/trac/wiki/DivmodNevow http://pypi.python.org/pypi/Nevow" +SRC_URI="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" +IUSE="doc" + +DEPEND=">=dev-python/twisted-2.5 + >=dev-python/twisted-web-8.1.0 + net-zope/zope-interface" +RDEPEND="${DEPEND}" +RESTRICT_PYTHON_ABIS="3.*" + +S="${WORKDIR}/${MY_P}" + +PYTHON_MODNAME="formless nevow" + +src_test() { + testing() { + PYTHONPATH="build-${PYTHON_ABI}/lib" trial formless || die "formless trial failed with Python ${PYTHON_ABI}" + PYTHONPATH="build-${PYTHON_ABI}/lib" trial nevow || die "nevow trial failed with Python ${PYTHON_ABI}" + } + python_execute_function testing +} + +src_install() { + distutils_src_install + + doman doc/man/nevow-xmlgettext.1 + if use doc; then + insinto /usr/share/doc/${PF}/ + doins -r doc/{howto,html,old} examples + fi + rm -fr "${D}usr/doc" +} + +update_nevow_plugin_cache() { + einfo "Updating nevow plugin cache..." + "$(PYTHON)" -c 'from twisted.plugin import IPlugin, getPlugIns;from nevow import plugins; list(getPlugIns(IPlugin, plugins))' +} + +pkg_postrm() { + twisted_pkg_postrm + python_execute_function update_nevow_plugin_cache +} + +pkg_postinst() { + twisted_pkg_postinst + python_execute_function update_nevow_plugin_cache +} |