New package: python-pyzmq-14.5.0

This commit is contained in:
Alessio Sergi 2015-02-19 09:49:00 +01:00
parent a00e1df3fc
commit 9709a49cc9
3 changed files with 42 additions and 1 deletions

View file

@ -1100,7 +1100,7 @@ libvirt-gconfig-1.0.so.0 libvirt-glib-0.1.2_1
libvirt-gobject-1.0.so.0 libvirt-glib-0.1.2_1 libvirt-gobject-1.0.so.0 libvirt-glib-0.1.2_1
libvirt-glib-1.0.so.0 libvirt-glib-0.1.2_1 libvirt-glib-1.0.so.0 libvirt-glib-0.1.2_1
libgsasl.so.7 libgsasl-1.8.0_1 libgsasl.so.7 libgsasl-1.8.0_1
libzmq.so.3 zeromq-3.2.0_1 libzmq.so.4 zeromq-4.0.5_1
libstatgrab.so.6 libstatgrab-0.17_1 libstatgrab.so.6 libstatgrab-0.17_1
libseccomp.so.2 libseccomp-2.0.0_1 libseccomp.so.2 libseccomp-2.0.0_1
libqrencode.so.3 libqrencode-3.4.1_1 libqrencode.so.3 libqrencode-3.4.1_1

View file

@ -0,0 +1,40 @@
# Template file for 'python-pyzmq'
pkgname=python-pyzmq
version=14.5.0
revision=1
wrksrc="pyzmq-${version}"
build_style=python-module
make_build_args="--zmq=${XBPS_CROSS_BASE}/usr"
python_versions="2.7 3.4"
hostmakedepends="pkg-config python-devel python3.4-devel zeromq-devel"
makedepends="${hostmakedepends/pkg-config/}"
pycompile_module="zmq"
short_desc="Python2 bindings for the ZeroMQ messaging library"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/zeromq/pyzmq"
license="LGPL-3, 3-clause-BSD"
distfiles="${PYPI_SITE}/p/pyzmq/pyzmq-${version}.tar.gz"
checksum=5d6e045634456cf5496f50871fd3e3a5ede2b90433284dbfe985bb67c97f77bd
pre_build() {
cat > setup.cfg <<-EOF
[global]
have_sys_un_h = False
skip_check_zmq = True
EOF
# remove bundled libraries
rm -rf bundled
# remove shebangs
find zmq/eventloop/minitornado -type f -name '*.py' -exec sed -i '/^#!.*python$/d' {} +
}
python3.4-pyzmq_package() {
pycompile_version="3.4"
pycompile_module="zmq"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
}
}

1
srcpkgs/python3.4-pyzmq Symbolic link
View file

@ -0,0 +1 @@
python-pyzmq