217e7d31f2
After more than a year the switch to python3 packages, it is time to say them goodbye. So long, and thanks for all the fish.
36 lines
1 KiB
Bash
36 lines
1 KiB
Bash
# Template file for 'python-gevent'
|
|
pkgname=python-gevent
|
|
version=1.2.2
|
|
revision=2
|
|
wrksrc="gevent-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools python-Cython python3-Cython"
|
|
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="https://github.com/gevent/gevent/archive/${version}.tar.gz"
|
|
checksum=c59072a2bac1829c6e0f19814b4b9fe726f9162a1762831a0c316ae27fa69eb2
|
|
|
|
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() {
|
|
pycompile_module="gevent"
|
|
depends="python3-greenlet"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|