diff options
Diffstat (limited to 'dev-python/simpletal/simpletal-5.0.ebuild')
-rw-r--r-- | dev-python/simpletal/simpletal-5.0.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/simpletal/simpletal-5.0.ebuild b/dev-python/simpletal/simpletal-5.0.ebuild new file mode 100644 index 000000000000..741cb86e8498 --- /dev/null +++ b/dev-python/simpletal/simpletal-5.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/simpletal/simpletal-5.0.ebuild,v 1.1 2009/11/22 19:32:06 arfrever Exp $ + +EAPI="2" + +NEED_PYTHON="3.0" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils + +MY_PN="SimpleTAL" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="SimpleTAL is a stand alone Python implementation of the TAL, TALES and METAL specifications used in Zope to power HTML and XML templates." +HOMEPAGE="http://www.owlfish.com/software/simpleTAL/ http://pypi.python.org/pypi/SimpleTAL" +SRC_URI="http://www.owlfish.com/software/simpleTAL/downloads/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="5" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" +IUSE="examples" + +DEPEND="" +RDEPEND="" +RESTRICT_PYTHON_ABIS="2.*" + +S="${WORKDIR}/${MY_P}" + +src_test() { + sed -e "s/^TEMP_DIR=.*/TEMP_DIR=os.curdir/" -i tests/TALUtilsTests/TemplateCacheTestCases.py || die "sed failed" + + testing() { + "$(PYTHON)" runtests.py + } + python_execute_function testing +} + +src_install() { + distutils_src_install + + dohtml documentation/html/* + + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} |