You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-util/eric/eric-19.11-r1.ebuild

62 lines
1.5 KiB

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{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}
$(python_gen_cond_dep '
>=dev-python/PyQt5-5.12[gui,help,network,printsupport,sql,svg,widgets,${PYTHON_MULTI_USEDEP}]
dev-python/PyQtWebEngine[${PYTHON_MULTI_USEDEP}]
dev-python/qscintilla-python[${PYTHON_MULTI_USEDEP}]
dev-python/sip[${PYTHON_MULTI_USEDEP}]
')
"
RDEPEND="${DEPEND}
$(python_gen_cond_dep '
>=dev-python/chardet-3.0.4[${PYTHON_MULTI_USEDEP}]
>=dev-python/pygments-2.3.1[${PYTHON_MULTI_USEDEP}]
spell? ( dev-python/pyenchant[${PYTHON_MULTI_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
}