void-packages/srcpkgs/python-greenlet/template
2015-08-30 19:46:32 -04:00

44 lines
1.2 KiB
Bash

# Template file for 'python-greenlet'
pkgname=python-greenlet
version=0.4.9
revision=1
wrksrc="greenlet-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools unzip"
makedepends="python-devel python3.4-devel"
replaces="python-greenlet<0.4.7_1"
short_desc="Lightweight in-process concurrent programming (Python2)"
_short_desc="${short_desc/Python2/Python3.4}"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="MIT"
homepage="https://github.com/python-greenlet/greenlet"
distfiles="${PYPI_SITE}/g/greenlet/greenlet-${version}.zip"
checksum="58b2f3a2e7075c655616bf95e82868db4980f3bb6661db70ad02a51e4ddd2252"
post_install() {
vlicense LICENSE
}
python-greenlet-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include/python2.7
}
}
python3.4-greenlet-devel_package() {
depends="python3.4-greenlet-${version}_${revision}"
short_desc="${_short_desc} - development files"
pkg_install() {
vmove usr/include/python3.4m
}
}
python3.4-greenlet_package() {
replaces="python3.4-greenlet<0.4.7_1"
short_desc="${_short_desc}"
pkg_install() {
vmove usr/lib/python3.4
vlicense LICENSE
}
}