From b336ec89fb322e4fa528550b41b47cece2402211 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 17 Apr 2016 00:40:17 +0200 Subject: [PATCH] New package: python-gevent-1.1.1 Close #3972. --- srcpkgs/python-gevent/template | 38 ++++++++++++++++++++++++++++++++++ srcpkgs/python-gevent/update | 1 + srcpkgs/python3.4-gevent | 1 + 3 files changed, 40 insertions(+) create mode 100644 srcpkgs/python-gevent/template create mode 100644 srcpkgs/python-gevent/update create mode 120000 srcpkgs/python3.4-gevent diff --git a/srcpkgs/python-gevent/template b/srcpkgs/python-gevent/template new file mode 100644 index 00000000000..df6667bf32c --- /dev/null +++ b/srcpkgs/python-gevent/template @@ -0,0 +1,38 @@ +# Template file for 'python-gevent' +pkgname=python-gevent +version=1.1.1 +revision=1 +wrksrc="gevent-${version}" +build_style=python-module +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-setuptools" +makedepends="python-devel python3.4-devel libev-devel c-ares-devel" +depends="python-greenlet" +pycompile_module="gevent" +short_desc="Coroutine-based Python2 networking library" +maintainer="Alessio Sergi " +homepage="http://www.gevent.org/" +license="MIT" +distfiles="${PYPI_SITE}/g/gevent/gevent-${version}.tar.gz" +checksum=6ee5b9851b2acde08df7ab9b9a2903f58b4b0e555405c444f4b1dd16f71caeea + +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.4-gevent_package() { + pycompile_version="3.4" + pycompile_module="gevent" + depends="python3.4-greenlet" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + vlicense LICENSE + } +} diff --git a/srcpkgs/python-gevent/update b/srcpkgs/python-gevent/update new file mode 100644 index 00000000000..25ef51d109a --- /dev/null +++ b/srcpkgs/python-gevent/update @@ -0,0 +1 @@ +ignore="*a* *b* *rc*" diff --git a/srcpkgs/python3.4-gevent b/srcpkgs/python3.4-gevent new file mode 120000 index 00000000000..b3dd9600f1a --- /dev/null +++ b/srcpkgs/python3.4-gevent @@ -0,0 +1 @@ +python-gevent \ No newline at end of file