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.
69 lines
1.7 KiB
69 lines
1.7 KiB
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Id$
|
||
|
|
||
|
EAPI=6
|
||
|
|
||
8 years ago
|
PYTHON_COMPAT=( python2_7 python3_{4,5} )
|
||
8 years ago
|
PYTHON_REQ_USE="sqlite,xml"
|
||
|
|
||
|
inherit python-single-r1
|
||
|
|
||
|
DESCRIPTION="A full featured Python IDE using PyQt and QScintilla"
|
||
|
HOMEPAGE="http://eric-ide.python-projects.org/"
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="6"
|
||
|
|
||
|
MY_P=${PN}${SLOT}-${PV}
|
||
8 years ago
|
SRC_URI="mirror://sourceforge/eric-ide/${PN}${SLOT}/stable/${PV}/${MY_P}.tar.gz"
|
||
8 years ago
|
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||
|
IUSE=""
|
||
|
|
||
|
DEPEND="
|
||
|
${PYTHON_DEPS}
|
||
|
>=dev-python/sip-4.14.3[${PYTHON_USEDEP}]
|
||
|
>=dev-python/PyQt4-4.10[${PYTHON_USEDEP},X,help,sql,svg,webkit]
|
||
|
>=dev-python/qscintilla-python-2.8[${PYTHON_USEDEP}]
|
||
|
"
|
||
|
RDEPEND="${DEPEND}
|
||
8 years ago
|
>=dev-python/chardet-2.3.0[${PYTHON_USEDEP}]
|
||
|
>=dev-python/coverage-4.1.0[${PYTHON_USEDEP}]
|
||
|
>=dev-python/pygments-2.1.3[${PYTHON_USEDEP}]
|
||
8 years ago
|
!dev-util/eric:4
|
||
|
!dev-util/eric:5
|
||
|
"
|
||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||
|
|
||
|
S=${WORKDIR}/${MY_P}
|
||
|
|
||
8 years ago
|
DOCS=(changelog README.rst THANKS)
|
||
8 years ago
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
|
||
|
# Delete internal copies of dev-python/chardet and dev-python/pygments
|
||
|
rm -fr eric/ThirdParty/{CharDet,Pygments} || die
|
||
|
|
||
|
# Delete internal copy of dev-python/coverage
|
||
|
rm -fr eric/DebugClients/Python{,3}/coverage || die
|
||
|
sed -i -e 's/from DebugClients\.Python3\?\.coverage/from coverage/' \
|
||
|
$(grep -lr 'from DebugClients\.Python3\?\.coverage' .) || die
|
||
|
|
||
|
# Fix desktop files (bug 458092)
|
||
8 years ago
|
sed -i -re '/^Categories=/s:(Python|QtWeb):X-&:g' eric/eric6{,_{,web}browser}.desktop || die
|
||
8 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
"${PYTHON}" install.py \
|
||
|
-b "${EPREFIX}/usr/bin" \
|
||
|
-d "$(python_get_sitedir)" \
|
||
|
-i "${D}" \
|
||
|
-c \
|
||
|
-z \
|
||
|
--pyqt=4 \
|
||
|
|| die
|
||
|
|
||
|
python_optimize
|
||
|
einstalldocs
|
||
|
}
|