diff options
Diffstat (limited to 'dev-python/quixote/quixote-2.8.ebuild')
-rw-r--r-- | dev-python/quixote/quixote-2.8.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/quixote/quixote-2.8.ebuild b/dev-python/quixote/quixote-2.8.ebuild new file mode 100644 index 00000000000..a347806bfcb --- /dev/null +++ b/dev-python/quixote/quixote-2.8.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 +} |