python-PyOpenGL-accelerate: add python3 flavor, depend on numpy

Remove pycompile_module since there's nothing to byte-compile.
This commit is contained in:
Alessio Sergi 2017-01-14 21:19:44 +01:00
parent 3b1d035342
commit 362a899e11
2 changed files with 18 additions and 8 deletions

View file

@ -1,19 +1,28 @@
# Template file for 'python-PyOpenGL-accelerate'
pkgname=python-PyOpenGL-accelerate
version=3.1.0
revision=2
revision=3
wrksrc="PyOpenGL-accelerate-${version}"
build_style=python2-module
hostmakedepends="python-devel python-Cython"
makedepends="python-devel python-numpy"
pycompile_module="OpenGL_accelerate"
short_desc="Acceleration code for PyOpenGL"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools python-Cython python3-Cython"
makedepends="python-devel python3-devel python-numpy python3-numpy"
depends="python-numpy"
short_desc="Acceleration code for PyOpenGL (Python2)"
maintainer="Alain Kalker <a.c.kalker@gmail.com>"
license="BSD"
license="3-clause-BSD"
homepage="http://pyopengl.sourceforge.net/"
distfiles="${PYPI_SITE}/P/PyOpenGL-accelerate/PyOpenGL-accelerate-${version}.tar.gz"
checksum=927f4670b893d46e2f6273ae938bf0a1db27ffae3336eba94813ccef6260c410
post_install() {
vlicense license.txt
vlicense license.txt LICENSE
}
python3-PyOpenGL-accelerate_package() {
depends="python3-numpy"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense license.txt LICENSE
}
}

View file

@ -0,0 +1 @@
python-PyOpenGL-accelerate