void-packages/srcpkgs/python-sympy/template

44 lines
1.1 KiB
Bash

# Template file for 'python-sympy'
pkgname=python-sympy
version=1.1.1
revision=2
noarch=yes
wrksrc="sympy-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-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=ac5b57691bc43919dcc21167660a57cc51797c28a4301a6144eff07b751216a4
alternatives="
sympy:isympy:/usr/bin/isympy2
sympy:isympy.1:/usr/share/man/man1/isympy2.1"
post_install() {
# create versioned man pages
mv ${DESTDIR}/usr/share/man/man1/isympy{,2}.1
vman doc/man/isympy.1 isympy3.1
vlicense LICENSE
}
python3-sympy_package() {
alternatives="
sympy:isympy:/usr/bin/isympy3
sympy:isympy.1:/usr/share/man/man1/isympy3.1"
noarch=yes
depends="python3-mpmath"
pycompile_module="sympy"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/isympy3
vmove usr/lib/python3*
vmove usr/share/man/man1/isympy3.1
vlicense LICENSE
}
}