summaryrefslogtreecommitdiff
blob: e3c55668aa30a899f382871682e76e34708b2bfa (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-urljr/python-urljr-1.0.1.ebuild,v 1.3 2007/07/11 06:19:47 mr_bones_ Exp $

NEED_PYTHON=2.3
PYTHON_MODNAME="urljr"

inherit distutils eutils

DESCRIPTION="JanRain's URL Utilities"
HOMEPAGE="http://www.openidenabled.com/openid/libraries/python/"
SRC_URI="http://www.openidenabled.com/resources/downloads/python-openid/${P}.tar.gz"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="curl test"
RDEPEND="curl? ( >=dev-python/pycurl-7.15.1 )
	test? ( >=dev-python/pycurl-7.15.1 )"

src_unpack() {
	unpack ${A}
	cd ${S}
	#Test fails if it finds 'localhost' instead of '127.0.0.1'
	epatch ${FILESDIR}/${P}-gentoo-test_fetchers.patch
}

src_test() {
	PYTHONPATH=. "${python}" admin/runtests || die "tests failed"
}