python-greenlet: create -devel and move header there

This commit is contained in:
Alessio Sergi 2015-08-27 10:10:10 +02:00
parent f698da8f39
commit 6684126042
3 changed files with 24 additions and 7 deletions

View file

@ -0,0 +1 @@
python-greenlet

View file

@ -1,29 +1,44 @@
# Template file for 'python-greenlet' # Template file for 'python-greenlet'
pkgname=python-greenlet pkgname=python-greenlet
version=0.4.7 version=0.4.7
revision=1 revision=2
build_style="python-module" wrksrc="greenlet-${version}"
build_style=python-module
python_versions="2.7 3.4" python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools unzip" hostmakedepends="python-setuptools python3.4-setuptools unzip"
makedepends="python-devel python3.4-devel" makedepends="python-devel python3.4-devel"
replaces="python-greenlet<0.4.7_1"
short_desc="Lightweight in-process concurrent programming (Python2)" short_desc="Lightweight in-process concurrent programming (Python2)"
_short_desc="${short_desc/Python2/Python3.4}"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>" maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="MIT" license="MIT"
homepage="http://pypi.python.org/pypi/greenlet" homepage="https://github.com/python-greenlet/greenlet"
distfiles="${PYPI_SITE}/g/greenlet/greenlet-${version}.zip" distfiles="${PYPI_SITE}/g/greenlet/greenlet-${version}.zip"
checksum="f32c4fa4e06443e1bdb0d32b69e7617c25ff772c3ffc6d0aa63d192e9fd795fe" checksum="f32c4fa4e06443e1bdb0d32b69e7617c25ff772c3ffc6d0aa63d192e9fd795fe"
wrksrc="greenlet-${version}"
post_install() { post_install() {
vlicense LICENSE 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() { python3.4-greenlet_package() {
pycompile_version="3.4" replaces="python3.4-greenlet<0.4.7_1"
short_desc="${short_desc/Python2/Python3.4}" short_desc="${_short_desc}"
pkg_install() { pkg_install() {
vmove usr/lib/python3.4 vmove usr/lib/python3.4
vmove usr/include/python3.4m
vlicense LICENSE vlicense LICENSE
} }
} }

View file

@ -0,0 +1 @@
python-greenlet