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