diff options
author | 2005-12-05 17:16:11 +0000 | |
---|---|---|
committer | 2005-12-05 17:16:11 +0000 | |
commit | 56821a4670a68e6491b6381f92f88aba61462a91 (patch) | |
tree | 5adef294a4a172d76d41dfe05038dde8bf658e14 /dev-python/nevow/nevow-0.6.0.ebuild | |
parent | fix changelog header (diff) | |
download | gentoo-2-56821a4670a68e6491b6381f92f88aba61462a91.tar.gz gentoo-2-56821a4670a68e6491b6381f92f88aba61462a91.tar.bz2 gentoo-2-56821a4670a68e6491b6381f92f88aba61462a91.zip |
Version bump, set myself as maintainer.
(Portage version: 2.0.53)
Diffstat (limited to 'dev-python/nevow/nevow-0.6.0.ebuild')
-rw-r--r-- | dev-python/nevow/nevow-0.6.0.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/nevow/nevow-0.6.0.ebuild b/dev-python/nevow/nevow-0.6.0.ebuild new file mode 100644 index 000000000000..c8f2a0c3aa7b --- /dev/null +++ b/dev-python/nevow/nevow-0.6.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/nevow/nevow-0.6.0.ebuild,v 1.1 2005/12/05 17:16:11 marienz Exp $ + +inherit distutils + +DESCRIPTION="A web templating framework that provides LivePage, an automatic AJAX toolkit." +HOMEPAGE="http://divmod.org/trac/wiki/DivmodNevow" +SRC_URI="mirror://gentoo/Nevow-0.6.0.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~ppc ~sparc ~x86" +IUSE="doc test" + +DEPEND=">=dev-lang/python-2.2 + test? ( dev-python/twisted ) + doc? ( dev-python/docutils )" + +S=${WORKDIR}/Nevow-${PV} + +PYTHON_MODNAME="nevow formless" + +src_test() { + trial -R nevow || die "nevow trial failed" + trial -R formless || die "formless trial failed" +} + +src_compile() { + distutils_src_compile + if use doc; then + cd doc + python make.py || die "documentation building failed" + fi +} + +src_install() { + distutils_src_install + if use doc; then + insinto /usr/share/doc/${PF}/ + doins -r doc/txt doc/html examples + fi +} + +# "fix" a distutils.eclass buglet: PYTHON_MODNAME shouldn't be quoted + +pkg_postinst() { + if has_version ">=dev-lang/python-2.3"; then + python_version + for pymod in ${PYTHON_MODNAME}; do + if [ -d "${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/${pymod}" ]; then + python_mod_optimize ${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/${pymod} + fi + done + fi +} |