1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/eric/eric-4.5.17.ebuild,v 1.1 2013/12/27 01:54:52 pesa Exp $
EAPI=4
PYTHON_DEPEND="2:2.6"
SUPPORT_PYTHON_ABIS="1"
# 2.4 and 2.5 are restricted to avoid conditional dependency on dev-python/simplejson.
RESTRICT_PYTHON_ABIS="2.4 2.5 3.* *-jython 2.7-pypy-*"
PLOCALES="cs de en es fr it ru tr zh_CN"
inherit eutils l10n python
DESCRIPTION="A full featured Python IDE using PyQt4 and QScintilla"
HOMEPAGE="http://eric-ide.python-projects.org/"
SLOT="4"
MY_PV=${PV/_pre/-snapshot-}
MY_P=${PN}${SLOT}-${MY_PV}
BASE_URI="mirror://sourceforge/eric-ide/${PN}${SLOT}/stable/${PV}"
SRC_URI="${BASE_URI}/${MY_P}.tar.gz"
for L in ${PLOCALES}; do
SRC_URI+=" linguas_${L}? ( ${BASE_URI}/${PN}${SLOT}-i18n-${L/zh_CN/zh_CN.GB2312}-${MY_PV}.tar.gz )"
done
unset L
LICENSE="GPL-3"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="kde spell"
DEPEND="
>=dev-python/sip-4.12.4
>=dev-python/PyQt4-4.9.6-r1[X,help,svg,webkit]
>=dev-python/qscintilla-python-2.3
kde? ( kde-base/pykde4 )
"
RDEPEND="${DEPEND}
>=dev-python/chardet-2.0.1
>=dev-python/coverage-3.0.1
>=dev-python/pygments-1.3.1
"
PDEPEND="
spell? ( dev-python/pyenchant )
"
S=${WORKDIR}/${MY_P}
PYTHON_VERSIONED_EXECUTABLES=("/usr/bin/.*")
src_prepare() {
epatch "${FILESDIR}/eric-4.5-no-interactive.patch"
use kde || epatch "${FILESDIR}/eric-4.4-no-pykde.patch"
# Delete internal copies of dev-python/chardet, dev-python/coverage,
# dev-python/pygments and dev-python/simplejson.
rm -fr eric/ThirdParty
rm -fr eric/DebugClients/Python{,3}/coverage
sed -i -e 's/from DebugClients\.Python3\?\.coverage/from coverage/' \
$(grep -lr 'from DebugClients\.Python3\?\.coverage' .) || die
}
src_install() {
installation() {
"$(PYTHON)" install.py \
-z \
-b "${EPREFIX}/usr/bin" \
-i "${T}/images/${PYTHON_ABI}" \
-d "${EPREFIX}$(python_get_sitedir)" \
-c
}
python_execute_function installation
python_merge_intermediate_installation_images "${T}/images"
doicon eric/icons/default/eric.png || die
make_desktop_entry "eric4 --nosplash" eric4 eric "Development;IDE;Qt"
}
pkg_postinst() {
python_mod_optimize eric4{,config.py,plugins}
elog
elog "If you want to use Eric with mod_python, have a look at"
elog "\"${EROOT}$(python_get_sitedir -b -f)/eric4/patch_modpython.py\"."
elog
elog "The following packages will give Eric extended functionality:"
elog " dev-python/pylint"
elog " dev-python/pysvn"
elog
elog "This version has a plugin interface with plugin-autofetch from"
elog "the application itself. You may want to check those as well."
elog
}
pkg_postrm() {
python_mod_cleanup eric4{,config.py,plugins}
}
|