mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
python-Cython: split python3-Cython to a new package
This commit is contained in:
parent
16530afcf8
commit
9966b9c63f
3 changed files with 36 additions and 16 deletions
|
@ -2,11 +2,11 @@
|
||||||
pkgname=python-Cython
|
pkgname=python-Cython
|
||||||
version=0.29.35
|
version=0.29.35
|
||||||
revision=1
|
revision=1
|
||||||
build_style=python-module
|
build_style=python2-module
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools"
|
||||||
makedepends="python-devel python3-devel"
|
makedepends="python-devel"
|
||||||
depends="python-setuptools"
|
depends="python-setuptools"
|
||||||
short_desc="C-Extensions for Python2"
|
short_desc="C-Extensions for Python3"
|
||||||
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
homepage="https://cython.org/"
|
homepage="https://cython.org/"
|
||||||
|
@ -21,15 +21,8 @@ alternatives="
|
||||||
cython:cython:/usr/bin/cython2
|
cython:cython:/usr/bin/cython2
|
||||||
cython:cythonize:/usr/bin/cythonize2"
|
cython:cythonize:/usr/bin/cythonize2"
|
||||||
|
|
||||||
python3-Cython_package() {
|
post_install() {
|
||||||
alternatives="
|
mv ${DESTDIR}/usr/bin/cygdb{,2}
|
||||||
cython:cygdb:/usr/bin/cygdb3
|
mv ${DESTDIR}/usr/bin/cython{,2}
|
||||||
cython:cython:/usr/bin/cython3
|
mv ${DESTDIR}/usr/bin/cythonize{,2}
|
||||||
cython:cythonize:/usr/bin/cythonize3"
|
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
|
||||||
depends="python3-setuptools"
|
|
||||||
pkg_install() {
|
|
||||||
vmove "usr/bin/*3"
|
|
||||||
vmove "usr/lib/python3*"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
python-Cython
|
|
28
srcpkgs/python3-Cython/template
Normal file
28
srcpkgs/python3-Cython/template
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# Template file for 'python3-Cython'
|
||||||
|
pkgname=python3-Cython
|
||||||
|
version=0.29.35
|
||||||
|
revision=1
|
||||||
|
build_style=python3-module
|
||||||
|
hostmakedepends="python3-setuptools"
|
||||||
|
makedepends="python3-devel"
|
||||||
|
depends="python3-setuptools"
|
||||||
|
short_desc="C-Extensions for Python3"
|
||||||
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
||||||
|
license="Apache-2.0"
|
||||||
|
homepage="https://cython.org/"
|
||||||
|
changelog="https://raw.githubusercontent.com/cython/cython/master/CHANGES.rst"
|
||||||
|
distfiles="${PYPI_SITE}/C/Cython/Cython-${version}.tar.gz"
|
||||||
|
checksum=6e381fa0bf08b3c26ec2f616b19ae852c06f5750f4290118bf986b6f85c8c527
|
||||||
|
# Tests are flaky
|
||||||
|
make_check=no
|
||||||
|
|
||||||
|
alternatives="
|
||||||
|
cython:cygdb:/usr/bin/cygdb3
|
||||||
|
cython:cython:/usr/bin/cython3
|
||||||
|
cython:cythonize:/usr/bin/cythonize3"
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
mv ${DESTDIR}/usr/bin/cygdb{,3}
|
||||||
|
mv ${DESTDIR}/usr/bin/cython{,3}
|
||||||
|
mv ${DESTDIR}/usr/bin/cythonize{,3}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue