# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python3_{5,6,7} ) PYTHON_REQ_USE="sqlite,xml" inherit python-single-r1 xdg MY_P=${PN}6-${PV} DESCRIPTION="A full featured Python IDE using PyQt and QScintilla" HOMEPAGE="https://eric-ide.python-projects.org/" SRC_URI="mirror://sourceforge/eric-ide/${PN}6/stable/${PV}/${MY_P}.tar.gz" LICENSE="GPL-3" SLOT="6" KEYWORDS="~amd64 ~x86" IUSE="spell" DEPEND=" ${PYTHON_DEPS} >=dev-python/PyQt5-5.12[gui,help,network,printsupport,sql,svg,widgets,${PYTHON_USEDEP}] dev-python/PyQtChart[${PYTHON_USEDEP}] dev-python/PyQtWebEngine[${PYTHON_USEDEP}] >=dev-python/qscintilla-python-2.11.1[${PYTHON_USEDEP}] dev-python/sip[${PYTHON_USEDEP}] " RDEPEND="${DEPEND} >=dev-python/chardet-3.0.4[${PYTHON_USEDEP}] >=dev-python/pygments-2.3.1[${PYTHON_USEDEP}] spell? ( dev-python/pyenchant[${PYTHON_USEDEP}] ) " REQUIRED_USE="${PYTHON_REQUIRED_USE}" S=${WORKDIR}/${MY_P} DOCS=( eric/docs/{changelog,README.rst,README-eric6-doc.rst,README-passive-debugging.rst,THANKS} ) src_prepare() { default # Delete internal copies of dev-python/chardet and dev-python/pygments rm -fr eric/eric6/ThirdParty/{CharDet,Pygments} || die } src_install() { yes n | "${PYTHON}" install.py \ -b "${EPREFIX}/usr/bin" \ -d "$(python_get_sitedir)" \ -i "${D}" \ -c \ -z \ || die python_optimize einstalldocs }