void-packages/srcpkgs/python-tables/template

49 lines
1.5 KiB
Bash

# Template file for 'python-tables'
pkgname=python-tables
version=3.4.2
revision=5
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
pycompile_module="tables"
# XXX: c-blosc (using internal for now)
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel python-numpy python3-numpy
python-Cython python3-Cython hdf5-devel lzo-devel bzip2-devel"
depends="python-setuptools python-numpy python-numexpr python-six"
short_desc="Hierarchical datasets for Python2"
maintainer="pulux <pulux@pf4sh.de>"
license="3-clause-BSD"
homepage="http://www.pytables.org/"
distfiles="${PYPI_SITE}/t/tables/tables-${version}.tar.gz"
checksum=fdbbea4edb6bad0ac0e53fc7bc6970e78e12eef4944aa4146bcdcb573201676c
alternatives="
tables:pt2to3:/usr/bin/python2-pt2to3
tables:ptdump:/usr/bin/ptdump2
tables:ptrepack:/usr/bin/ptrepack2
tables:pttree:/usr/bin/pttree2"
post_install() {
vlicense LICENSE.txt LICENSE
# XXX: override the default naming scheme for pt2to3
cp -a ${DESTDIR}/usr/bin/{,python3-}pt2to3
mv ${DESTDIR}/usr/bin/{,python2-}pt2to3
}
python3-tables_package() {
alternatives="
tables:pt2to3:/usr/bin/python3-pt2to3
tables:ptdump:/usr/bin/ptdump3
tables:ptrepack:/usr/bin/ptrepack3
tables:pttree:/usr/bin/pttree3"
pycompile_module="tables"
depends="python3-setuptools python3-numpy python3-numexpr python3-six"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/python3-pt2to3
vmove usr/bin/pt*3
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}