void-packages/srcpkgs/python-sympy/template

47 lines
1.3 KiB
Bash
Raw Normal View History

2015-09-04 22:07:37 +02:00
# Template file for 'python-sympy'
pkgname=python-sympy
version=0.7.6.1
2015-11-23 00:55:23 +01:00
revision=2
2015-09-04 22:07:37 +02:00
noarch=yes
wrksrc="sympy-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python-mpmath"
pycompile_module="sympy"
short_desc="Computer algebra system for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://sympy.org/"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/s/sympy/sympy-${version}.tar.gz"
checksum=1fc272b51091aabe7d07f1bf9f0a47f3e28657fb2bec52bf3ef0e8f159f5f564
pre_build() {
sed -i '/^#!/d' sympy/{benchmarks/bench_symbench,utilities/tests/diagnose_imports}.py
}
post_install() {
# replace bundled copy of mpmath
for pyver in $python_versions; do
rm -rf ${DESTDIR}/usr/lib/python${pyver}/site-packages/sympy/mpmath
2015-11-23 00:55:23 +01:00
ln -sf ../mpmath ${DESTDIR}/usr/lib/python${pyver}/site-packages/sympy/mpmath
2015-09-04 22:07:37 +02:00
done
2015-11-23 00:55:23 +01:00
# install isympy3.x
vbin build-3.4/scripts-3.4/isympy isympy3.4
vman doc/man/isympy.1 isympy3.4.1
2015-09-04 22:07:37 +02:00
vlicense LICENSE
}
python3.4-sympy_package() {
noarch=yes
depends="python3.4-mpmath"
pycompile_version="3.4"
pycompile_module="sympy"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
2015-11-23 00:55:23 +01:00
vmove usr/bin/isympy3.4
2015-09-04 22:07:37 +02:00
vmove usr/lib/python3.4
2015-11-23 00:55:23 +01:00
vmove usr/share/man/man1/isympy3.4.1
2015-09-04 22:07:37 +02:00
vlicense LICENSE
}
}