/[gentoo-x86]/dev-python/amqplib/amqplib-1.0.2.ebuild
Gentoo

Contents of /dev-python/amqplib/amqplib-1.0.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Mar 2 22:15:19 2012 UTC (2 years, 6 months ago) by neurogeek
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -5 lines
Added Python3 support and some patches to the tests

(Portage version: 2.2.0_alpha89/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="3"
6 PYTHON_DEPEND="2 3"
7 SUPPORT_PYTHON_ABIS="1"
8
9 inherit distutils eutils
10
11 DESCRIPTION="Python client for the Advanced Message Queuing Procotol (AMQP)"
12 HOMEPAGE="http://code.google.com/p/py-amqplib/"
13 SRC_URI="http://py-amqplib.googlecode.com/files/${P}.tgz"
14
15 LICENSE="LGPL-3"
16 SLOT="0"
17 KEYWORDS="~x86 ~amd64"
18 IUSE="examples extras test"
19
20 RDEPEND=""
21 DEPEND="${RDEPEND}"
22
23 src_prepare() {
24 if use test; then
25 epatch "${FILESDIR}/${PN}-0.6.1_disable_socket_tests.patch"
26 epatch "${FILESDIR}/${P}-unicode_tests_py3.patch"
27 fi
28 }
29
30 src_test() {
31
32 testing() {
33 PYTHONPATH="build-${PYTHON_ABI}/lib" python \
34 "tests/client_0_8/run_all.py"
35 }
36
37 python_execute_function testing
38 }
39
40 src_install() {
41 distutils_src_install
42
43 dodoc docs/*
44 if use examples; then
45 docinto examples
46 dodoc demo/* || die "dodoc failed"
47 fi
48 if use extras; then
49 insinto /usr/share/${PF}
50 doins -r extras || die "doins failed"
51 fi
52 }

  ViewVC Help
Powered by ViewVC 1.1.20