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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Jul 6 21:38:06 2011 UTC (2 years, 9 months ago) by neurogeek
Branch: MAIN
CVS Tags: HEAD
Initial commit

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

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
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 RESTRICT_PYTHON_ABIS="3.*"
24
25 src_prepare() {
26 if use test; then
27 epatch "${FILESDIR}/${P}_disable_socket_tests.patch"
28 fi
29 }
30
31 src_test() {
32
33 testing() {
34 PYTHONPATH="build-${PYTHON_ABI}/lib" python \
35 "tests/client_0_8/run_all.py"
36 }
37
38 python_execute_function testing
39 }
40
41 src_install() {
42 distutils_src_install
43
44 dodoc docs/*
45 if use examples; then
46 docinto examples
47 dodoc demo/* || die "dodoc failed"
48 fi
49 if use extras; then
50 insinto /usr/share/${PF}
51 doins -r extras || die "doins failed"
52 fi
53 }

  ViewVC Help
Powered by ViewVC 1.1.20