diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-02-17 12:55:30 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-02-17 12:55:30 +0000 |
commit | 3a1470e258d6c92cd521d45a7cecda9f979f45ff (patch) | |
tree | 426b98e2f47cf55e7ba65fd9fa60b2c46cce9043 /dev-python/py-amqp | |
parent | Tighten mask on poppler (>=0.22.0) (diff) | |
download | gentoo-2-3a1470e258d6c92cd521d45a7cecda9f979f45ff.tar.gz gentoo-2-3a1470e258d6c92cd521d45a7cecda9f979f45ff.tar.bz2 gentoo-2-3a1470e258d6c92cd521d45a7cecda9f979f45ff.zip |
Migrate to distutils-r1.
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 42B9401D)
Diffstat (limited to 'dev-python/py-amqp')
-rw-r--r-- | dev-python/py-amqp/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/py-amqp/py-amqp-1.0.6-r1.ebuild | 63 |
2 files changed, 69 insertions, 1 deletions
diff --git a/dev-python/py-amqp/ChangeLog b/dev-python/py-amqp/ChangeLog index e64946c38dd1..ad87e1acd407 100644 --- a/dev-python/py-amqp/ChangeLog +++ b/dev-python/py-amqp/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/py-amqp # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/py-amqp/ChangeLog,v 1.2 2013/01/08 21:58:40 iksaif Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/py-amqp/ChangeLog,v 1.3 2013/02/17 12:55:30 mgorny Exp $ + +*py-amqp-1.0.6-r1 (17 Feb 2013) + + 17 Feb 2013; Michał Górny <mgorny@gentoo.org> +py-amqp-1.0.6-r1.ebuild: + Migrate to distutils-r1. 08 Jan 2013; Corentin Chary <iksaif@gentoo.org> py-amqp-1.0.6.ebuild: Fix dodoc. diff --git a/dev-python/py-amqp/py-amqp-1.0.6-r1.ebuild b/dev-python/py-amqp/py-amqp-1.0.6-r1.ebuild new file mode 100644 index 000000000000..968633853954 --- /dev/null +++ b/dev-python/py-amqp/py-amqp-1.0.6-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/py-amqp/py-amqp-1.0.6-r1.ebuild,v 1.1 2013/02/17 12:55:30 mgorny Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} ) + +inherit distutils-r1 + +MY_PN="amqp" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Low-level AMQP client for Python (fork of amqplib)" +HOMEPAGE="https://github.com/celery/py-amqp http://pypi.python.org/pypi/amqp/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples extras" + +RDEPEND="" +DEPEND="${RDEPEND}" + +python_prepare_all() { + local PATCHES=( + "${FILESDIR}/${P}_disable_socket_tests.patch" + ) + + distutils-r1_python_prepare_all +} + +python_test() { + cp -r -l funtests "${BUILD_DIR}"/ || die + + cd "${BUILD_DIR}" || die + if [[ ${EPYTHON} == python3.* ]]; then + # Notes: + # -W is not supported by python3.1 + # -n causes Python to write into hardlinked files + 2to3 --no-diffs -w funtests || die + fi + + "${PYTHON}" funtests/run_all.py || ewarn "Tests fail with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all + + dodoc -r docs/. + if use examples; then + docinto examples + dodoc -r demo/. + docompress -x /usr/share/doc/${PF}/examples + fi + if use extras; then + insinto /usr/share/${PF} + doins -r extra + fi +} |