void-packages/srcpkgs/python-gevent/template
Alessio Sergi cebe7e7bdd python-gevent: rebuild for Python 3.5
Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
2016-10-17 00:42:53 +02:00

42 lines
1.2 KiB
Bash

# Template file for 'python-gevent'
pkgname=python-gevent
version=1.1.2
revision=2
wrksrc="gevent-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel libev-devel c-ares-devel"
depends="python-greenlet"
pycompile_module="gevent"
short_desc="Coroutine-based Python2 networking library"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://www.gevent.org/"
license="MIT"
distfiles="${PYPI_SITE}/g/gevent/gevent-${version}.tar.gz"
checksum=cb15cf73d69a2eeefed330858f09634e2c50bf46da9f9e7635730fcfb872c02c
export LIBEV_EMBED=0
export CARES_EMBED=0
post_install() {
# remove python2/3 compat stuff
rm -f ${DESTDIR}/usr/lib/python2*/site-packages/gevent/_*3.py
rm -f ${DESTDIR}/usr/lib/python3*/site-packages/gevent/_*2.py
vlicense LICENSE
}
python3-gevent_package() {
replaces="python3.4-gevent>=0"
pycompile_module="gevent"
depends="python3-greenlet"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-gevent_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-gevent>=${version}_${revision}"
}