python-ipython: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
a42f75539e
commit
20616a66a8
2 changed files with 23 additions and 21 deletions
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'python-ipython'
|
# Template file for 'python-ipython'
|
||||||
pkgname=python-ipython
|
pkgname=python-ipython
|
||||||
version=4.2.1
|
version=4.2.1
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="ipython-${version}"
|
wrksrc="ipython-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
||||||
depends="python-decorator python-pexpect python-pickleshare python-simplegeneric
|
depends="python-decorator python-pexpect python-pickleshare python-simplegeneric
|
||||||
python-traitlets python-backports.shutil_get_terminal_size"
|
python-traitlets python-backports.shutil_get_terminal_size"
|
||||||
pycompile_module="IPython"
|
pycompile_module="IPython"
|
||||||
|
@ -18,39 +17,41 @@ distfiles="${PYPI_SITE}/i/ipython/ipython-${version}.tar.gz"
|
||||||
checksum=e21c3d7f410014b04d36fe12998f132ed9ef4c6119b81016c04eedb09f0716a5
|
checksum=e21c3d7f410014b04d36fe12998f132ed9ef4c6119b81016c04eedb09f0716a5
|
||||||
|
|
||||||
alternatives="
|
alternatives="
|
||||||
ipython:ipython:/usr/bin/ipython2.7
|
ipython:ipython:/usr/bin/ipython2
|
||||||
ipython:ipython.1:/usr/share/man/man1/ipython2.7.1"
|
ipython:ipython.1:/usr/share/man/man1/ipython2.1"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# use decorators of numpy
|
# use decorators of numpy
|
||||||
rm -f ${DESTDIR}/usr/lib/python*/site-packages/IPython/external/decorators/_decorators.py
|
rm -f ${DESTDIR}/usr/lib/python*/site-packages/IPython/external/decorators/_decorators.py
|
||||||
# remove iptest
|
# remove iptest
|
||||||
rm -f ${DESTDIR}/usr/bin/iptest*
|
rm -f ${DESTDIR}/usr/bin/iptest*
|
||||||
# create ipython2 symlink
|
|
||||||
ln -sf ipython2.7 ${DESTDIR}/usr/bin/ipython2
|
|
||||||
# create versioned man pages
|
# create versioned man pages
|
||||||
mv ${DESTDIR}/usr/share/man/man1/ipython{,2.7}.1
|
mv ${DESTDIR}/usr/share/man/man1/ipython{,2}.1
|
||||||
vman docs/man/ipython.1 ipython3.4.1
|
vman docs/man/ipython.1 ipython3.1
|
||||||
# install license
|
# install license
|
||||||
vlicense COPYING.rst LICENSE
|
vlicense COPYING.rst LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-ipython_package() {
|
python3-ipython_package() {
|
||||||
alternatives="
|
alternatives="
|
||||||
ipython:ipython:/usr/bin/ipython3.4
|
ipython:ipython:/usr/bin/ipython3
|
||||||
ipython:ipython.1:/usr/share/man/man1/ipython3.4.1
|
ipython:ipython.1:/usr/share/man/man1/ipython3.1"
|
||||||
ipython3:ipython3:/usr/bin/ipython3.4
|
|
||||||
ipython3:ipython3.1:/usr/share/man/man1/ipython3.4.1"
|
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="python3.4-decorator python3.4-pexpect python3.4-pickleshare
|
depends="python3-decorator python3-pexpect python3-pickleshare
|
||||||
python3.4-simplegeneric python3.4-traitlets"
|
python3-simplegeneric python3-traitlets"
|
||||||
pycompile_version="3.4"
|
|
||||||
pycompile_module="IPython"
|
pycompile_module="IPython"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
replaces="python3.4-ipython>=0"
|
||||||
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/ipython3.4
|
vmove usr/bin/ipython3
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3*
|
||||||
vmove usr/share/man/man1/ipython3.4.1
|
vmove usr/share/man/man1/ipython3.1
|
||||||
vlicense COPYING.rst LICENSE
|
vlicense COPYING.rst LICENSE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
python3.4-ipython_package() {
|
||||||
|
noarch=yes
|
||||||
|
build_style=meta
|
||||||
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||||
|
depends="python3-ipython>=${version}_${revision}"
|
||||||
|
}
|
||||||
|
|
1
srcpkgs/python3-ipython
Symbolic link
1
srcpkgs/python3-ipython
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-ipython
|
Loading…
Add table
Add a link
Reference in a new issue