diff options
author | 2018-04-23 03:47:42 +0700 | |
---|---|---|
committer | 2018-04-23 03:48:22 +0700 | |
commit | 4a840b79c169fca88e28f2aa4ddc97c5b7ac3eea (patch) | |
tree | 30169067a7434f8359ef43fa87524b66ea3c12bd /dev-python/spyder/spyder-3.2.8.ebuild | |
parent | net-mail/dovecot-2.2.34: hppa stable, bug 648894 (diff) | |
download | gentoo-4a840b79c169fca88e28f2aa4ddc97c5b7ac3eea.tar.gz gentoo-4a840b79c169fca88e28f2aa4ddc97c5b7ac3eea.tar.bz2 gentoo-4a840b79c169fca88e28f2aa4ddc97c5b7ac3eea.zip |
dev-python/spyder: bump to 3.2.8 and support QtWebengine
Suggested-by: holgersson@posteo.de
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-python/spyder/spyder-3.2.8.ebuild')
-rw-r--r-- | dev-python/spyder/spyder-3.2.8.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/dev-python/spyder/spyder-3.2.8.ebuild b/dev-python/spyder/spyder-3.2.8.ebuild new file mode 100644 index 000000000000..3c588279fe79 --- /dev/null +++ b/dev-python/spyder/spyder-3.2.8.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit eutils distutils-r1 xdg-utils + +DESCRIPTION="Python IDE with matlab-like features" +HOMEPAGE="https://github.com/spyder-ide/spyder/ https://pypi.python.org/pypi/spyder/ http://pythonhosted.org/spyder/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc hdf5 +webengine webkit" +REQUIRED_USE="webengine? ( !webkit )" + +RDEPEND=" + hdf5? ( dev-python/h5py[${PYTHON_USEDEP}] ) + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/cloudpickle[${PYTHON_USEDEP}] + dev-python/jedi[${PYTHON_USEDEP}] + dev-python/nbconvert[${PYTHON_USEDEP}] + dev-python/pep8[${PYTHON_USEDEP}] + dev-python/pickleshare[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + >=dev-python/pycodestyle-2.3.0[${PYTHON_USEDEP}] + dev-python/pyflakes[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/pylint[${PYTHON_USEDEP}] + dev-python/PyQt5[${PYTHON_USEDEP},svg,webengine?,webkit?] + dev-python/pyzmq[${PYTHON_USEDEP}] + >=dev-python/qtawesome-0.4.1[${PYTHON_USEDEP}] + dev-python/qtconsole[${PYTHON_USEDEP}] + dev-python/QtPy[${PYTHON_USEDEP},svg,webengine?,webkit?] + >=dev-python/rope-0.10.7[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}]" + +DEPEND="${RDEPEND} + app-arch/unzip" + +# Based on the courtesy of Arfrever +PATCHES=( "${FILESDIR}"/${PN}-3.2.8-build.patch ) + +python_compile_all() { + if use doc; then + sphinx-build doc doc/html || die "Generation of documentation failed" + fi +} + +python_install() { + distutils-r1_python_install + python_newscript scripts/${PN} ${PN}${EPYTHON:6:1} +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/html/. ) + distutils-r1_python_install_all + doicon spyder/images/spyder.svg + make_desktop_entry spyder Spyder spyder "Development;IDE" +} + +pkg_postinst() { + xdg_desktop_database_update + + elog "To get additional features, optional runtime dependencies may be installed:" + optfeature "2D/3D plotting in the Python and IPython consoles" dev-python/matplotlib + optfeature "View and edit DataFrames and Series in the Variable Explorer" dev-python/pandas + optfeature "View and edit two or three dimensional arrays in the Variable Explorer" dev-python/numpy + optfeature "Symbolic mathematics in the IPython console" dev-python/sympy + optfeature "Import Matlab workspace files in the Variable Explorer" sci-libs/scipy + optfeature "Run Cython files in the IPython console" dev-python/cython +} + +pkg_postrm() { + xdg_desktop_database_update +} |