diff options
Diffstat (limited to 'dev-python/stomper/stomper-0.2.6.ebuild')
-rw-r--r-- | dev-python/stomper/stomper-0.2.6.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-python/stomper/stomper-0.2.6.ebuild b/dev-python/stomper/stomper-0.2.6.ebuild new file mode 100644 index 000000000000..87cdb9bf454a --- /dev/null +++ b/dev-python/stomper/stomper-0.2.6.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/stomper/stomper-0.2.6.ebuild,v 1.1 2013/06/19 08:23:37 patrick Exp $ + +EAPI="3" +PYTHON_DEPEND="2:2.5" +SUPPORT_PYTHON_ABIS="1" +# uuid module required. +RESTRICT_PYTHON_ABIS="2.4 3.*" +DISTUTILS_SRC_TEST="setup.py" + +inherit distutils + +DESCRIPTION="Transport neutral client implementation of the STOMP protocol" +HOMEPAGE="http://pypi.python.org/pypi/stomper" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="examples" + +DEPEND="dev-python/setuptools" +RDEPEND="" + +src_install() { + distutils_src_install + + delete_examples_and_tests() { + rm -fr "${ED}$(python_get_sitedir)/${PN}/"{examples,tests} + } + python_execute_function -q delete_examples_and_tests + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins lib/stomper/examples/* || die "Installation of examples failed" + fi +} |