2015-02-08 20:31:52 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2014-11-19 10:11:52 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-06-20 01:52:41 +03:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzmq/pyzmq-14.4.1.ebuild,v 1.12 2015/06/19 07:51:32 jlec Exp $
|
2014-11-19 10:11:52 +03:00
|
|
|
|
|
|
|
EAPI=5
|
2015-06-20 01:52:41 +03:00
|
|
|
|
|
|
|
PYTHON_COMPAT=( python2_7 python3_{3,4} )
|
2014-11-19 10:11:52 +03:00
|
|
|
|
|
|
|
inherit distutils-r1 toolchain-funcs
|
|
|
|
|
2015-06-20 01:52:41 +03:00
|
|
|
DESCRIPTION="Lightweight and super-fast messaging library built on top of the ZeroMQ library"
|
2014-11-19 10:11:52 +03:00
|
|
|
HOMEPAGE="http://www.zeromq.org/bindings:python http://pypi.python.org/pypi/pyzmq"
|
|
|
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="LGPL-3"
|
|
|
|
SLOT="0"
|
2015-06-07 21:06:26 +03:00
|
|
|
KEYWORDS="amd64 arm ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
2014-11-19 10:11:52 +03:00
|
|
|
IUSE="doc examples green test"
|
|
|
|
|
2015-06-20 01:52:41 +03:00
|
|
|
# Ensures installation of gevent for test phase
|
|
|
|
REQUIRED_USE="test? ( green )"
|
|
|
|
|
2014-11-27 18:04:38 +03:00
|
|
|
PY2_USEDEP=$(python_gen_usedep python2_7)
|
2014-11-19 10:11:52 +03:00
|
|
|
RDEPEND=">=net-libs/zeromq-2.1.9
|
|
|
|
dev-python/py[${PYTHON_USEDEP}]
|
2015-06-20 01:52:41 +03:00
|
|
|
dev-python/cffi:=[${PYTHON_USEDEP}]
|
2014-11-19 10:11:52 +03:00
|
|
|
green? ( dev-python/gevent[${PY2_USEDEP}] )"
|
2014-12-21 02:42:11 +03:00
|
|
|
DEPEND="${RDEPEND}
|
2015-06-20 01:52:41 +03:00
|
|
|
test? ( dev-python/nose[${PYTHON_USEDEP}] )
|
2014-11-19 10:11:52 +03:00
|
|
|
doc? (
|
|
|
|
dev-python/sphinx[${PYTHON_USEDEP}]
|
|
|
|
dev-python/numpydoc[${PYTHON_USEDEP}]
|
|
|
|
)"
|
|
|
|
|
|
|
|
python_configure_all() {
|
|
|
|
tc-export CC
|
|
|
|
}
|
|
|
|
|
|
|
|
python_compile_all() {
|
|
|
|
use doc && emake -C docs html
|
|
|
|
}
|
|
|
|
|
|
|
|
python_compile() {
|
|
|
|
python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
|
|
|
distutils-r1_python_compile
|
|
|
|
}
|
|
|
|
|
|
|
|
python_test() {
|
|
|
|
if python_is_python3; then
|
|
|
|
einfo "Skipping python3 due to lack of support by gevent"
|
|
|
|
else
|
|
|
|
nosetests -svw "${BUILD_DIR}/lib/"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
python_install_all() {
|
|
|
|
use examples && local EXAMPLES=( examples/. )
|
|
|
|
use doc && local HTML_DOCS=( docs/build/html/. )
|
|
|
|
distutils-r1_python_install_all
|
|
|
|
}
|