1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
13 if [[ "${PV}" == "9999" ]]; then
15 EGIT_REPO_URI="git://github.com/wcdolphin/${PN}.git"
18 SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
21 DESCRIPTION="A Flask extension for Cross Origin Resource Sharing (CORS)"
22 HOMEPAGE="https://github.com/wcdolphin/flask-cors https://pypi.python.org/pypi/Flask-Cors"
26 KEYWORDS="~amd64 ~x86"
29 RDEPEND="dev-python/flask[${PYTHON_USEDEP}]
30 dev-python/six[${PYTHON_USEDEP}]"
32 dev-python/setuptools[${PYTHON_USEDEP}]
35 dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
39 dev-python/nose[${PYTHON_USEDEP}]
42 S="${WORKDIR}/${MY_P}"
44 python_compile_all() {
45 use doc && emake -C docs html
52 python_install_all() {
53 use doc && local HTML_DOCS=( docs/_build/html/. )
55 distutils-r1_python_install_all