void-packages/srcpkgs/python-greenlet/template

45 lines
1.2 KiB
Bash
Raw Normal View History

2015-08-23 00:28:23 +02:00
# Template file for 'python-greenlet'
pkgname=python-greenlet
2015-08-31 01:46:16 +02:00
version=0.4.9
revision=1
wrksrc="greenlet-${version}"
build_style=python-module
2015-08-23 00:28:23 +02:00
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"
2015-08-23 00:28:23 +02:00
short_desc="Lightweight in-process concurrent programming (Python2)"
_short_desc="${short_desc/Python2/Python3.4}"
2015-08-23 00:28:23 +02:00
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="MIT"
homepage="https://github.com/python-greenlet/greenlet"
2015-08-23 00:28:23 +02:00
distfiles="${PYPI_SITE}/g/greenlet/greenlet-${version}.zip"
2015-08-31 01:46:16 +02:00
checksum="58b2f3a2e7075c655616bf95e82868db4980f3bb6661db70ad02a51e4ddd2252"
2015-08-23 00:28:23 +02:00
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
}
}
2015-08-23 00:28:23 +02:00
python3.4-greenlet_package() {
replaces="python3.4-greenlet<0.4.7_1"
short_desc="${_short_desc}"
2015-08-23 00:28:23 +02:00
pkg_install() {
vmove usr/lib/python3.4
vlicense LICENSE
}
}