mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
python-sympy: use alternatives for isympy wrapper
This commit is contained in:
parent
4606406a3a
commit
955fd8252b
1 changed files with 10 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-sympy'
|
# Template file for 'python-sympy'
|
||||||
pkgname=python-sympy
|
pkgname=python-sympy
|
||||||
version=1.0
|
version=1.0
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="sympy-${version}"
|
wrksrc="sympy-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
@ -16,17 +16,21 @@ license="3-clause-BSD"
|
||||||
distfiles="${PYPI_SITE}/s/sympy/sympy-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/s/sympy/sympy-${version}.tar.gz"
|
||||||
checksum=3eacd210d839e4db911d216a9258a3ac6f936992f66db211e22767983297ffae
|
checksum=3eacd210d839e4db911d216a9258a3ac6f936992f66db211e22767983297ffae
|
||||||
|
|
||||||
pre_build() {
|
alternatives="
|
||||||
sed -i '/^#!/d' sympy/{benchmarks/bench_symbench,utilities/tests/diagnose_imports}.py
|
sympy:isympy:/usr/bin/isympy2.7
|
||||||
}
|
sympy:isympy.1:/usr/share/man/man1/isympy2.7.1"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# install isympy3.x
|
# create versioned man pages
|
||||||
vbin build-3.4/scripts-3.4/isympy isympy3.4
|
mv ${DESTDIR}/usr/share/man/man1/isympy{,2.7}.1
|
||||||
vman doc/man/isympy.1 isympy3.4.1
|
vman doc/man/isympy.1 isympy3.4.1
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-sympy_package() {
|
python3.4-sympy_package() {
|
||||||
|
alternatives="
|
||||||
|
sympy:isympy:/usr/bin/isympy3.4
|
||||||
|
sympy:isympy.1:/usr/share/man/man1/isympy3.4.1"
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="python3.4-mpmath"
|
depends="python3.4-mpmath"
|
||||||
pycompile_version="3.4"
|
pycompile_version="3.4"
|
||||||
|
|
Loading…
Add table
Reference in a new issue