dev-python/flask-browserid/flask-browserid-0.0.4.ebuild
changeset 172 ff7ca16f5480
equal deleted inserted replaced
161:df5c00aba7c2 172:ff7ca16f5480
       
     1 # Copyright 1999-2015 Gentoo Foundation
       
     2 # Distributed under the terms of the GNU General Public License v2
       
     3 # $Id$
       
     4 
       
     5 EAPI=5
       
     6 PYTHON_COMPAT=( python2_7 )
       
     7 
       
     8 EGIT_REPO_URI="git://github.com/garbados/flask-browserid.git"
       
     9 
       
    10 [[ ${PV} == 9999 ]] && SCM=git-r3
       
    11 
       
    12 inherit distutils-r1 ${SCM}
       
    13 
       
    14 MY_PN="Flask-BrowserID"
       
    15 DESCRIPTION="Flask support for BrowserID authentication"
       
    16 HOMEPAGE="http://pypi.python.org/pypi/Flask-BrowserID"
       
    17 
       
    18 if [ ${PV} != 9999 ]; then
       
    19 	SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
       
    20 fi
       
    21 
       
    22 LICENSE="MIT"
       
    23 SLOT="0"
       
    24 KEYWORDS="~amd64 ~x86"
       
    25 IUSE="doc test"
       
    26 
       
    27 S="${WORKDIR}/${MY_PN}-${PV}"
       
    28 
       
    29 DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) "
       
    30 RDEPEND=">=dev-python/flask-0.9[${PYTHON_USEDEP}]
       
    31 		>=dev-python/flask-login-0.1.3[${PYTHON_USEDEP}]
       
    32 		dev-python/requests[${PYTHON_USEDEP}]
       
    33 		dev-python/setuptools[${PYTHON_USEDEP}]"
       
    34 
       
    35 python_compile_all() {
       
    36 	if use doc; then
       
    37 		einfo "Generation of documentation"
       
    38 		cd docs
       
    39 		emake html || die "Generation of documentation failed"
       
    40 	fi
       
    41 }
       
    42 
       
    43 python_install_all() {
       
    44 	use doc && local HTML_DOCS=( doc/_build/html/. )
       
    45 
       
    46 	distutils-r1_python_install_all
       
    47 }
       
    48 
       
    49 python_test() {
       
    50 	esetup.py test
       
    51 }