/[gentoo-x86]/dev-python/flask-script/flask-script-2.0.5.ebuild
Gentoo

Contents of /dev-python/flask-script/flask-script-2.0.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Mar 8 23:48:06 2015 UTC (4 years, 11 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
x86 stable, bug 540290

(Portage version: 2.2.17/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/flask-script/flask-script-2.0.5.ebuild,v 1.5 2015/03/06 22:20:39 pacho Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
7
8 inherit distutils-r1
9
10 MY_PN="Flask-Script"
11 MY_P="${MY_PN}-${PV}"
12
13 DESCRIPTION="Flask support for writing external scripts"
14 HOMEPAGE="http://packages.python.org/Flask-Script/ http://pypi.python.org/pypi/Flask-Script"
15 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
16
17 LICENSE="BSD"
18 SLOT="0"
19 KEYWORDS="amd64 x86"
20 IUSE="doc test"
21
22 RDEPEND=">=dev-python/flask-0.10.1-r1[${PYTHON_USEDEP}]"
23 DEPEND="${RDEPEND}
24 dev-python/setuptools[${PYTHON_USEDEP}]
25 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
26 test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
27
28 S="${WORKDIR}/${MY_P}"
29
30 python_compile_all() {
31 if use doc; then
32 einfo "Generation of documentation by" ${PYTHON}
33 PYTHONPATH=".." emake -C docs html || die "Generation of documentation failed"
34 fi
35 }
36
37 python_test() {
38 py.test tests.py || die "Tests failed under ${EPYTHON}"
39 }
40
41 python_install_all() {
42 use doc && local HTML_DOCS=( docs/_build/html/. )
43 distutils-r1_python_install_all
44 }

  ViewVC Help
Powered by ViewVC 1.1.20