| 1 |
iksaif |
1.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/kombu/kombu-2.3.0.ebuild,v 1.1 2012/07/29 20:17:27 iksaif Exp $ |
| 4 |
|
|
|
| 5 |
|
|
EAPI="4" |
| 6 |
|
|
|
| 7 |
|
|
PYTHON_DEPEND="*:2.5" |
| 8 |
|
|
RESTRICT_PYTHON_ABIS="2.4" |
| 9 |
|
|
SUPPORT_PYTHON_ABIS="1" |
| 10 |
|
|
DISTUTILS_SRC_TEST="nosetests" |
| 11 |
|
|
|
| 12 |
|
|
inherit distutils eutils |
| 13 |
|
|
|
| 14 |
|
|
DESCRIPTION="AMQP Messaging Framework for Python" |
| 15 |
|
|
HOMEPAGE="http://pypi.python.org/pypi/kombu https://github.com/ask/kombu" |
| 16 |
|
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
| 17 |
|
|
|
| 18 |
|
|
LICENSE="BSD" |
| 19 |
|
|
SLOT="0" |
| 20 |
|
|
KEYWORDS="~amd64 ~x86" |
| 21 |
|
|
IUSE="doc examples test" |
| 22 |
|
|
|
| 23 |
|
|
RDEPEND=">=dev-python/anyjson-0.3.3 |
| 24 |
|
|
>=dev-python/amqplib-1.0" |
| 25 |
|
|
DEPEND="${RDEPEND} |
| 26 |
|
|
test? ( dev-python/nose-cover3 |
| 27 |
|
|
dev-python/mock |
| 28 |
|
|
dev-python/simplejson |
| 29 |
|
|
dev-python/anyjson |
| 30 |
|
|
dev-python/redis-py |
| 31 |
|
|
dev-python/pymongo |
| 32 |
|
|
dev-python/msgpack ) |
| 33 |
|
|
doc? ( dev-python/sphinx |
| 34 |
|
|
dev-python/beanstalkc |
| 35 |
|
|
dev-python/couchdb-python ) |
| 36 |
|
|
dev-python/setuptools" |
| 37 |
|
|
|
| 38 |
|
|
src_prepare() { |
| 39 |
|
|
if use test; then |
| 40 |
|
|
epatch "${FILESDIR}/${PN}-2.1.1-add-assertIsInstance-with-unittest.patch" |
| 41 |
|
|
fi |
| 42 |
|
|
} |
| 43 |
|
|
|
| 44 |
|
|
src_compile() { |
| 45 |
|
|
distutils_src_compile |
| 46 |
|
|
use doc && emake -C docs html |
| 47 |
|
|
} |
| 48 |
|
|
|
| 49 |
|
|
src_test() { |
| 50 |
|
|
testing() { |
| 51 |
|
|
nosetests --py3where build-${PYTHON_ABI}/lib/${PN}/tests |
| 52 |
|
|
} |
| 53 |
|
|
python_execute_function testing |
| 54 |
|
|
} |
| 55 |
|
|
|
| 56 |
|
|
src_install() { |
| 57 |
|
|
distutils_src_install |
| 58 |
|
|
if use examples; then |
| 59 |
|
|
docompress -x usr/share/doc/${P}/examples/ |
| 60 |
|
|
insinto usr/share/doc/${P}/ |
| 61 |
|
|
doins -r examples/ |
| 62 |
|
|
fi |
| 63 |
|
|
use doc && dohtml -r docs/.build/html/ |
| 64 |
|
|
} |