summaryrefslogtreecommitdiff
path: root/dev-python/simpletal/simpletal-4.2-r1.ebuild
blob: 9c0a71a2b6952a064afb9dc86fdc0e85d0f18839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
PYTHON_COMPAT=( python2_7 )

inherit distutils-r1

MY_PN="SimpleTAL"
MY_P="${MY_PN}-${PV}"

DESCRIPTION="Stand alone Python implementation of the Zope TAL, TALES and METAL specs for HTML/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="4"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
IUSE="doc examples"

DEPEND="dev-python/pyxml[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_P}"

python_prepare_all() {
	sed -e "s/^TEMP_DIR=.*/TEMP_DIR=os.curdir/" \
		-i tests/TALUtilsTests/TemplateCacheTestCases.py || die
	distutils-r1_python_prepare_all
}

python_test() {
	"${PYTHON}" runtests.py || die "tests failed"
}

python_install_all() {
	use doc && local HTML_DOCS=( documentation/html/. )
	use examples && local EXAMPLES=( examples/. )
	distutils-r1_python_install_all
}