equal
deleted
inserted
replaced
|
1 EAPI="3" |
|
2 PYTHON_DEPEND="2:2.5" |
|
3 SUPPORT_PYTHON_ABIS="1" |
|
4 RESTRICT_PYTHON_ABIS="2.4 3.*" |
|
5 |
|
6 inherit distutils git-2 |
|
7 |
|
8 EGIT_REPO_URI="git://github.com/garbados/flask-browserid.git" |
|
9 |
|
10 MY_PN="Flask-BrowserID" |
|
11 |
|
12 DESCRIPTION="Flask support for BrowserID authentication" |
|
13 HOMEPAGE="http://pypi.python.org/pypi/Flask-BrowserID" |
|
14 |
|
15 LICENSE="MIT" |
|
16 SLOT="0" |
|
17 KEYWORDS="~amd64 ~x86" |
|
18 IUSE="doc" |
|
19 |
|
20 RDEPEND=">=dev-python/flask-0.9 |
|
21 >=dev-python/flask-login-0.1.3 |
|
22 dev-python/requests |
|
23 doc? ( dev-python/sphinx ) " |
|
24 DEPEND="${RDEPEND} |
|
25 dev-python/setuptools" |
|
26 |
|
27 S="${WORKDIR}/${MY_P}" |
|
28 |
|
29 PYTHON_MODNAME="flaskext/browserid" |
|
30 |
|
31 src_compile() { |
|
32 distutils_src_compile |
|
33 |
|
34 if use doc; then |
|
35 einfo "Generation of documentation" |
|
36 cd docs |
|
37 PYTHONPATH=".." emake html || die "Generation of documentation failed" |
|
38 fi |
|
39 } |
|
40 |
|
41 src_install() { |
|
42 distutils_src_install |
|
43 |
|
44 if use doc; then |
|
45 dohtml -r docs/_build/html/* || die "Installation of documentation failed" |
|
46 fi |
|
47 } |