blob: 2eecaa55c4f70a4af1a220a9244fe486942b9203 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-openid/python-openid-2.2.5.ebuild,v 1.7 2013/05/10 05:02:57 patrick Exp $
EAPI="3"
PYTHON_DEPEND="2:2.5"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.4 3.*"
inherit distutils eutils
DESCRIPTION="OpenID support for servers and consumers."
HOMEPAGE="http://www.openidenabled.com/openid/libraries/python/ http://pypi.python.org/pypi/python-openid"
# Downloaded from http://github.com/openid/python-openid/downloads
SRC_URI="mirror://gentoo/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ~arm x86"
IUSE="examples mysql postgres sqlite test"
RDEPEND="mysql? ( >=dev-python/mysql-python-1.2.2 )
postgres? ( dev-python/psycopg )
sqlite? ( || ( dev-lang/python:2.7[sqlite] dev-lang/python:2.6[sqlite] dev-lang/python:2.5[sqlite] dev-python/pysqlite:2 ) )"
DEPEND="${RDEPEND}
test? ( dev-python/twill
dev-python/pycurl )"
S="${WORKDIR}/openid-python-openid-b666238"
PYTHON_MODNAME="openid"
src_prepare() {
distutils_src_prepare
# Patch to fix confusion with localhost/127.0.0.1
epatch "${FILESDIR}/${PN}-2.0.0-gentoo-test_fetchers.diff"
# Disable broken tests from from examples/djopenid.
sed -e "s/django_failures =.*/django_failures = 0/" -i admin/runtests || die "sed admin/runtests failed"
}
src_test() {
# Remove test that requires running db server.
sed -e '/storetest/d' -i admin/runtests
testing() {
"$(PYTHON)" admin/runtests
}
python_execute_function testing
}
src_install() {
distutils_src_install
if use examples; then
insinto /usr/share/doc/${PF}
doins -r examples
fi
}
|