/[gentoo-x86]/dev-python/python-openid/python-openid-2.2.5-r1.ebuild
Gentoo

Contents of /dev-python/python-openid/python-openid-2.2.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Wed Apr 8 08:05:19 2015 UTC (5 years, 3 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +2 -2 lines
Drop old Python implementations

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/python-openid/python-openid-2.2.5-r1.ebuild,v 1.9 2015/03/08 23:57:27 pacho Exp $
4
5 EAPI=5
6
7 PYTHON_REQ_USE='sqlite?'
8 PYTHON_COMPAT=( python2_7 )
9
10 inherit distutils-r1
11
12 DESCRIPTION="OpenID support for servers and consumers"
13 HOMEPAGE="http://www.openidenabled.com/openid/libraries/python/ http://pypi.python.org/pypi/python-openid"
14 # Downloaded from http://github.com/openid/python-openid/downloads
15 SRC_URI="mirror://gentoo/${P}.tar.gz"
16
17 LICENSE="Apache-2.0"
18 SLOT="0"
19 KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86"
20 IUSE="examples mysql postgres sqlite test"
21
22 RDEPEND="mysql? ( >=dev-python/mysql-python-1.2.2[${PYTHON_USEDEP}] )
23 postgres? ( dev-python/psycopg[${PYTHON_USEDEP}] )"
24 DEPEND="${RDEPEND}
25 test? ( dev-python/twill
26 dev-python/pycurl )"
27 S="${WORKDIR}/openid-python-openid-b666238"
28
29 python_prepare_all() {
30 local PATCHES=(
31 # Patch to fix confusion with localhost/127.0.0.1
32 "${FILESDIR}/${PN}-2.0.0-gentoo-test_fetchers.diff"
33 )
34
35 # Disable broken tests from from examples/djopenid.
36 # Remove test that requires running db server.
37 sed -e "s/django_failures =.*/django_failures = 0/" \
38 -e '/storetest/d' \
39 -i admin/runtests || die "sed admin/runtests failed"
40
41 distutils-r1_python_prepare_all
42 }
43
44 python_test() {
45 "${PYTHON}" admin/runtests || die "Tests fail with ${EPYTHON}"
46 }
47
48 python_install_all() {
49 distutils-r1_python_install_all
50
51 if use examples; then
52 dodoc -r examples
53 docompress -x /usr/share/doc/${PF}/examples
54 fi
55 }

  ViewVC Help
Powered by ViewVC 1.1.20