diff options
author | Ian Delaney <idella4@gentoo.org> | 2013-06-13 12:34:21 +0000 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2013-06-13 12:34:21 +0000 |
commit | 6d1584e31483e7d2e46c8277767b22f2b9e350c1 (patch) | |
tree | 90286327c77fc3f74563505337dda40cc323bc91 /dev-python/frozen-flask/frozen-flask-0.9-r1.ebuild | |
parent | Depend on SLOT=0 of media-libs/openjpeg (bug 440086) (diff) | |
download | gentoo-2-6d1584e31483e7d2e46c8277767b22f2b9e350c1.tar.gz gentoo-2-6d1584e31483e7d2e46c8277767b22f2b9e350c1.tar.bz2 gentoo-2-6d1584e31483e7d2e46c8277767b22f2b9e350c1.zip |
revbump; migrate -> disutils-r1, add doc build
(Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/frozen-flask/frozen-flask-0.9-r1.ebuild')
-rw-r--r-- | dev-python/frozen-flask/frozen-flask-0.9-r1.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/frozen-flask/frozen-flask-0.9-r1.ebuild b/dev-python/frozen-flask/frozen-flask-0.9-r1.ebuild new file mode 100644 index 000000000000..457551c3d82e --- /dev/null +++ b/dev-python/frozen-flask/frozen-flask-0.9-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/frozen-flask/frozen-flask-0.9-r1.ebuild,v 1.1 2013/06/13 12:34:21 idella4 Exp $ + +EAPI=5 +PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy2_0 ) + +inherit distutils-r1 + +MY_PN="Frozen-Flask" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Freezes a Flask application into a set of static files." +HOMEPAGE="https://github.com/SimonSapin/Frozen-Flask http://pypi.python.org/pypi/Frozen-Flask" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RDEPEND=">=dev-python/flask-0.7[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/nose[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MY_P}" + +python_compile_all() { + if use doc; then + sed -e 's:^intersphinx_mapping:#intersphinx_mapping:' -i docs/conf.py || die + mkdir docs/_build || die + sphinx-build -c docs docs docs/_build || die + fi +} + +python_test() { + nosetests || die Tests failed under $"{EPYTHON}" +} + +python_install_all() { + use doc && HTML_DOCS=( "${S}"/docs/_build/. ) + distutils-r1_python_install_all +} + |