| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/requests/requests-0.13.1.ebuild,v 1.3 2012/08/19 10:07:06 ago Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
PYTHON_DEPEND="*:2.6"
|
| 7 |
SUPPORT_PYTHON_ABIS="1"
|
| 8 |
RESTRICT_PYTHON_ABIS="2.4 2.5"
|
| 9 |
DISTUTILS_SRC_TEST="nosetests"
|
| 10 |
|
| 11 |
inherit distutils eutils
|
| 12 |
|
| 13 |
DESCRIPTION="HTTP library for human beings"
|
| 14 |
HOMEPAGE="http://python-requests.org/ http://pypi.python.org/pypi/requests"
|
| 15 |
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
| 16 |
|
| 17 |
LICENSE="ISC"
|
| 18 |
SLOT="0"
|
| 19 |
KEYWORDS="amd64 ~arm x86"
|
| 20 |
IUSE=""
|
| 21 |
|
| 22 |
DEPEND="dev-python/setuptools"
|
| 23 |
RDEPEND="app-misc/ca-certificates
|
| 24 |
>=dev-python/chardet-1.0.0
|
| 25 |
>=dev-python/oauthlib-0.1.0 <dev-python/oauthlib-0.2.0"
|
| 26 |
|
| 27 |
src_prepare() {
|
| 28 |
# Fix up dependencies (gentoo-specific), see patch for details
|
| 29 |
epatch "${FILESDIR}/${PN}-0.12.1-setup.py.patch"
|
| 30 |
epatch "${FILESDIR}/${PN}-0.13-python2.6.patch"
|
| 31 |
}
|