void-packages/srcpkgs/python-gevent/template
2017-02-17 00:03:05 +01:00

42 lines
1.2 KiB
Bash

# Template file for 'python-gevent'
pkgname=python-gevent
version=1.2.1
revision=1
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=3de300d0e32c31311e426e4d5d73b36777ed99c2bac3f8fbad939eeb2c29fa7c
export LIBEV_EMBED=0
export CARES_EMBED=0
post_install() {
# remove python2/3 compat stuff
rm -f ${DESTDIR}/${py2_sitelib}/gevent/_*3.py
rm -f ${DESTDIR}/${py3_sitelib}/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}"
}