blob: b6c839af7617092a2e63b214946561f4c9d68140 (
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
42
43
44
45
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
# Appears to be written only for py2
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1 flag-o-matic
MY_P="${P/q/Q}"
DESCRIPTION="Python HTML templating framework for developing web applications"
HOMEPAGE="http://quixote.ca"
SRC_URI="http://quixote.ca/releases/${MY_P}.tar.gz"
LICENSE="CNRI-QUIXOTE-2.4"
SLOT="0"
KEYWORDS="amd64 ~ia64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="doc test"
DEPEND="doc? ( dev-python/docutils[${PYTHON_USEDEP}] )
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
S="${WORKDIR}"/${MY_P}
# tests require a running quixote server, prob. apt. post install. Tried the demo one but no
RESTRICT="test"
python_compile() {
local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
distutils-r1_python_compile
}
python_compile_all() {
use doc && emake -C doc
}
python_test() {
nosetests tests || die "tests failed"
}
python_install_all() {
local HTML_DOCS=( doc/. )
distutils-r1_python_install_all
}
|