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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Jan 19 20:13:07 2013 UTC (19 months ago) by mgorny
Branch: MAIN
Migrate to distutils-r1.

(Portage version: 2.2.0_alpha155/cvs/Linux x86_64, signed Manifest commit with key 42B9401D)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/amqplib/amqplib-1.0.2.ebuild,v 1.2 2012/03/02 22:15:19 neurogeek Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} )
7
8 inherit distutils-r1
9
10 DESCRIPTION="Python client for the Advanced Message Queuing Procotol (AMQP)"
11 HOMEPAGE="http://code.google.com/p/py-amqplib/"
12 SRC_URI="http://py-amqplib.googlecode.com/files/${P}.tgz"
13
14 LICENSE="LGPL-3"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="examples extras test"
18
19 PATCHES=(
20 "${FILESDIR}/${PN}-0.6.1_disable_socket_tests.patch"
21 "${FILESDIR}/${P}-unicode_tests_py3.patch"
22 )
23
24 python_test() {
25 "${PYTHON}" tests/client_0_8/run_all.py \
26 || die "Tests fail with ${EPYTHON}"
27 }
28
29 python_install_all() {
30 distutils-r1_python_install_all
31
32 dodoc -r docs/
33 if use examples; then
34 docinto examples
35 dodoc -r demo/.
36 docompress -x /usr/share/doc/${PF}/examples
37 fi
38 if use extras; then
39 insinto /usr/share/${PF}
40 doins -r extras
41 fi
42 }

  ViewVC Help
Powered by ViewVC 1.1.20