void-packages/srcpkgs/python-sympy/template

42 lines
1.1 KiB
Bash

# Template file for 'python-sympy'
pkgname=python-sympy
version=1.0
revision=1
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=3eacd210d839e4db911d216a9258a3ac6f936992f66db211e22767983297ffae
pre_build() {
sed -i '/^#!/d' sympy/{benchmarks/bench_symbench,utilities/tests/diagnose_imports}.py
}
post_install() {
# install isympy3.x
vbin build-3.4/scripts-3.4/isympy isympy3.4
vman doc/man/isympy.1 isympy3.4.1
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() {
vmove usr/bin/isympy3.4
vmove usr/lib/python3.4
vmove usr/share/man/man1/isympy3.4.1
vlicense LICENSE
}
}