python-jupyter_core: use alternatives

This commit is contained in:
Alessio Sergi 2016-05-29 23:20:50 +02:00
parent 7f58e75d8a
commit 8b791d3e4d
1 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'python-jupyter_core' # Template file for 'python-jupyter_core'
pkgname=python-jupyter_core pkgname=python-jupyter_core
version=4.1.0 version=4.1.0
revision=1 revision=2
noarch=yes noarch=yes
wrksrc="jupyter_core-${version}" wrksrc="jupyter_core-${version}"
build_style=python-module build_style=python-module
@ -16,14 +16,18 @@ license="3-clause-BSD"
distfiles="${PYPI_SITE}/j/jupyter_core/jupyter_core-${version}.tar.gz" distfiles="${PYPI_SITE}/j/jupyter_core/jupyter_core-${version}.tar.gz"
checksum=146af0679c33c56db4b85b785f3dacd933ffaca97e7d2d56ff577a5485c2bd13 checksum=146af0679c33c56db4b85b785f3dacd933ffaca97e7d2d56ff577a5485c2bd13
alternatives="
jupyter-core:jupyter:/usr/bin/jupyter2.7
jupyter-core:jupyter-migrate:/usr/bin/jupyter-migrate2.7"
post_install() { post_install() {
for f in jupyter jupyter-migrate; do
vbin build-3.4/scripts-3.4/${f} ${f}3.4
done
vlicense COPYING.md LICENSE vlicense COPYING.md LICENSE
} }
python3.4-jupyter_core_package() { python3.4-jupyter_core_package() {
alternatives="
jupyter-core:jupyter:/usr/bin/jupyter3.4
jupyter-core:jupyter-migrate:/usr/bin/jupyter-migrate3.4"
noarch=yes noarch=yes
depends="python3.4-traitlets" depends="python3.4-traitlets"
pycompile_version="3.4" pycompile_version="3.4"