python-jupyter_console: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
Alessio Sergi 2016-10-17 11:44:07 +02:00
parent 51f10507f2
commit 7e75f5f0eb
2 changed files with 17 additions and 11 deletions

View File

@ -1,12 +1,11 @@
# Template file for 'python-jupyter_console'
pkgname=python-jupyter_console
version=4.1.1
revision=2
revision=3
noarch=yes
wrksrc="jupyter_console-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-ipython>=4.0.0 python-ipython_ipykernel python-jupyter_client"
pycompile_module="jupyter_console"
short_desc="Jupyter terminal console (Python2)"
@ -15,22 +14,28 @@ homepage="https://github.com/jupyter/jupyter_console"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/j/jupyter_console/jupyter_console-${version}.tar.gz"
checksum=d754cfd18d258fa9e7dde39a36e589c4a7241075b5d0f420691fa3d50e4c4ae3
alternatives="jupyter-console:jupyter-console:/usr/bin/jupyter-console2.7"
alternatives="jupyter-console:jupyter-console:/usr/bin/jupyter-console2"
post_install() {
vlicense COPYING.md LICENSE
}
python3.4-jupyter_console_package() {
python3-jupyter_console_package() {
noarch=yes
depends="python3.4-ipython>=4.0.0 python3.4-ipython_ipykernel python3.4-jupyter_client"
pycompile_version="3.4"
depends="python3-ipython>=4.0.0 python3-ipython_ipykernel python3-jupyter_client"
pycompile_module="jupyter_console"
short_desc="${short_desc/Python2/Python3.4}"
alternatives="jupyter-console:jupyter-console:/usr/bin/jupyter-console3.4"
replaces="python3.4-jupyter_console>=0"
short_desc="${short_desc/Python2/Python3}"
alternatives="jupyter-console:jupyter-console:/usr/bin/jupyter-console3"
pkg_install() {
vmove usr/bin/jupyter-console3.4
vmove usr/lib/python3.4
vmove usr/bin/jupyter-console3
vmove usr/lib/python3*
vlicense COPYING.md LICENSE
}
}
python3.4-jupyter_console_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-jupyter_console>=${version}_${revision}"
}

View File

@ -0,0 +1 @@
python-jupyter_console