From 9709a49cc9bad3cc36a331d8ea1ceec73dc4db71 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Thu, 19 Feb 2015 09:49:00 +0100 Subject: [PATCH] New package: python-pyzmq-14.5.0 --- common/shlibs | 2 +- srcpkgs/python-pyzmq/template | 40 +++++++++++++++++++++++++++++++++++ srcpkgs/python3.4-pyzmq | 1 + 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/python-pyzmq/template create mode 120000 srcpkgs/python3.4-pyzmq diff --git a/common/shlibs b/common/shlibs index 6fb687e979..366a779f04 100644 --- a/common/shlibs +++ b/common/shlibs @@ -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-glib-1.0.so.0 libvirt-glib-0.1.2_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 libseccomp.so.2 libseccomp-2.0.0_1 libqrencode.so.3 libqrencode-3.4.1_1 diff --git a/srcpkgs/python-pyzmq/template b/srcpkgs/python-pyzmq/template new file mode 100644 index 0000000000..cb5f344126 --- /dev/null +++ b/srcpkgs/python-pyzmq/template @@ -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 " +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 + } +} diff --git a/srcpkgs/python3.4-pyzmq b/srcpkgs/python3.4-pyzmq new file mode 120000 index 0000000000..f908dd6b61 --- /dev/null +++ b/srcpkgs/python3.4-pyzmq @@ -0,0 +1 @@ +python-pyzmq \ No newline at end of file