40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# 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
|
|
}
|
|
}
|