void-packages/srcpkgs/python-tables/template

55 lines
1.7 KiB
Bash
Raw Normal View History

2015-12-13 09:47:47 +00:00
# Template file for 'python-tables'
pkgname=python-tables
2016-09-13 19:52:38 +00:00
version=3.3.0
revision=2
2015-12-13 09:47:47 +00:00
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"
2015-12-13 09:47:47 +00:00
short_desc="Hierarchical datasets for Python2"
maintainer="pulux <pulux@pf4sh.de>"
license="3-clause-BSD"
2015-12-13 09:47:47 +00:00
homepage="http://www.pytables.org/"
distfiles="${PYPI_SITE}/t/tables/tables-${version}.tar.gz"
2016-09-13 19:52:38 +00:00
checksum=8383ccf02e041a5d55494a09fc5514140b4653055a2732c981b5fd0f7408822c
2015-12-13 09:47:47 +00:00
2016-05-01 00:19:10 +00:00
alternatives="
tables:pt2to3:/usr/bin/python2-pt2to3
tables:ptdump:/usr/bin/ptdump2
tables:ptrepack:/usr/bin/ptrepack2
tables:pttree:/usr/bin/pttree2"
2016-05-01 00:19:10 +00:00
2015-12-13 09:47:47 +00:00
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
2015-12-13 09:47:47 +00:00
}
python3-tables_package() {
2016-05-01 00:19:10 +00:00
alternatives="
tables:pt2to3:/usr/bin/python3-pt2to3
tables:ptdump:/usr/bin/ptdump3
tables:ptrepack:/usr/bin/ptrepack3
tables:pttree:/usr/bin/pttree3"
2015-12-13 09:47:47 +00:00
pycompile_module="tables"
replaces="python3.4-tables>=0"
depends="python3-setuptools python3-numpy python3-numexpr python3-six"
short_desc="${short_desc/Python2/Python3}"
2015-12-13 09:47:47 +00:00
pkg_install() {
vmove usr/bin/python3-pt2to3
vmove usr/bin/pt*3
vmove usr/lib/python3*
2015-12-13 09:47:47 +00:00
vlicense LICENSE.txt LICENSE
}
}
python3.4-tables_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-tables>=${version}_${revision}"
}